Skip to content

Commit

Permalink
type: feat | added new commands that allow opening wiht preview bar
Browse files Browse the repository at this point in the history
  • Loading branch information
mcqua007 committed Feb 21, 2021
1 parent 57f06c7 commit a5b9ee8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
"description": "Starter For Shopify Theme",
"main": "",
"scripts": {
"dev": "(cd dist && theme open --env=development && theme watch --env=development) & gulp watch",
"dev": "(cd dist && theme open --env=development && theme watch --env=development --hidepb) & gulp watch",
"dev:deploy": "cd dist && theme deploy--env=development",
"dev:watch": "(cd dist && theme watch --env=development) & gulp watch",
"dev:open": "cd dist && theme open --env=development",
"dev:open": "cd dist && theme open --env=development --hidepb",
"dev:open:pb": "cd dist && theme open --env=development",
"dev:download": "cd dist && theme download --env=development",
"stage": "gulp build:staging && (cd dist && theme deploy --env=staging && theme open --env=staging)",
"stage": "gulp build:staging && (cd dist && theme deploy --env=staging && theme open --env=staging --hide:pb)",
"stage:build": "gulp build:staging",
"stage:open": "cd dist && theme open --env=staging",
"stage:open": "cd dist && theme open --env=staging --hidepb",
"stage:open:pb": "cd dist && theme open --env=staging",
"stage:deploy": "cd dist && theme deploy --env=staging",
"stage:download": "cd dist && theme download --env=staging",
"live:deploy": "cli-confirm \"\u001b[1;33m Do you really want to deploy to the\u001b[0;32m LIVE \u001b[1;33mtheme ? [y/n]\u001b[0m \" && (cd dist && theme deploy --allow-live --env=live)",
Expand All @@ -21,6 +23,9 @@
"build:css": "gulp build:css",
"build:js": "gulp build:js",
"log:purgedCSS": "gulp log:purgedCSS",
"open": "cd dist && theme open --env=development --hidepb",
"open:pb": "cd dist && theme open --env=development",
"watch": "(cd dist && theme watch --env=development) & gulp watch",
"watch:src": "gulp watch",
"watch:dist": "cd dist && theme watch --env=development"
},
Expand Down
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ live:
- `npm run dev:deploy` deploy your development theme
- `npm run dev:watch` watch development theme,
- `npm run dev:open` open preview link for development theme
- `npm run dev:open:pb` open preview link for development theme with preview bar
- `npm run dev:download` downlaod all development theme files to `/dist`
- `npm run stage:deploy` deploys to development theme
- `npm run stage` builds, deploys then opens preview to staging theme
- `npm run stage:open` opens preview to staging theme
- `npm run stage:open:pb` opens preview to staging theme but opens with preview bar
- `npm run stage:deploy` deploys to staging theme
- `npm run stage:download` downloads all staging files to `/dist`
- `npm run live:deploy` deploy to live (first must chage read only to fals - in `config.yml`
Expand All @@ -51,9 +53,12 @@ live:
- `npm run build:css` generates development css
- `npm run build:js` generates development js
- `npm run build:img` compresses images in /src/images and places in assets
- `npm run watch` alias to **dev:watch**, watches /dist and /src files
- `npm run watch:src` auto generates development code as you make changes to `/src` scss and js
- `npm run watch:dist` start theme kit watch on `/dist` files to update theme on shopify
- `npm run log:purgedCSS` genrates unused css selectors that were purged
- `npm run open` alias for **dev:open**, opens preview link for development theme
- `npm run open:pb` alias for **dev:open:pb** open preview link for development theme with preview bar

### Project Structure ###
```
Expand Down

0 comments on commit a5b9ee8

Please sign in to comment.