-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
76 lines (76 loc) · 3.03 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
72
73
74
75
76
{
"name": "weave",
"version": "0.1.0",
"description": "Prototyping made easy.",
"scripts": {
"autoprefix:css": "postcss --use autoprefixer --use postcss-flexibility --use pixrem --replace build/css/*.css",
"browsersync": "browser-sync start --server 'build' --files 'build/**/*'",
"build": "npm-run-all clean setup build:svgs build:svg-defs --parallel build:*",
"build:css": "npm-run-all compile:css autoprefix:css",
"build:images": "rm -rf 'build/assets/images/*' && cp -a 'src/assets/images/.' 'build/assets/images/'",
"build:js": "npm-run-all --parallel build:js:*",
"build:js:app": "browserify 'src/js/app.js' --outfile 'build/js/app.min.js'",
"build:svgs": "svgo --folder='src/assets/svg' --output 'build/assets/svg' --config=svgo.yml --quiet",
"build:svg-defs": "svgstore -o 'src/assets/svg-defs.svg' --inline 'build/assets/svg/*.svg' && cp 'src/assets/svg-defs.svg' 'build/assets/svg-defs.svg'",
"build:twig": "node scripts/twig-build.js",
"clean": "rm -rf 'build'",
"compile:css": "node-sass --source-map true --output-style compressed src/scss/style.scss build/css/style.css",
"deploy": "surge ./build <project>.surge.sh",
"dev": "npm-run-all build --parallel watch:*",
"prod": "npm run build && npm run deploy",
"setup": "mkdir 'build' && mkdir 'build/css' && mkdir 'build/js' && mkdir 'build/assets' && mkdir 'build/assets/images' && mkdir 'build/assets/svg'",
"watch:browsersync": "npm run browsersync",
"watch:css": "chokidar 'src/scss' --command 'npm run build:css'",
"watch:images": "chokidar 'src/assets/images' --command 'npm run build:images'",
"watch:js": "npm-run-all --parallel watch:js:*",
"watch:js:app": "chokidar 'src/js/**/*.js' --command 'npm run build:js:app'",
"watch:svgs": "chokidar 'src/assets/svg' --command 'npm run build:svgs'",
"watch:svg-defs": "chokidar 'build/assets/svg' --command 'npm run build:svg-defs'",
"watch:twig": "chokidar 'src/pages' 'src/partials' 'src/data' 'src/assets/svg-defs.svg' --command 'npm run build:twig'"
},
"repository": {
"type": "git",
"url": "https://github.com/kjbrum/weave.git"
},
"author": "Kyle Brumm <[email protected]> (http://kylebrumm.com)",
"license": "MIT",
"bugs": {
"url": "https://github.com/kjbrum/weave/issues"
},
"homepage": "https://github.com/kjbrum/weave#readme",
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.3.1",
"autoprefixer": "^9.4.7",
"babelify": "^10.0.0",
"browserify": "^16.2.3",
"chokidar-cli": "^1.2.1",
"glob": "^7.1.3",
"js-beautify": "^1.8.9",
"node-sass": "^4.11.0",
"npm-run-all": "^4.1.5",
"pixrem": "^4.0.1",
"postcss-cli": "^6.1.1",
"postcss-flexibility": "^2.0.0",
"svgo": "^1.1.1",
"svgstore-cli": "^1.3.1",
"twig": "^1.13.2"
},
"browserslist": [
"last 2 versions",
"> 1%",
"ie > 8"
],
"browserify": {
"transform": [
[
"babelify",
{
"presets": [
"@babel/preset-env"
]
}
]
]
}
}