Skip to content

Commit

Permalink
Rename scripts. Added watch.
Browse files Browse the repository at this point in the history
  • Loading branch information
sonufrienko committed Mar 9, 2018
1 parent 4b29664 commit 0173e84
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions package.json
Expand Up @@ -32,17 +32,17 @@
"url": "https://github.com/cezerin/cezerin"
},
"scripts": {
"compile:dev": "babel src/store -d dist/store --watch & babel theme/src -d theme/dist --watch",
"compile": "babel src/store -d dist/store --quiet",
"webpack:admin:dev": "webpack --config webpack.config.admin.js --mode development",
"webpack:store:dev": "webpack --config webpack.config.store.js --mode development",
"webpack:admin:prod": "webpack --config webpack.config.admin.js --mode production",
"webpack:store:prod": "webpack --config webpack.config.store.js --mode production",
"compile:watch": "babel src/store -d dist/store --watch & babel theme/src -d theme/dist --watch",
"webpack:admin": "webpack --config webpack.config.admin.js --mode production",
"webpack:store": "webpack --config webpack.config.store.js --mode production",
"webpack:admin:watch": "webpack --config webpack.config.admin.js --mode development --watch",
"webpack:store:watch": "webpack --config webpack.config.store.js --mode development --watch",
"theme:install": "./scripts/theme-install.sh",
"theme:export": "./scripts/theme-export.sh",
"theme:build:prod": "babel theme/src -d theme/dist --quiet && npm run webpack:store:prod",
"build:dev": "npm run compile:dev & npm run webpack:store:dev & npm run webpack:admin:dev",
"build": "NODE_ENV=production npm run compile && npm run theme:build:prod && npm run webpack:admin:prod",
"theme:build": "babel theme/src -d theme/dist --quiet && npm run webpack:store",
"build": "NODE_ENV=production npm run compile && npm run theme:build && npm run webpack:admin",
"build:watch": "npm run compile:watch & npm run webpack:store:watch & npm run webpack:admin:watch",
"start-api": "node src/api/server/index.js",
"start-store": "node dist/store/server/index.js",
"start": "NODE_ENV=production npm run start-api & npm run start-store"
Expand Down
2 changes: 1 addition & 1 deletion scripts/theme-install.sh
Expand Up @@ -22,7 +22,7 @@ rm -rf theme/*
unzip -q "public/content/$fileName" -d "theme"

# 5. build theme
npm run theme:build:prod
npm run theme:build

# 6. show success message
echo -e '\e[1;92m'Theme $fileName successfully installed'\e[0m'

0 comments on commit 0173e84

Please sign in to comment.