-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
140 lines (140 loc) · 6.78 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
130
131
132
133
134
135
136
137
138
139
140
{
"name": "CIGI",
"version": "1.0.0",
"author": "Torchbox",
"repository": {
"type": "git",
"url": "https://git.torchbox.com/cigi/cigionline.org"
},
"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 ]//": "",
"upload": "dploy",
"serve": "browser-sync start --config browsersync.config.js",
"http": "http-server './dist' -p 4000",
"reload": "browser-sync reload",
"reload:css": "npm run reload -- --files='*.css'",
"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:*",
"//[ SASS ]//": "",
"compile:css": "node-sass --importer node_modules/node-sass-glob/index.js -o $npm_package_config_dest_css $npm_package_config_src_css",
"compile:css:dev": "npm run compile:css -- --output-style expanded --source-map true",
"compile:css:watch": "npm run compile:css -- --output-style expanded --source-map true --watch",
"compile:css:prod": "npm run compile:css -- --output-style compressed && npm run autoprefixer",
"compile:css:debug": "npm run compile:css -- --output-style compressed --watch",
"autoprefixer": "postcss --map false -u autoprefixer -b 'last 2 versions, iOS 8, > 3%' -r $npm_package_config_dest_css/*.css",
"//[ Javascript ]//": "",
"compile:js": "webpack-cli --progress",
"compile:js:prod": "npm run compile:js -- -p --mode production",
"compile:js:dev": "npm run compile:js -- -d --mode development",
"compile:js:watch": "npm run compile:js:dev -- --watch",
"compile:js:debug": "npm run compile:js:watch -- --display-modules",
"//[ Linting ]//": "",
"lint:css": "sass-lint $npm_package_config_src_css'/**/**' -v -q || true",
"lint": "npm run lint:css",
"//[ Format ]//": "",
"format": "prettier --write --single-quote --tab-width 4 $npm_package_config_src_patterns'/**/{*.json,*.js,*.scss}'",
"//[ 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:css 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:lab:build compile:*:dev",
"build:prod": "npm-run-all clean create_dirs sync:img sync:fonts compile:*:prod",
"deploy": "npm-run-all build:prod upload",
"lab": "npm-run-all clean create_dirs sync compile:*:dev -p compile:*:watch watch serve --silent",
"lab:prod": "npm-run-all clean create_dirs sync compile:*:prod -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": "^7.1.5",
"babel-core": "^6.26.0",
"babel-eslint": "^8.0.1",
"babel-loader": "^7.1.3",
"babel-plugin-import-glob": "^2.0.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"browser-sync": "^2.18.13",
"dploy": "^1.2.0",
"eslint": "^4.8.0",
"eslint-loader": "^2.0.0",
"eslint-plugin-react": "^7.7.0",
"http-server": "^0.10.0",
"node-sass": "~4.5.3",
"node-sass-glob": "^1.0.4",
"npm-run-all": "^4.1.1",
"onchange": "^3.2.1",
"postcss-cli": "^4.1.1",
"prettier": "^1.7.4",
"redux-thunk": "^2.2.0",
"sass-lint": "^1.12.0",
"wavy": "^1.0.4",
"webpack": "^4.0.1",
"webpack-cli": "^2.0.9"
},
"engines": {
"node": ">=4"
},
"dependencies": {
"@glidejs/glide": "^3.1.0",
"headroom.js": "^0.9.4",
"in-view": "^0.6.1",
"jquery": "^3.3.1",
"js-cookie": "^2.1.4",
"lg-video.js": "^1.0.0",
"lightgallery.js": "^1.0.3",
"promise-polyfill": "^7.1.0"
}
}