summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-10-15 09:23:45 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-10-15 09:23:45 +0800
commit1e55d69a96a686911e8c850d0a09f37a78978060 (patch)
treed6455dd15f621b882421df60e589389bfcff577c /package.json
parent27a81a21ab8ab2ecf62912139430eaea13f46a20 (diff)
updates cmds
Diffstat (limited to 'package.json')
-rw-r--r--package.json14
1 files changed, 10 insertions, 4 deletions
diff --git a/package.json b/package.json
index b72eb2f4..71b62008 100644
--- a/package.json
+++ b/package.json
@@ -4,10 +4,12 @@
"description": "",
"main": "index.js",
"scripts": {
- "build:css": "postcss src/css/* --dir dest/css",
- "watch:css": "postcss src/css/* --dir dest/css --watch",
- "build:js": "babel src/js/* --out-dir dest/js",
- "watch:js": "babel src/js/* --out-dir dest/js --watch",
+ "build:css": "postcss dest/css/* --dir dest/css",
+ "watch:css": "postcss dest/css/* --dir dest/css --watch",
+ "build:js": "babel dest/js/* --out-dir dest/js",
+ "watch:js": "babel dest/js/* --out-dir dest/js --watch",
+ "build": "yarn build:css && yarn build:js",
+ "watch": "yarn watch:css & yarn watch:js",
"dev": "./launch.sh",
"check": "./launch.sh check"
},
@@ -19,6 +21,7 @@
"@babel/core": "^7.23.2",
"@babel/preset-env": "^7.23.2",
"autoprefixer": "^10.4.16",
+ "babel-plugin-uglify": "^1.0.2",
"cssnano": "^6.0.1",
"doiuse": "^6.0.2",
"g": "^2.0.1",
@@ -33,5 +36,8 @@
"postcss-vmin": "^3.0.0",
"postcss-will-change": "^4.0.1",
"rucksack-css": "^1.0.2"
+ },
+ "dependencies": {
+ "install": "^0.13.0"
}
}