Gathering detailed insights and metrics for @snailicide/vite-plugin-shopify-theme-schema
Gathering detailed insights and metrics for @snailicide/vite-plugin-shopify-theme-schema
npm install @snailicide/vite-plugin-shopify-theme-schema
Typescript
Module System
Node Version
NPM Version
50.1
Supply Chain
86.6
Quality
76.5
Maintenance
50
Vulnerability
95.8
License
TypeScript (98.08%)
Handlebars (1.01%)
Shell (0.33%)
JavaScript (0.3%)
Liquid (0.28%)
HTML (0.01%)
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
584
Last Day
1
Last Week
1
Last Month
19
Last Year
411
3 Stars
518 Commits
1 Watchers
4 Branches
1 Contributors
Updated on Feb 16, 2025
Minified
Minified + Gzipped
Latest Version
0.2.5
Package Id
@snailicide/vite-plugin-shopify-theme-schema@0.2.5
Unpacked Size
244.86 kB
Size
47.13 kB
File Count
28
NPM Version
10.2.4
Node Version
20.11.1
Published on
Oct 20, 2024
Cumulative downloads
Total Downloads
This plugin adds features to make it easier to manage the JSON schema files for Shopify Theme Settings. Please see Inspiration section for more info and backstory!
Many thanks to barrel-shopify by Barrel NY for readme inspiration.
👤 Gillian Tunney
Table of contents generated with markdown-toc
See example_theme_config folder for usage examples of validators and types.
This library is published in the NPM registry and can be installed using any compatible package manager.
1#pnpm 2pnpm add @snailicide/vite-plugin-shopify-theme-schema 3 4#yarn 5yarn add @snailicide/vite-plugin-shopify-theme-schema 6 7#npm 8npm install @snailicide/vite-plugin-shopify-theme-schema
1# build example files 2pnpm --filter=@snailicide/vite-plugin-shopify-theme-schema test:example
Add pluginShopifyThemeSchema
plugin to vite.config.js / vite.config.ts:
1import pluginShopifyThemeSchema from '@snailicide/vite-plugin-shopify-theme-schema' 2 3/* * Example * */ 4export default { 5 plugins: [ 6 pluginShopifyThemeSchema({ 7 themeRoot: '.', 8 sourceCodeDir: './src/global_settings', 9 entryPoints: { 10 'settings_schema.json': 'settings_schema.js', 11 }, 12 }), 13 ], 14}
sourceCodeDir
directory under your theme's folder to hold the
source files for your settings_schema.json
or custom entrypoint..shopifyignore
file to avoid errors when pushing code to Shopify.1import type { ShopifyLiquidModulesOptions } from './src/options' 2 3/* * Default Options Available * */ 4const defaultobj: ShopifyLiquidModulesOptions = { 5 themeRoot: '.', 6 sourceCodeDir: './src', 7 entryPoints: { 8 'settings_schema.json': 'settings_schema.js', 9 }, 10}
Since i am new to vite plugin, i used this as my starting structure and was heavily inspired by the overall concept of the vite-plugin-shopify-theme-settings. I skipped looping thru the json directory and instead used an 'entryPoint' approach.
Please create an issue if you found any bugs, to help us improve this project!
No vulnerabilities found.
No security vulnerabilities found.
Last Day
0%
1
Compared to previous day
Last Week
0%
1
Compared to previous week
Last Month
-34.5%
19
Compared to previous month
Last Year
377.9%
411
Compared to previous year