This repository has been archived by the owner on Mar 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
/
package.json
71 lines (71 loc) · 3.27 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
68
69
70
71
{
"name": "dash-website",
"version": "1.0.0",
"description": "The new dash.org website",
"main": "index.js",
"scripts": {
"eslint:dist": "eslint src/js/*.js || exit 0",
"eslint": "npm run eslint:dist",
"uglify:dist": "mkdir -p dist/js/ && ./node_modules/uglify-js/bin/uglifyjs src/js/*.js -m -o dist/js/main.min.js",
"uglify:dev": "mkdir -p dist/js/ && ./node_modules/uglify-js/bin/uglifyjs src/js/*.js -c -o dist/js/main.min.js",
"uglify": "npm run uglify:dist",
"htmlproof": "htmlproofer ./_site --disable-external --allow-hash-href --assume-extension --alt-ignore '/.*/' --file-ignore /assets/,/dist/,/style-guide/,/blog/ --url-ignore '/^/binaries/.+$/,/^/forum/?.*$/'",
"test": "echo \"No Tests.\" && exit 0",
"clean:dist": "rm -rf dist && rm -rf _site",
"clean": "npm run clean:dist",
"copy": "npm run copy:all",
"copy:all": "npm run copy:dist",
"copy:dist": "mkdir -p _site/dist/ && ncp dist/ _site/dist/",
"copy:js": "mkdir -p _site/dist/js/ && ncp dist/js/ _site/dist/js/",
"copy:css": "mkdir -p _site/dist/css/ && ncp dist/css/ _site/dist/css/",
"prefix": "postcss --use autoprefixer -b 'last 3 versions' --output dist/css/main.min.css dist/css/main.min.css",
"sass:dist": "node-sass --output-style compressed --source-map true src/scss/main.scss dist/css/main.min.css",
"sass": "npm run sass:dist",
"font": "mkdir -p dist/fonts && ncp src/fonts/ dist/fonts/",
"imagemin": "imagemin src/images/* --out-dir=_site/dist/images/ -p",
"build:jekyll": "bundle exec jekyll build --config _config.yml | egrep -v '^(Missing i18n key|Using translation)|(default language)'",
"build:jekyll:incremental": "bundle exec jekyll build --config _config.yml --incremental",
"build:js": "npm run eslint && npm run uglify",
"build:css": "npm run sass && npm run prefix",
"build:font": "npm run font",
"build:images": "npm run imagemin",
"reload": "browser-sync reload",
"build": "run-s clean build:js build:css build:font build:jekyll copy htmlproof eslint",
"watch:jekyll": "onchange 'index.html' '*/*.html' '*/*.xml' '_*/**/*.yml' '_includes/**/*.html' '_layouts/**/*.html' '_posts/*' -e '_site/*' -d 500 -- run-s build:jekyll:incremental copy reload",
"watch:css": "onchange 'src/scss/**/*' -d 500 -- run-s sass prefix copy:css",
"watch:js": "onchange 'src/js/*' -d 500 -- run-s uglify:dev copy:js reload",
"watch": "run-p serve watch:jekyll watch:css watch:js",
"serve": "browser-sync start --server _site -f '_site/dist/css'",
"start": "npm run build -s && npm run watch",
"postinstall": "gem install bundler && bundle install",
"validate": "npm ls",
"lint": "jshint ."
},
"author": "0xfff <[email protected]>",
"license": "MIT",
"devDependencies": {
"autoprefixer": "^6.4.1",
"browser-sync": "^2.26.0",
"eslint": "^3.5.0",
"ncp": "^2.0.0",
"node-sass": "^4.5.3",
"npm-run-all": "3.1.0",
"onchange": "3.0.2",
"postcss": "^5.0.14",
"postcss-cli": "2.5.0",
"precommit-hook": "^3.0.0",
"uglify-js": "^2.7.3",
"watch": "0.19.2",
"merge": ">=1.2.1"
},
"dependencies": {
"no-scroll": "^2.0.0",
"sass-burger": "^1.3.1",
"slick-carousel": "^1.6.0"
},
"jshintConfig": {},
"pre-commit": [
"eslint",
"htmlproof"
]
}