1 | {
|
2 | "name": "styled-components",
|
3 | "version": "4.0.1",
|
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 --outputFile test-results.json --json",
|
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 | "babel-plugin-styled-components": ">= 1",
|
71 | "css-to-react-native": "^2.2.2",
|
72 | "memoize-one": "^4.0.0",
|
73 | "prop-types": "^15.5.4",
|
74 | "react-is": "^16.3.1",
|
75 | "stylis": "^3.5.0",
|
76 | "stylis-rule-sheet": "^0.0.10"
|
77 | },
|
78 | "devDependencies": {
|
79 | "babel-cli": "^6.22.2",
|
80 | "babel-core": "^6.17.0",
|
81 | "babel-eslint": "^10.0.1",
|
82 | "babel-plugin-add-module-exports": "^1.0.0",
|
83 | "babel-plugin-external-helpers": "^6.22.0",
|
84 | "babel-plugin-macros": "^2.4.2",
|
85 | "babel-plugin-preval": "^3.0.1",
|
86 | "babel-plugin-tester": "^5.5.1",
|
87 | "babel-plugin-transform-class-properties": "^6.22.0",
|
88 | "babel-plugin-transform-object-rest-spread": "^6.22.0",
|
89 | "babel-plugin-transform-react-remove-prop-types": "0.4.14",
|
90 | "babel-preset-env": "^1.4.0",
|
91 | "babel-preset-react": "^6.22.0",
|
92 | "bundlesize": "^0.17.0",
|
93 | "cross-env": "^5.1.3",
|
94 | "eslint": "^5.6.1",
|
95 | "eslint-config-airbnb": "^17.1.0",
|
96 | "eslint-config-prettier": "^3.1.0",
|
97 | "eslint-plugin-flowtype": "^2.50.3",
|
98 | "eslint-plugin-flowtype-errors": "^3.6.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.14.1",
|
104 | "flow-bin": "^0.82.0",
|
105 | "flow-watch": "^1.1.1",
|
106 | "husky": "^1.0.1",
|
107 | "jest": "^23.6.0",
|
108 | "jest-image-snapshot": "^2.5.0",
|
109 | "jest-styled-components": "^6.0.0",
|
110 | "lint-staged": "^7.3.0",
|
111 | "node-watch": "^0.5.0",
|
112 | "npm-run-all": "^4.1.2",
|
113 | "prettier": "^1.14.3",
|
114 | "puppeteer": "^1.8.0",
|
115 | "raf": "^3.4.0",
|
116 | "react": "^16.4",
|
117 | "react-dom": "^16.4",
|
118 | "react-frame-component": "^4.0.2",
|
119 | "react-native": "^0.56.0",
|
120 | "react-primitives": "^0.6.1",
|
121 | "react-test-renderer": "^16.4",
|
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 | "globals": {
|
139 | "__DEV__": true
|
140 | },
|
141 | "testURL": "http://localhost",
|
142 | "clearMocks": true,
|
143 | "roots": [
|
144 | "<rootDir>/src/"
|
145 | ],
|
146 | "setupFiles": [
|
147 | "raf/polyfill",
|
148 | "<rootDir>/src/test/globals.js"
|
149 | ],
|
150 | "setupTestFrameworkScriptFile": "<rootDir>/test-utils/setupTestFramework.js",
|
151 | "testPathIgnorePatterns": [
|
152 | "<rootDir>/src/native",
|
153 | "<rootDir>/src/primitives"
|
154 | ]
|
155 | },
|
156 | "lint-staged": {
|
157 | "*.js": [
|
158 | "eslint --fix",
|
159 | "git add"
|
160 | ]
|
161 | },
|
162 | "bundlesize": [
|
163 | {
|
164 | "path": "./dist/styled-components.min.js",
|
165 | "maxSize": "16kB"
|
166 | }
|
167 | ],
|
168 | "collective": {
|
169 | "type": "opencollective",
|
170 | "url": "https://opencollective.com/styled-components"
|
171 | },
|
172 | "husky": {
|
173 | "hooks": {
|
174 | "pre-commit": "lint-staged"
|
175 | }
|
176 | }
|
177 | }
|