Skip to content

Commit 6dc249a

Browse files
committed
build: update scripts
1 parent d0e3d0e commit 6dc249a

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

package.json

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,12 @@
4646
},
4747
{
4848
"type": "subscription",
49-
"url": "https://coreui.io/pro"
49+
"url": "hhttps://coreui.io/pricing/?framework=bootstrap"
5050
}
5151
],
5252
"scripts": {
53-
"build": "npm run build-from-html",
53+
"build": "npm-run-all clean --parallel css js copy --sequential build-vendors",
5454
"build-vendors": "node build/vendors.js",
55-
"build-from-html": "npm-run-all clean --parallel css js copy --sequential build-vendors",
56-
"build-from-pug": "npm-run-all clean --parallel css js copy-assets pug-dist --sequential build-vendors",
5755
"clean": "rimraf dist",
5856
"copy": "npm-run-all --parallel copy-*",
5957
"copy-assets": "copyfiles -a -u 1 \"src/assets/**/*\" dist/",
@@ -65,26 +63,22 @@
6563
"css-minify": "cleancss -O1 --format breakWith=lf --with-rebase --source-map --source-map-inline-sources --output dist/css/ --batch --batch-suffix \".min\" \"dist/css/*.css\" \"!dist/css/*.min.css\" \"!dist/css/*rtl*.css\"",
6664
"css-prefix": "postcss --config build/postcss.config.js --replace \"dist/css/*.css\" \"!dist/css/*.min.css\"",
6765
"js": "npm-run-all --parallel js-compile* ",
68-
"js-compile": "cross-env PLUGINS=true babel src/js/ --out-dir dist/js/ --source-maps",
66+
"js-compile": "cross-env babel src/js/ --out-dir dist/js/ --source-maps",
6967
"js-lint": "eslint --cache --cache-___location .cache/.eslintcache --report-unused-disable-directives .",
7068
"localhost": "browser-sync start --server \"./dist\" --serveStatic \"./\" --files \"./dist/\"",
7169
"postinstall": "node build/postinstall || exit 0",
72-
"prettier": "prettier --print-width=160 --write \"dist\"",
73-
"pug": "npm-run-all --parallel pug-*",
74-
"pug-dist": "node build/pug.js --dest dist/",
75-
"pug-views": "node build/pug.js --dest src/views/",
70+
"pug": "node build/pug.js --dest src/views/",
7671
"release-version": "node build/change-version.js",
7772
"serve": "serve dist",
7873
"start": "npm-run-all --sequential clean css js copy --parallel localhost watch",
79-
"start-html": "npm-run-all --sequential clean css js copy --parallel localhost watch-assets watch-css watch-html watch-js",
80-
"start-pug": "npm-run-all --sequential clean css js copy --parallel localhost watch-assets watch-css watch-pug watch-js",
81-
"sync-assets": "syncdir src/assets dist/assets",
74+
"sync-assets": "syncdir src/assets dist/assets --hardlink",
75+
"sync-views": "syncdir src/views dist/ --hardlink",
8276
"watch": "npm-run-all --parallel watch-*",
8377
"watch-assets": "nodemon --watch src/assets --exec \"npm run sync-assets\"",
8478
"watch-css": "nodemon --watch scss/ --ext scss --exec \"npm-run-all css-lint css-compile css-prefix\"",
85-
"watch-html": "nodemon --watch src/views --ext html --exec \"npm run copy-views\"",
79+
"watch-html": "nodemon --watch src/views --ext html --exec \"npm run sync-views\"",
8680
"watch-js": "nodemon --watch src/js --ext js --exec \"npm-run-all js-lint js-compile\"",
87-
"watch-pug": "nodemon --watch src/pug --ext pug --exec \"npm run pug-dist\"",
81+
"watch-pug": "nodemon --watch src/pug --ext pug --exec \"npm run pug\"",
8882
"zip": "git archive -o coreui-free-bootstrap-admin-template-v$npm_package_version.zip -9 HEAD"
8983
},
9084
"dependencies": {

0 commit comments

Comments
 (0)