-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
67 lines (67 loc) · 2.97 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
65
66
67
{
"name": "wallblog",
"version": "1.2.1",
"repository": "https://github.com/johanpoirier/wallblog",
"private": true,
"devDependencies": {
"babel-core": "^6.4.0",
"babel-loader": "^6.2.1",
"babel-preset-es2015": "^6.3.13",
"clean-css": "^3.4.9",
"copy-webpack-plugin": "^4.0.1",
"exports-loader": "^0.6.2",
"handlebars-loader": "^1.1.4",
"hashmark": "^4.1.0",
"htmlprocessor": "^0.2.1",
"imagemin-pngquant": "^6.0.0",
"imports-loader": "^0.8.0",
"json-loader": "^0.5.4",
"live-reload": "^1.1.0",
"parallelshell": "^3.0.2",
"preprocess": "^3.1.0",
"replaceinfiles": "^1.1.4",
"rimraf": "^2.5.4",
"run-sequence": "^2.2.1",
"watch": "^1.0.1",
"webpack": "^1.12.10",
"webpack-append": "^0.1.2"
},
"dependencies": {
"backbone": "^1.2.3",
"hammerjs": "^2.0.6",
"handlebars": "^4.0.5",
"jquery": "^3.3.1",
"keymaster": "^1.6.2",
"moment": "^2.17.1",
"underscore": "^1.8.3"
},
"config": {
"debug": false
},
"scripts": {
"clean": "rimraf dist/js dist/css dist/index.* dist/font/ dist/img/",
"precopy": "npm run clean -s && mkdir -p dist/img && mkdir -p dist/font && mkdir -p dist/pictures",
"copy": "npm run copy:images -s && npm run copy:fonts -s && npm run copy:misc -s && npm run copy:pictures -s",
"copy:images": "cp app/img/* dist/img",
"copy:pictures": "cp app/pictures/empty* dist/pictures",
"copy:fonts": "cp app/font/* dist/font",
"copy:misc": "cp app/index.php dist/ && cp app/.htaccess dist/ && cp app/favicon.ico dist/ && cp app/robots.txt dist/ && cp app/manifest.* dist/ && cp app/js/analytics.js dist/",
"prebuild": "npm run copy",
"prebuild:styles": "mkdir -p dist/css",
"prebuild:sw": "mkdir -p dist/sw",
"build": "npm run build:scripts -s -- -d && npm run build:styles -s && npm run build:markup -- -e dev",
"build:scripts": "webpack",
"build:styles": "cleancss --skip-rebase app/css/*.css -o dist/css/main.css",
"build:markup": "htmlprocessor app/index.html -o dist/index.html",
"precachebuster": "hashmark -l 8 --cwd dist {js,css}/*.{js,css} '{dir}/{name}{hash}{ext}' > 'dist/cachebuster.map'",
"cachebuster": "cat dist/cachebuster.map | replaceinfiles -s 'dist/index.html' -d '{dir}/{base}' && cat 'dist/cachebuster.map' | replaceinfiles -s 'dist/service-worker.js' -d '{dir}/{base}'",
"postcachebuster": "rimraf dist/js/wallblog.js && rimraf dist/css/main.css && rimraf 'dist/cachebuster.map'",
"live-reload": "live-reload --port=9091 --delay=100 dist/js/ dist/css/",
"watch": "parallelshell \"npm run watch:scripts\" \"npm run watch:styles\"",
"watch:scripts": "webpack -d --watch",
"watch:styles": "watch \"npm run build:styles\" app/css/",
"predev": "npm run build -s",
"dev": "parallelshell \"npm run watch\" \"npm run live-reload\"",
"package": "npm run copy -s && npm run build:scripts -s -- -p && npm run build:styles -s && npm run build:markup -s -- -e dist && npm run cachebuster -s"
}
}