This repository has been archived by the owner on Aug 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
43 lines (43 loc) · 1.88 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
38
39
40
41
42
43
{
"name": "frontend-template",
"version": "1.0.0",
"private": true,
"description": "Example of Browserify and other frontend tools",
"author": "Kimmo Brunfeldt",
"license": "MIT",
"scripts": {
"start": "concurrently -p \"[{name}]\" -n \"HTTP,JS,LESS\" -c \"bgBlue.bold,bgMagenta.bold,bgGreen.bold\" \"npm run http-server\" \"npm run watch-js\" \"npm run watch-styles\"",
"http-server": "http-server -c0 .",
"watch-js": "API_URL=http://localhost:9001 watchify ./scripts/index.js -t [ babelify --presets [ es2015 ] ] -t envify --debug --verbose -o ./bundle.js",
"watch-styles": "npm run build-styles-dev && chokidar \"**/*.less\" \"./styles/**/*.css\" -c \"npm run build-styles-dev\"",
"build": "npm run build-js && npm run build-styles",
"build-js": "NODE_ENV=production browserify ./scripts/index.js -t [ babelify --presets [ es2015 ] ] -t envify -o ./bundle.js && npm run minify-js",
"build-styles": "npm run build-less && npm run postcss && npm run minify-css",
"build-styles-dev": "npm run build-less && npm run postcss && echo \"Styles built!\"",
"build-less": "lessc ./styles/index.less ./bundle.css",
"postcss": "postcss --use autoprefixer ./bundle.css -o ./bundle.css",
"minify-js": "uglifyjs ./bundle.js -o ./bundle.js",
"minify-css": "cleancss --skip-aggressive-merging --skip-restructuring ./bundle.css -o ./bundle.css"
},
"dependencies": {
"bluebird": "^3.4.6",
"fastclick": "^1.0.6",
"lodash": "^4.15.0",
"progressbar.js": "^1.0.1"
},
"devDependencies": {
"autoprefixer": "^6.4.1",
"babel-preset-es2015": "^6.14.0",
"babelify": "^7.3.0",
"browserify": "^13.1.0",
"chokidar-cli": "^1.2.0",
"clean-css": "^3.4.19",
"concurrently": "^2.2.0",
"envify": "^3.4.1",
"http-server": "^0.9.0",
"less": "^2.7.1",
"postcss-cli": "^2.6.0",
"uglifyjs": "^2.4.10",
"watchify": "^3.7.0"
}
}