Skip to content

Commit e881088

Browse files
committed
Changed npm srcipt name
1 parent 50620c3 commit e881088

2 files changed

Lines changed: 16 additions & 15 deletions

File tree

package.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cezerin",
33
"version": "0.11.0",
4-
"description": "Cezerin is open source e-commerce solution, powered by Node.js and React. https://cezerin.com",
4+
"description": "Cezerin allow you to create online store with full-stack JavaScript. https://cezerin.com",
55
"keywords": [
66
"cezerin",
77
"e-commerce",
@@ -26,21 +26,22 @@
2626
"url": "https://github.com/cezerin/cezerin"
2727
},
2828
"scripts": {
29-
"clear:admin": "rm ./public/admin-assets/js/app-*; rm ./public/admin-assets/js/vendor-*; rm ./public/admin-assets/css/bundle-*",
30-
"clear:store": "rm ./public/assets/js/app-*; rm ./public/assets/js/theme-*",
31-
"dev:admin": "webpack -d --config webpack.config.admin.js --watch --progress --colors",
32-
"dev:store": "webpack -d --config webpack.config.store.js --watch --progress --colors",
33-
"dev:server": "babel src -d dist --watch",
34-
"dev:start": "nodemon --watch dist --watch public/assets dist/index.js",
35-
"dev": "npm run dev:store & npm run dev:admin & npm run dev:server & npm run dev:start",
36-
"theme:update": "cd ./themes/current && npm run build && cd ../../ && npm install theme && ./scripts/theme-copy-assets.sh",
29+
"clean:admin": "rm -f ./public/admin-assets/js/app-*.js; rm -f ./public/admin-assets/js/vendor-*.js; rm -f ./public/admin-assets/css/app-*.css",
30+
"clean:store": "rm -f ./public/assets/js/app-*.js; rm -f ./public/assets/js/theme-*.js",
31+
"compile:dev": "babel src -d dist --watch",
32+
"compile": "babel src -d dist --quiet",
33+
"webpack:admin:dev": "npm run clean:admin && webpack -d --config webpack.config.admin.js --watch --progress --colors",
34+
"webpack:store:dev": "npm run clean:store && webpack -d --config webpack.config.store.js --watch --progress --colors",
35+
"webpack:admin:prod": "npm run clean:admin && NODE_ENV=production webpack -p --config webpack.config.admin.js",
36+
"webpack:store:prod": "npm run clean:store && NODE_ENV=production webpack -p --config webpack.config.store.js",
3737
"theme:install": "./scripts/theme-install.sh",
3838
"theme:export": "./scripts/theme-export.sh",
39-
"build:admin": "NODE_ENV=production webpack -p --config webpack.config.admin.js",
40-
"build:store": "NODE_ENV=production webpack -p --config webpack.config.store.js",
41-
"build:server": "babel src -d dist --quiet",
42-
"build:theme": "npm run theme:update --silent && npm run build:store",
43-
"build": "npm run theme:update --silent && npm run build:server && npm run build:store && npm run build:admin",
39+
"theme:copy": "cd ./themes/current && npm run build && cd ../../ && npm install theme && ./scripts/theme-copy-assets.sh",
40+
"theme:build:dev": "npm run theme:copy && npm run webpack:store:dev",
41+
"theme:build:prod": "npm run theme:copy --silent && npm run webpack:store:prod",
42+
"build:dev": "npm run compile:dev & npm run webpack:store:dev & npm run webpack:admin:dev",
43+
"build": "npm run compile && npm run theme:build:prod && npm run webpack:admin:prod",
44+
"start:dev": "nodemon --watch dist --watch public/assets dist/index.js",
4445
"start": "NODE_ENV=production node dist/index.js"
4546
},
4647
"dependencies": {

src/api/server/services/themes/themes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ThemesService {
2828
if (err) {
2929
res.status(500).send(this.getErrorMessage(err));
3030
} else {
31-
exec(`npm run theme:install ${fileName} && npm run build:theme`, (error, stdout, stderr) => {
31+
exec(`npm run theme:install ${fileName} && npm run theme:build:prod`, (error, stdout, stderr) => {
3232
if (error) {
3333
res.status(500).send(this.getErrorMessage(error));
3434
} else {

0 commit comments

Comments
 (0)