shopify-script-helpers
v0.0.5
Published
Deploy and watch scripts for Shopify
Downloads
2
Readme
Shopify Script Helpers
Scripts for watching and deploying Shopify themes.
This package is meant to provide a development flow for working locally with Shopify using Theme Kit.
Installing
You have to have gulp-cli and theme kit installed.
- If you don't have a
package.json
file you need to create one usingnpm init
. - This package uses a lot of dependencies, you need to run this command:
npx install-peerdeps --dev shopify-script-helpers
- Check you
package.json
to see the gazillion dependencies installed. - Update your
package.json
to add the two scripts this packages provides:
"scripts": {
"watch": "shopify-watch",
"deploy": "shopify-deploy"
},
Using the package
Let's say that your config.yml
is like this
production:
password: 111111212324343sds345asda
theme_id: "123"
store: your-store.myshopify.com
ignore_files:
- config/settings_data.json
- locales/es-CL.default.json
dev:
password: 29834723984sdfjdsfs122
theme_id: "234"
store: your-dev-store.myshopify.com
ignore_files:
- config/settings_data.json
- locales/es-CL.default.json
You can run the command like this
npm run deploy production
or
npm run watch dev
Please if you have any errors, report.
Paquete para trabajar localmente con Shopify. Trabaja en conjunto con Gulp-cli y Theme Kit, los cuales deberás instalar
Instalación
Tienes que tener gulp-cli y theme kit instalados.
- Si no tienes un archivo
package.json
lo puedes crear usandonpm init
. - Este paquete usa muchas dependencias, así que la mejor manera de instalarlo es usando este comando:
npx install-peerdeps --dev shopify-script-helpers
- Revisa tu
package.json
y verás las mil dependencias instaladas. - Actualiza tu
package.json
Para agregar dos scripts adicionales que provee este paquete:
"scripts": {
"watch": "shopify-watch",
"deploy": "shopify-deploy"
},
Usando este paquete
Recuerda que para usar theme kit necesitas un config.yml
, supongamos que tiene esta estructura:
production:
password: 111111212324343sds345asda
theme_id: "123"
store: your-store.myshopify.com
ignore_files:
- config/settings_data.json
- locales/es-CL.default.json
dev:
password: 29834723984sdfjdsfs122
theme_id: "234"
store: your-dev-store.myshopify.com
ignore_files:
- config/settings_data.json
- locales/es-CL.default.json
Puedes correr comandos así:
npm run deploy production
or
npm run watch dev
Si ves algún error, por favor, abre un issue.