1.1.6 ā€¢ Published 2 years ago

zid-theme v1.1.6

Weekly downloads
58
License
MIT
Repository
github
Last release
2 years ago

šŸ“¦ zid-theme

NPM package to validate and zip the theme folder to match zid custom themes' standards

šŸ” Prerequisites:

  • Node.js
  • NPM (Node Package Manager)

āš™ļø Installation

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js. Node.js is required.

If this is a brand new project, make sure to create a package.json first with the npm init command.

or if yarn is used, with yarn init command.

Installation is done using the npm install command:

$ npm i -g zid-theme

Installation is done using the yarn add command:

$ yarn add global zid-theme

šŸ’» Usage

The following structure is the valid theme SDK structure that has to be followed, othewise an error will be thrown. All the mentioned files and folders are required, and folders can be empty (Such as modules, locals, assets)

See here for accepted assets extension

$ root
.
ā”ƒ
ā”ƒā”€ā”€ā”€ query.json
ā”ƒā”€ā”€ā”€ layout.twig
ā”ƒā”€ā”€ā”€ header.twig
ā”ƒā”€ā”€ā”€ footer.twig
ā”ƒ
ā”ƒā”€ā”€ā”€ templates (accepted extensions: [ '.twig' ] )
ā”ƒ    ā”ƒā”€ā”€ā”€ 404.twig
ā”ƒ    ā”ƒā”€ā”€ā”€ home.twig
ā”ƒ    ā”ƒā”€ā”€ā”€ search.twig
ā”ƒ    ā”ƒā”€ā”€ā”€ products.twig
ā”ƒ    ā”ƒā”€ā”€ā”€ product.twig
ā”ƒ    ā”ƒā”€ā”€ā”€ categories.twig
ā”ƒ    ā”ƒā”€ā”€ā”€ category.twig
ā”ƒ    ā”ƒā”€ā”€ā”€ blogs.twig
ā”ƒ    ā”ƒā”€ā”€ā”€ blog.twig
ā”ƒ    ā”ƒā”€ā”€ā”€ faqs.twig
ā”ƒ    ā”ƒā”€ā”€ā”€ cart.twig
ā”ƒ    ā”ƒā”€ā”€ā”€ shipping-and-payments.twig
ā”ƒ    ā”ƒā”€ā”€ā”€ account-addresses.twig
ā”ƒ    ā”ƒā”€ā”€ā”€ account-orders.twig
ā”ƒ    ā”ƒā”€ā”€ā”€ account-profile.twig
ā”ƒ
ā”ƒā”€ā”€ā”€ modules (accepted extensions: ['.twig'] )
ā”ƒ
ā”ƒā”€ā”€ā”€ common (accepted extensions: ['.twig'] )
ā”ƒ
ā”ƒā”€ā”€ā”€ locals (accepted extensions: ['.json'] )
ā”ƒ
ā”ƒā”€ā”€ā”€ assets

assets accepted extensions

['.js','.ts','.css','.scss','.map','.png','.jpg','.jpeg','.gif','.svg','.woff','.woff2','.otf','.ttf','.eot']

āš”ļø build command

Running the build command only without arguments, will assume the current path is where the theme exist, and the theme zip will be named after the root directory name

$ zid-theme build

The following command takes two arguments --path and --name

To set the path of the theme (default .):

$ zid-theme build --path ./theme_path

To set the name of the theme (root folder name):

$ zid-theme build --name best-theme-ever

Full command:

$ zid-theme build --name best-theme-ever --path .

License

MIT

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago