/
package.json
131 lines (131 loc) · 4.01 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
{
"name": "polished",
"version": "4.1.1",
"description": "A lightweight toolset for writing styles in Javascript.",
"license": "MIT",
"author": "Brian Hough <hello@brianhough.net> (https://polished.js.org)",
"homepage": "https://polished.js.org",
"bugs": "https://github.com/styled-components/polished/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/styled-components/polished.git"
},
"keywords": [
"styled-components",
"polished",
"emotion",
"glamor",
"css-in-js",
"inline-styles",
"react",
"flow",
"typescript",
"color manipulate",
"color manipulation",
"curried color manipulation",
"color",
"colour"
],
"main": "dist/polished.cjs.js",
"module": "dist/polished.esm.js",
"types": "lib/index.d.ts",
"sideEffects": false,
"scripts": {
"build": "yarn build:lib && yarn build:dist && yarn build:flow && yarn build:docs && yarn build:typescript",
"prebuild:lib": "shx rm -rf lib/*",
"build:lib": "cross-env BABEL_ENV=cjs babel --out-dir lib src --ignore test.js",
"prebuild:umd": "shx rm -rf dist/*",
"prebuild:dist": "shx rm -rf dist/*",
"build:dist": "rollup -c",
"build:docs": "yarn build:docs:site",
"prebuild:docs:site": "shx rm -rf docs/*",
"build:docs:site": "documentation build src/** -t docs-theme --github -o docs -f html -c ./.documentation.json",
"postbuild:docs:site": "shx cp CNAME docs/CNAME && shx cp dist/polished.js docs/assets/",
"build:watch": "npm-watch",
"build:flow": "flow-copy-source -v -i '{**/test/*.js,**/*.test.js}' src lib",
"build:typescript": "tsgen \"lib/**/*.js.flow\" --ignore \"lib/**/_*.js.flow\"",
"test": "jest src",
"typescript": "tsc ./typescript-test.ts --noEmit --target es6 --module es2015 --moduleResolution node --allowJs",
"lint": "eslint src",
"flow": "flow check && flow batch-coverage src/ --show-all --strip-root",
"docs": "pushstate-server -d docs",
"prepare": "yarn build && yarn typescript",
"semantic-release": "semantic-release"
},
"lint-staged": {
"src/**/*.js": [
"prettier --write",
"eslint --fix"
]
},
"watch": {
"build:docs": "src/**/*.js",
"build:lib": "src/**/*.js"
},
"dependencies": {
"@babel/runtime": "^7.12.5"
},
"devDependencies": {
"@babel/cli": "^7.12.16",
"@babel/core": "^7.12.16",
"@babel/plugin-transform-runtime": "^7.12.15",
"@babel/polyfill": "^7.12.1",
"@babel/preset-env": "^7.12.16",
"@babel/preset-flow": "^7.12.13",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-node-resolve": "^11.2.0",
"@rollup/plugin-replace": "^2.3.4",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.6.3",
"babel-plugin-add-module-exports": "^1.0.2",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"babel-plugin-preval": "5.0.0",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.1.0",
"documentation": "12.3.0",
"eslint": "^7.20.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.22.1",
"flow-bin": "^0.133.0",
"flow-copy-source": "^2.0.8",
"husky": "^4.3.8",
"jest": "^26.6.3",
"lint-staged": "^10.5.4",
"npm-watch": "^0.7.0",
"prettier": "^2.2.1",
"pushstate-server": "^3.1.0",
"ramda": "^0.27.0",
"rollup": "^2.39.0",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-terser": "^7.0.2",
"semantic-release": "^17.3.9",
"shx": "^0.3.3",
"tsgen": "1.3.0",
"typescript": "4.1.5",
"validate-commit-msg": "^2.14.0"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"jest": {
"coverageDirectory": "./coverage/",
"collectCoverage": true,
"testURL": "http://localhost/",
"verbose": true
},
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/polished"
},
"husky": {
"hooks": {
"post-commit": "validate-commit-msg",
"pre-commit": "lint-staged --debug"
}
},
"engines": {
"node": ">=10"
}
}