-
Notifications
You must be signed in to change notification settings - Fork 74
/
package.json
76 lines (76 loc) · 2.69 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
{
"devDependencies": {
"bluebird": "^3.5.1",
"concurrently": "^3.5.1",
"cross-spawn": "^6.0.5",
"doctoc": "^1.3.1",
"fs-extra": "7.0.0",
"gh-pages": "2.0.1",
"husky": "^1.1.1",
"jest": "23.4.1",
"jest-diff": "23.2.0",
"js-yaml": "^3.14.1",
"lerna": "^2.9.0",
"lint-staged": "^7.0.0",
"lodash": "^4.17.5",
"mini-svg-data-uri": "^1.0.0",
"minimist": "^1.2.0",
"node-yaml": "^3.1.1",
"npm-watch": "^0.3.0",
"prettier": "^1.11.1",
"svgo": "1.0.4",
"theo": "^7.0.1",
"xml2js": "^0.4.19"
},
"watch": {
"build": {
"patterns": [
"OTKit",
"OTTheme"
],
"ignore": [
"OTKit/otkit-icons/token.yml",
"OTKit/otkit-icons/token.theme.yml"
],
"extensions": "yml, svg",
"delay": 0
}
},
"scripts": {
"build": "npm run build-ottheme && npm run build-otkit",
"build-icons": "lerna exec --scope *-icons -- node '$LERNA_ROOT_PATH/utils/build-icons'",
"build-typography": "lerna exec --scope *-typography-desktop -- node '$LERNA_ROOT_PATH/utils/build-typography'",
"build-otkit": "npm run build-icons && npm run build-typography && npm run build-otkit-all && npm run build-otkit-theme-icon",
"build-otkit-all": "lerna exec --scope otkit-* theo token.yml -- --format scss,cssmodules.css,common.js --dest .",
"build-otkit-theme-icon": "lerna exec --scope otkit-icons theo token.theme.yml -- --format scss,cssmodules.css,common.js --dest .",
"build-ottheme": "lerna exec --scope ottheme-* theo token.yml -- --format scss,cssmodules.css,common.js --dest .",
"build-styleguide": "lerna exec --scope style-guide npm run build",
"clean": "lerna clean",
"develop": "concurrently 'lerna exec --scope style-guide npm run develop' 'npm-watch'",
"postinstall": "lerna bootstrap",
"test": "npm run build-icons && npm run build-typography && lerna exec --scope ot* theo token.yml -- --format scss,cssmodules.css,common.js && lerna exec --scope otkit-icons theo token.theme.yml -- --format scss,cssmodules.css,common.js && npm run unit",
"unit": "jest",
"updated": "lerna updated",
"updatetoc": "doctoc README.md --github",
"automatic-release": "npm run build && node utils/automatic-release && npm run build-styleguide && node utils/deploy-styleguide",
"automatic-release-test": "npm run build && node utils/automatic-release --test && npm run build-styleguide"
},
"lint-staged": {
"*.js": [
"prettier --single-quote --write",
"git add"
]
},
"jest": {
"roots": [
"utils"
],
"clearMocks": true,
"testURL": "http://localhost/"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}