-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
64 lines (64 loc) · 3.43 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"repository": {
"type": "git",
"url": "https://github.com/pinax/pinax-project"
},
"engines": {
"node": "6.11.0",
"npm": "3.10.10"
},
"scripts": {
"clean": "rm -rf static/dist && mkdir -p static/dist/js && mkdir -p static/dist/css && mkdir -p static/dist/fonts && mkdir -p static/dist/images",
"watch:babel": "babel static/src/js --out-dir static/dist/js --quiet --watch",
"build:babel": "babel static/src/js --out-dir static/dist/js --quiet",
"build:js": "browserify -t [ babelify --presets [ es2015 stage-1 ] ] -t envify static/src/js/index.js -o static/dist/js/site.js",
"build:css": "lessc --include-path=node_modules/font-awesome/less:node_modules/bootstrap/less static/src/less/site.less static/dist/css/site.css",
"copy:fonts": "cp node_modules/bootstrap/fonts/* static/dist/fonts/ && cp node_modules/font-awesome/fonts/* static/dist/fonts/",
"copy:images": "cp -r static/src/images/* static/dist/images/ 2>/dev/null || :",
"optimize:js": "uglifyjs static/dist/js/site.js -m -c warnings=false -o static/dist/js/site.js",
"optimize:css": "cssnano static/dist/css/site.css static/dist/css/site.css",
"optimize": "npm run optimize:js && npm run optimize:css",
"watch:test": "onchange static/src/js/**/*.js -- npm run test",
"watch:lint": "onchange static/src/js/**/*.js -- npm run lint",
"watch:js": "watchify -t [ babelify --presets [ es2015 stage-1 ] ] -t envify static/src/js/index.js -o 'exorcist static/dist/js/site.js.map > static/dist/js/site.js' -dv",
"watch:css": "onchange static/src/less/**/*.less -- npm run build:css",
"build": "npm run clean && concurrently \"npm run build:babel\" \"npm run build:js\" \"npm run build:css\" \"npm run copy:fonts\" \"npm run copy:images\" && npm run optimize",
"watch": "npm run clean && npm run copy:fonts && npm run copy:images && npm run build:css && concurrently --raw \"npm run watch:lint\" \"npm run watch:babel\" \"npm run watch:js\" \"npm run watch:css\"",
"lint": "eslint static/src/**/**/*.js",
"dev:browser-sync": "browser-sync start --no-open --proxy localhost:8000 --files \"static/dist/js/*.js, static/dist/css/*.css\"",
"dev": "concurrently --raw \"./manage.py runserver\" \"npm run watch\" \"npm run dev:browser-sync\"",
"test": "mocha --recursive --compilers js:babel-register static/src/tests/index.js",
"compile": "npm run clean && NODE_ENV=production concurrently \"npm run build:js\" \"npm run copy:fonts\" \"npm run copy:images\" \"npm run build:babel\" \"npm run build:css\"",
"postcompile": "autoprefixer-cli -b \"last 2 versions\" -o static/dist/css/site.css static/dist/css/site.css",
"heroku-postbuild": "./node_modules/.bin/npm run compile"
},
"license": "UNLICENSED",
"dependencies": {
"autoprefixer-cli": "1.0.0",
"bootstrap": "3.3.7",
"font-awesome": "4.7.0",
"jquery": "3.2.1",
"babel-cli": "6.24.1",
"babel-preset-es2015": "6.24.1",
"babel-preset-stage-1": "6.24.1",
"babelify": "7.3.0",
"browser-sync": "2.18.12",
"browserify": "14.4.0",
"chai": "3.5.0",
"concurrently": "3.4.0",
"cssnano": "3.10.0",
"cssnano-cli": "1.0.5",
"envify": "4.0.0",
"eslint": "3.19.0",
"eslint-plugin-babel": "4.1.1",
"exorcist": "0.4.0",
"jsdom": "9.12.0",
"jsdom-global": "2.1.1",
"less": "2.7.2",
"mocha": "3.4.2",
"onchange": "3.2.1",
"uglifyjs": "2.4.11",
"watchify": "3.9.0"
},
"heroku-run-build-script": true
}