1.6.0 ā€¢ Published 3 years ago

zid-theme-test v1.6.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 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 follwoing 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, Empty folders can be empty but have to exist (Such as modules, locals, assets)

See here for accepted assets extension

$ root
.
ā”ƒ
ā”ƒā”€ā”€ā”€ query.json
ā”ƒā”€ā”€ā”€ layout.zid
ā”ƒā”€ā”€ā”€ header.zid
ā”ƒā”€ā”€ā”€ footer.zid
ā”ƒ
ā”ƒā”€ā”€ā”€ templates (accepted extensions: [ '.zid' ] )
ā”ƒ    ā”ƒā”€ā”€ā”€ 404.zid
ā”ƒ    ā”ƒā”€ā”€ā”€ home.zid
ā”ƒ    ā”ƒā”€ā”€ā”€ search.zid
ā”ƒ    ā”ƒā”€ā”€ā”€ products.zid
ā”ƒ    ā”ƒā”€ā”€ā”€ product.zid
ā”ƒ    ā”ƒā”€ā”€ā”€ categories.zid
ā”ƒ    ā”ƒā”€ā”€ā”€ category.zid
ā”ƒ    ā”ƒā”€ā”€ā”€ blogs.zid
ā”ƒ    ā”ƒā”€ā”€ā”€ blog.zid
ā”ƒ    ā”ƒā”€ā”€ā”€ faqs.zid
ā”ƒ    ā”ƒā”€ā”€ā”€ shpping-and-payments.zid
ā”ƒ    ā”ƒā”€ā”€ā”€ account-addresses.zid
ā”ƒ    ā”ƒā”€ā”€ā”€ account-orders.zid
ā”ƒ    ā”ƒā”€ā”€ā”€ account-profile.zid
ā”ƒ
ā”ƒā”€ā”€ā”€ modules (accepted extensions: ['.zid', '.html'] )
ā”ƒ
ā”ƒā”€ā”€ā”€ common (accepted extensions: ['.zid', '.html'] )
ā”ƒ
ā”ƒā”€ā”€ā”€ 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 follwoing 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.6.0

3 years ago

1.5.6

3 years ago

1.5.5

3 years ago

1.5.4

3 years ago

1.5.3

3 years ago

1.5.2

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago