-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
32 lines (32 loc) · 1.37 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"name": "mostly-static-boilerplate",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "concurrently \"npx serve src\" \"npm run watch-css\"",
"watch-css": "npx less-watch-compiler src/assets/css src/assets/css style.less",
"clean": "rm -rf dist && mkdir -p dist/assets/css dist/assets/js dist/assets/img || true",
"build": "npm run clean && npm run copy-pages && npm run copy-css && npm run copy-img && npm run build-js",
"copy-pages": "rsync -av --progress src/ dist --exclude assets",
"copy-css": "cp -a src/assets/css/style.css dist/assets/css",
"copy-img": "cp -R src/assets/img dist/assets",
"build-js": "npx babel src/assets/js -d dist/assets/js",
"serve-dist": "npx serve dist",
"destroy-dist": "rm -rf dist",
"deploy-staging": "npm run build && now dist -A ../now.json",
"deploy-prod": "npm run build && now dist -A ../now.json --target production",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.3.4",
"@babel/preset-env": "^7.3.4",
"babel-preset-minify": "^0.5.0",
"concurrently": "^4.1.0",
"less-watch-compiler": "^1.13.0",
"serve": "^10.1.2"
}
}