-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
129 lines (129 loc) · 5.86 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"name": "patternlab-webpack-edition",
"version": "4.0.0",
"author": "Nick Lee",
"license": "UNLICENSED",
"repository": {
"type": "git",
"url": "https://github.com/nicklee/patternlab-webpack-edition"
},
"browserslist": [
"> 3%",
"iOS 8",
"last 2 versions"
],
"sasslintConfig": ".sass-lint.yml",
"config": {
"src_data": "site/data",
"src_patterns": "site/patterns",
"src_js": "site/javascript",
"src_css": "site/sass",
"src_img": "site/images",
"src_font": "site/fonts",
"dest_data": "patternlab/source/_data",
"dest_patterns": "patternlab/source/_patterns",
"dest_js": "dist/js",
"dest_css": "dist/css",
"dest_img": "dist/images",
"dest_font": "dist/fonts",
"dist": "dist"
},
"scripts": {
"//[ Utility ]//": "",
"serve": "browser-sync start --config browsersync.config.js",
"http": "http-server './dist' -p 4000",
"reload": "browser-sync reload",
"clean:lab": "rm -rf $npm_package_config_dest_html/{*.html,js/**,css/**,img/**, fonts/** }",
"clean:dist": "rm -rf $npm_package_config_dist/{js/**,css/**,images/**, fonts/**, patternlab/{annotations,css,fonts,js,patternlab-components,patterns}}",
"clean": "npm-run-all -p clean:*",
"git:init": "rm -rf .git && git init && git add . && git commit -m 'Project start'",
"create_dirs:dest_js": "mkdir -p $npm_package_config_dest_js",
"create_dirs:dest_css": "mkdir -p $npm_package_config_dest_css",
"create_dirs:dest_img": "mkdir -p $npm_package_config_dest_img",
"create_dirs:dest_font": "mkdir -p $npm_package_config_dest_font",
"create_dirs": "npm-run-all -p create_dirs:*",
"//[ Webpack build ]//": "",
"compile:prod": "webpack --mode production",
"compile:dev": "webpack --mode development --progress",
"compile:watch": "npm run compile:dev -- --watch",
"//[ Linting ]//": "",
"lint:css": "sass-lint $npm_package_config_src_css'/**/**' -v -q",
"lint": "npm-run-all -p lint:format lint:js lint:css",
"//[ Linting & formatting ]//": "",
"lint:js": "eslint $npm_package_config_src_js",
"lint:format": "prettier --check '**/?(.)*.{md,css,scss,js,json,yaml,yml}'",
"format": "prettier --write '**/?(.)*.{md,css,scss,js,json,yaml,yml}'",
"//[ Watches ]//": "",
"watch:data": "onchange $npm_package_config_src_data'/**/*.json' -- npm-run-all sync:data reload",
"watch:data:debug": "onchange $npm_package_config_src_data'/**/*.json' -- npm-run-all sync:data",
"watch:patterns": "onchange $npm_package_config_src_patterns'/**/{*.twig,*.json,*.md}' -- npm-run-all sync:patterns reload",
"watch:patterns:debug": "onchange $npm_package_config_src_patterns'/**/{*.twig,*.json,*.md}' -- npm-run-all sync:patterns",
"watch:img": "onchange $npm_package_config_src_img'/**/**' -- npm-run-all sync:img reload",
"watch:img:debug": "onchange $npm_package_config_src_img'/**/**' -- npm-run-all sync:img",
"watch:font": "onchange $npm_package_config_src_font'/**/**' -- npm-run-all sync:font reload",
"watch:font:debug": "onchange $npm_package_config_src_font'/**/**' -- npm-run-all sync:font",
"watch:js": "onchange $npm_package_config_dest_js'/**/**' -- npm-run-all -p reload",
"watch:patternCSS": "onchange 'site/patterns/**/*.scss' -- npm-run-all compile:css:dev",
"watch:patternCSS:debug": "onchange 'site/patterns/**/*.scss' -- npm-run-all compile:css:debug",
"watch:css": "onchange $npm_package_config_dest_css -- npm-run-all -p reload lint:css",
"watch:css:debug": "onchange $npm_package_config_dest_css -- npm-run-all -p autoprefixer",
"watch": "npm-run-all -p watch:*",
"//[ Patternlab Syncs ]//": "",
"sync:data": "rsync -rtvu --delete $npm_package_config_src_data/ $npm_package_config_dest_data/",
"//postsync:data": "npm run compile:lab:build",
"sync:patterns": "rsync -rtvu --delete $npm_package_config_src_patterns/ $npm_package_config_dest_patterns/",
"postsync:patterns": "npm run compile:lab:build",
"sync:img": "rsync -rtvu --delete $npm_package_config_src_img/ $npm_package_config_dest_img/",
"sync:fonts": "rsync -rtvu --delete $npm_package_config_src_font/ $npm_package_config_dest_font/",
"sync": "npm-run-all -p sync:*",
"//[ Patternlab ]//": "",
"compile:lab": "cd patternlab && php core/console --generate",
"compile:lab:build": "npm run compile:lab -- --generate",
"compile:lab:watch": "npm run compile:lab -- --watch",
"compile:lab:debug": "npm run compile:lab -- --watch",
"//[ Tasks ]//": "",
"build": "npm-run-all clean create_dirs sync compile:dev",
"build:prod": "npm-run-all clean create_dirs sync compile:prod",
"start": "npm-run-all clean create_dirs sync -p compile:watch watch serve --silent",
"debug": "npm-run-all clean create_dirs sync compile:*:prod compile:lab:build -p compile:*:debug watch:*:debug http --silent"
},
"devDependencies": {
"autoprefixer": "^9.6.1",
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"babel-eslint": "^10.0.3",
"babel-loader": "^8.0.6",
"babel-plugin-import-glob": "^2.0.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"browser-sync": "^2.18.13",
"eslint": "^6.3.0",
"eslint-loader": "^3.0.0",
"mini-css-extract-plugin": "^0.8.0",
"http-server": "^0.11.1",
"node-sass": "~4.12.0",
"node-sass-glob": "^1.0.4",
"npm-run-all": "^4.1.1",
"onchange": "^6.0.0",
"postcss-custom-properties": "^9.0.2",
"postcss-loader": "^3.0.0",
"postcss-cli": "^6.1.3",
"prettier": "^1.7.4",
"redux-thunk": "^2.2.0",
"sass": "^1.22.10",
"sass-lint": "^1.12.1",
"sass-loader": "^8.0.0",
"fibers": "^3.1.0",
"wavy": "^1.0.4",
"webpack": "^4.39.1",
"webpack-cli": "^3.3.6"
},
"engines": {
"node": ">=4"
},
"dependencies": {
"@babel/polyfill": "^7.4.4",
"headroom.js": "^0.9.4",
"js-cookie": "^2.2.1",
"vanilla-lazyload": "^12.0.0"
}
}