-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
executable file
·125 lines (125 loc) · 4.65 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
{
"name": "bc",
"version": "0.0.0",
"author": "Torchbox Ltd",
"private": true,
"license": "UNLICENSED",
"repository": {
"type": "git",
"url": ""
},
"browserslist": [
"> 3%",
"ie 11",
"Firefox ESR",
"last 2 versions"
],
"jest": {
"testPathIgnorePatterns": [
"/node_modules/",
"/static_compiled/",
"/venv/"
],
"collectCoverageFrom": [
"**/bc/static_src/javascript/**/*.js"
]
},
"config": {
"src_js": "./bc/static_src/javascript",
"src_css": "./bc/static_src/sass",
"src_img": "./bc/static_src/images",
"src_font": "./bc/static_src/fonts",
"dest_js": "./bc/static_compiled/js",
"dest_css": "./bc/static_compiled/css",
"dest_img": "./bc/static_compiled/images",
"dest_font": "./bc/static_compiled/fonts",
"dist": "./bc/static_compiled"
},
"scripts": {
"//[ Utility ]//": "",
"serve": "browser-sync start --config browsersync.config.js",
"reload": "browser-sync reload",
"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:*",
"clean:dist": "rm -rf $npm_package_config_dist/{js/**,css/**,images/**}",
"clean": "npm-run-all -p clean:*",
"//[ Webpack build ]//": "",
"compile:prod": "webpack --mode production",
"compile:dev": "webpack --mode development --progress",
"compile:watch": "npm run compile:dev -- --watch",
"//[ Linting & formatting ]//": "",
"lint:css": "stylelint $npm_package_config_src_css'/**/**' && stylelint --report-needless-disables $npm_package_config_src_css'/**/**'",
"lint:js": "eslint --report-unused-disable-directives .",
"lint:format": "prettier --check '**/?(.)*.{md,css,scss,js,json,yaml,yml}'",
"lint": "npm-run-all -p lint:format lint:js lint:css",
"format": "prettier --write '**/?(.)*.{md,css,scss,js,json,yaml,yml}'",
"//[ Tests ]//": "",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"//[ Watches ]//": "",
"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: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:js": "onchange $npm_package_config_dest_js'/**/**' -- npm-run-all -p reload lint:js",
"watch:css": "onchange $npm_package_config_dest_css -- npm-run-all -p reload lint:css",
"watch": "npm-run-all -p watch:*",
"//[ Syncs ]//": "",
"sync:font": "rsync -rtvu --delete $npm_package_config_src_font/ $npm_package_config_dest_font/",
"sync:img": "rsync -rtvu --delete $npm_package_config_src_img/ $npm_package_config_dest_img/",
"sync": "npm-run-all -p sync:*",
"//[ 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 compile:dev -p compile:watch serve --silent"
},
"devDependencies": {
"@babel/core": "^7.9.6",
"@babel/preset-env": "^7.9.6",
"@babel/preset-react": "^7.9.4",
"autoprefixer": "^9.7.6",
"babel-eslint": "^10.1.0",
"babel-jest": "^24.9.0",
"babel-loader": "^8.1.0",
"browser-sync": "^2.27.10",
"copy-webpack-plugin": "^5.1.1",
"css-loader": "^3.5.3",
"cssnano": "^4.1.10",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-config-prettier": "^6.11.0",
"eslint-config-torchbox": "^0.3.3",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^1.7.0",
"jest": "^24.8.0",
"mini-css-extract-plugin": "^0.7.0",
"npm-run-all": "^4.1.5",
"onchange": "^6.1.1",
"postcss-custom-properties": "^9.1.1",
"postcss-loader": "^3.0.0",
"prettier": "^1.19.1",
"sass": "^1.26.5",
"sass-loader": "^7.1.0",
"stylelint": "^10.1.0",
"stylelint-config-torchbox": "^0.5.0",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11"
},
"dependencies": {
"@babel/polyfill": "^7.8.7",
"@glidejs/glide": "^3.2.3",
"accessible-autocomplete": "^3.0.0",
"highcharts": "^9.0.1",
"js-cookie": "^2.2.0",
"prop-types": "^15.7.2",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"whatwg-fetch": "^3.0.0"
}
}