UNPKG

5.37 kBJSONView Raw
1{
2 "name": "styled-components",
3 "version": "4.1.0",
4 "description": "Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress",
5 "main": "dist/styled-components.cjs.js",
6 "jsnext:main": "dist/styled-components.esm.js",
7 "module": "dist/styled-components.esm.js",
8 "react-native": "native/dist/styled-components.native.cjs.js",
9 "browser": {
10 "./dist/styled-components.esm.js": "./dist/styled-components.browser.esm.js",
11 "./dist/styled-components.cjs.js": "./dist/styled-components.browser.cjs.js"
12 },
13 "sideEffects": false,
14 "scripts": {
15 "build": "rollup -c",
16 "prebuild": "rimraf dist",
17 "test": "run-s test:*",
18 "test:web": "jest",
19 "test:web:watch": "npm run test:web -- --watch",
20 "test:native": "jest -c .jest.native.json",
21 "test:native:watch": "npm run test:native -- --watch",
22 "test:primitives": "jest -c .jest.primitives.json",
23 "test:primitives:watch": "npm run test:primitives -- --watch",
24 "test:integration": "jest -c .jest.integration.json --runInBand --forceExit",
25 "size": "bundlesize",
26 "flow": "flow check",
27 "flow:watch": "flow-watch",
28 "format": "eslint ./**/*.js --fix",
29 "lint": "eslint src",
30 "prettier": "prettier */**/*.js --write",
31 "prepublishOnly": "run-s build",
32 "lint-staged": "lint-staged",
33 "dev": "cross-env BABEL_ENV=cjs babel-node example/startServer.js",
34 "prebenchmarks": "yarn run build:benchmarks",
35 "benchmarks": "node benchmarks/run-headless.js",
36 "build:benchmarks": "(cd benchmarks && yarn && yarn run build)",
37 "postinstall": "node ./scripts/postinstall.js || exit 0"
38 },
39 "repository": {
40 "type": "git",
41 "url": "git+https://github.com/styled-components/styled-components.git"
42 },
43 "files": [
44 "CODE_OF_CONDUCT.md",
45 "CONTRIBUTING.md",
46 "dist",
47 "native",
48 "primitives",
49 "scripts",
50 "test-utils",
51 "macro"
52 ],
53 "keywords": [
54 "react",
55 "css",
56 "css-in-js",
57 "styled-components",
58 "babel-macro",
59 "babel-macros",
60 "styling"
61 ],
62 "author": "Glen Maddern",
63 "license": "MIT",
64 "bugs": {
65 "url": "https://github.com/styled-components/styled-components/issues"
66 },
67 "homepage": "https://styled-components.com",
68 "dependencies": {
69 "@emotion/is-prop-valid": "^0.6.8",
70 "@emotion/unitless": "^0.7.0",
71 "babel-plugin-styled-components": ">= 1",
72 "css-to-react-native": "^2.2.2",
73 "memoize-one": "^4.0.0",
74 "prop-types": "^15.5.4",
75 "react-is": "^16.6.0",
76 "stylis": "^3.5.0",
77 "stylis-rule-sheet": "^0.0.10",
78 "supports-color": "^5.5.0"
79 },
80 "devDependencies": {
81 "babel-cli": "^6.22.2",
82 "babel-core": "^6.17.0",
83 "babel-eslint": "^10.0.1",
84 "babel-plugin-add-module-exports": "^1.0.0",
85 "babel-plugin-external-helpers": "^6.22.0",
86 "babel-plugin-macros": "^2.4.2",
87 "babel-plugin-preval": "^3.0.1",
88 "babel-plugin-tester": "^5.5.1",
89 "babel-plugin-transform-class-properties": "^6.22.0",
90 "babel-plugin-transform-object-rest-spread": "^6.22.0",
91 "babel-plugin-transform-react-remove-prop-types": "0.4.14",
92 "babel-preset-env": "^1.4.0",
93 "babel-preset-react": "^6.22.0",
94 "bundlesize": "^0.17.0",
95 "cross-env": "^5.1.3",
96 "eslint": "^5.9.0",
97 "eslint-config-airbnb": "^17.1.0",
98 "eslint-config-prettier": "^3.3.0",
99 "eslint-plugin-import": "^2.14.0",
100 "eslint-plugin-jsx-a11y": "^6.1.2",
101 "eslint-plugin-prettier": "^3.0.0",
102 "eslint-plugin-react": "^7.11.1",
103 "express": "^4.16.4",
104 "flow-bin": "^0.82.0",
105 "flow-watch": "^1.1.1",
106 "husky": "^1.1.3",
107 "jest": "^23.6.0",
108 "jest-image-snapshot": "^2.7.0",
109 "jest-styled-components": "^6.3.1",
110 "lint-staged": "^8.0.4",
111 "node-watch": "^0.5.0",
112 "npm-run-all": "^4.1.2",
113 "prettier": "^1.15.2",
114 "puppeteer": "^1.10.0",
115 "raf": "^3.4.1",
116 "react": "^16.6.1",
117 "react-dom": "^16.6.1",
118 "react-frame-component": "^4.0.2",
119 "react-native": "^0.56.0",
120 "react-primitives": "^0.6.1",
121 "react-test-renderer": "^16.6.1",
122 "rimraf": "^2.6.1",
123 "rollup": "^0.66.5",
124 "rollup-plugin-babel": "^3.0.4",
125 "rollup-plugin-commonjs": "^9.1.8",
126 "rollup-plugin-flow": "^1.1.1",
127 "rollup-plugin-json": "^3.1.0",
128 "rollup-plugin-node-resolve": "^3.3.0",
129 "rollup-plugin-replace": "^1.0.0",
130 "rollup-plugin-sourcemaps": "^0.4.2",
131 "rollup-plugin-terser": "^3.0.0"
132 },
133 "peerDependencies": {
134 "react": ">= 16.3.0",
135 "react-dom": ">= 16.3.0"
136 },
137 "jest": {
138 "testURL": "http://localhost",
139 "clearMocks": true,
140 "roots": [
141 "<rootDir>/src/"
142 ],
143 "setupFiles": [
144 "raf/polyfill",
145 "<rootDir>/src/test/globals.js"
146 ],
147 "setupTestFrameworkScriptFile": "<rootDir>/test-utils/setupTestFramework.js",
148 "testPathIgnorePatterns": [
149 "<rootDir>/src/native",
150 "<rootDir>/src/primitives"
151 ]
152 },
153 "lint-staged": {
154 "linters": {
155 "*.js": [
156 "eslint --fix",
157 "git add"
158 ]
159 },
160 "ignore": [
161 "**/test/*.js"
162 ]
163 },
164 "bundlesize": [
165 {
166 "path": "./dist/styled-components.min.js",
167 "maxSize": "16kB"
168 }
169 ],
170 "collective": {
171 "type": "opencollective",
172 "url": "https://opencollective.com/styled-components"
173 },
174 "husky": {
175 "hooks": {
176 "pre-commit": "flow check && lint-staged"
177 }
178 }
179}