-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
65 lines (65 loc) · 2.53 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
{
"name": "byteclub-site",
"version": "1.0.0",
"private": true,
"scripts": {
"build": "run-s clean dirs js css metalsmith",
"clean": "rm -rf build build-gzip",
"precss": "npm run dirs",
"css": "stylus src/css/site.styl -o build/css",
"dirs": "mkdirp build/css build/img build/js",
"deploy": "run-s build gzip redeploy",
"redeploy": "cd build-gzip && cp ../aws-* ./ && s3-upload",
"gzip": "rm -rf build-gzip && cp -rf build build-gzip && cd build-gzip && find . -regex \".*\\.\\(css\\|html\\|js\\|svg\\)\" -exec gzip --force \"{}\" \\; -exec mv \"{}.gz\" \"{}\" \\;",
"jquery": "cat src/js/jquery.* | uglifyjs -o build/js/jquery-plugins.js",
"js": "npm run jquery && cp src/js/leaflet.js build/js && cp src/js/modernizr.custom.22896.js build/js && cp src/js/parsley.min.js build/js && uglifyjs src/js/start.js -o build/js/start.min.js",
"metalsmith": "metalsmith -c config/metalsmith-build.js",
"serve": "http-server build",
"prestart": "npm run build",
"start": "npm run serve",
"prewatch": "run-s dirs js metalsmith",
"watch": "run-p watch:* serve",
"watch:css": "stylus --watch src/css/site.styl -o build/css",
"watch:pages": "onchange \"src/**\" \"layouts/**\" \"lib/**\" \"config/**\" -- npm run rebuild-on-change",
"rebuild-on-change": "run-s metalsmith notify-build",
"notify-build": "node -e \"require('growl')('Rebuilt byteclub.fr successfully')\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/lmtm/site.git"
},
"author": "ByteClub",
"bugs": {
"url": "https://github.com/lmtm/site/issues"
},
"homepage": "https://github.com/lmtm/site#readme",
"devDependencies": {
"http-server": "^0.10.0",
"lodash": "^4.17.4",
"metalsmith": "^2.3.0",
"metalsmith-collections": "^0.9.0",
"metalsmith-excerpts": "^1.2.0",
"metalsmith-ignore": "^0.1.2",
"metalsmith-layouts": "^1.8.1",
"metalsmith-markdown": "^0.2.1",
"metalsmith-metadata": "0.0.4",
"metalsmith-metallic": "^0.3.1",
"metalsmith-rss": "^1.0.0",
"metalsmith-sitemap": "^1.2.0",
"metalsmith-tags": "github:byteclubfr/metalsmith-tags#no-slug",
"metalsmith-url": "^1.0.0",
"mkdirp": "^0.5.1",
"moment": "^2.19.1",
"npm-run-all": "^4.1.1",
"onchange": "^3.2.1",
"s3-upload": "github:byteclubfr/s3-static-site-uploader#gzip",
"stylus": "^0.54.5",
"swig": "^1.4.2",
"uglify-js": "^3.1.3"
},
"dependencies": {
"growl": "^1.10.2",
"jstransformer-swig": "^0.2.1",
"metalsmith-in-place": "^3.0.1"
}
}