Requirements:
- Have theme kit installed globally (run auto install once per computer)
- API access to store
- Create a dev theme by duplicating live site, use it's theme id in the next step
- Add config.yml for existing stores
- Use theme-download to download the theme for the first time
- Theme is ready to work on, follow NPM build scripts
theme configure --password=[your-password] --store=my-store.myshopify.com --themeid=123
{{ 'compiled.scss.css' | asset_url | stylesheet_tag }}
{{ 'compiled.js' | asset_url | script_tag }}
- npm install
Test - Runs all tests and code linters
npm run test
Lint CSS - Checks scss for errors and best practices.
npm run lint:css
Lint JS - Checks js for errors and best practices.
npm run lint:js
Fix CSS - Checks scss for errors and best practices. Automatically fixes simple errors like line endings
npm run fix:css
Fix jS - Checks js for errors and best practices. Automatically fixes simple errors.
npm run fix:js