-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpackage.json
37 lines (37 loc) · 1.85 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
33
34
35
36
37
{
"name": "bootjs",
"version": "1.0.0",
"scripts": {
"clean": "rm -rf dist",
"postinstall": "npm run build",
"serve": "browser-sync start --server 'dist' --files 'dist'",
"watch": "npm run build && npm-run-all -p serve watch:html watch:js watch:css watch:images",
"watch:html": "cpx 'src/**/*.{html,htm}' dist --watch",
"watch:js": "cpx 'src/js/**' 'dist/js' --watch",
"watch:css": "onchange 'src/scss' -- npm run build:css",
"watch:images": "cpx 'src/**/*.{png,jpg,svg,ico}' dist --watch",
<<<<<<< HEAD
"build": "npm run clean && mkdir dist && npm run copy:vendorjs && npm run build:js && npm run build:css && npm run build:html",
"copy:vendorjs": "mkdir dist/js && uglifyjs node_modules/jquery/dist/jquery.js node_modules/materialize-css/dist/js/materialize.js -m -c -o dist/js/vendor.min.js",
=======
"build": "npm run clean && mkdir dist && npm run copy:vendorjs && npm run copy:vendorfonts && npm run build:js && npm run build:css && npm run build:html && npm run build:font",
"copy:vendorjs": "mkdir dist/js && uglifyjs node_modules/jquery/dist/jquery.js node_modules/materialize-css/dist/js/materialize.js -m -c -o dist/js/vendor.min.js",
"copy:vendorfonts": "cp -R node_modules/font-awesome/fonts dist/ && cp -R node_modules/bootstrap-sass/assets/fonts dist/",
>>>>>>> 434f86b0d157437ee693889231c182ad26e25d77
"build:html": "cpx 'src/**/*.{html,htm}' dist",
"build:js": "cp -R 'src/js' dist",
"build:font": "cp -R 'src/font' dist",
"build:css": "node-sass --output-style compressed -o dist/css src/scss",
"build:images": "cpx 'src/**/*.{png,jpg,svg,ico}' dist"
},
"devDependencies": {
"cpx": "^1.3.2",
"browser-sync": "^2.14.0",
"npm-run-all": "^3.0.0",
"uglify-js": "^2.7.3",
"materialize-css": "^0.97.8",
"jquery": "^2.2.0",
"node-sass": "^3.8.0",
"onchange": "^2.5.0"
}
}