forked from apt-get2Update/npm-scripts-boostrap-fontawesome
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
35 lines (35 loc) · 1.52 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
{
"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",
"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",
"copy:vendorjs": "mkdir dist/js && uglifyjs node_modules/jquery/dist/jquery.js node_modules/bootstrap-sass/assets/javascripts/bootstrap.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/",
"build:html": "cpx 'src/**/*.{html,htm}' dist",
"build:js": "cp -R 'src/js' 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.5.0",
"browser-sync": "^2.18.13",
"npm-run-all": "^4.1.0",
"uglify-js": "^3.0.28",
"bootstrap-sass": "^3.3.7",
"font-awesome": "^4.7.0",
"jquery": "^3.2.1",
"node-sass": "^4.5.3",
"onchange": "^3.2.1"
},
"dependencies": {
"owl.carousel": "^2.2.0"
}
}