1 | {
|
2 | "name": "rendition",
|
3 | "version": "15.4.0",
|
4 | "description": "React components library",
|
5 | "repository": {
|
6 | "type": "git",
|
7 | "url": "https://github.com/balena-io-modules/rendition"
|
8 | },
|
9 | "license": "Apache-2.0",
|
10 | "main": "./dist/index.js",
|
11 | "module": "./dist_esm5/index.js",
|
12 | "sideEffects": false,
|
13 | "files": [
|
14 | "dist/",
|
15 | "dist_esm5/",
|
16 | "docs/",
|
17 | "README.md"
|
18 | ],
|
19 | "engines": {
|
20 | "node": ">=10.13.0",
|
21 | "npm": ">=5.7.0"
|
22 | },
|
23 | "scripts": {
|
24 | "tsify-css": "node ./scripts/tsifyCss.js",
|
25 | "start": "start-storybook -p 6006",
|
26 | "build:cjs": "rimraf dist && tsc",
|
27 | "build:esm5": "rimraf dist_esm5 && tsc -p ./tsconfig.esm5.json",
|
28 | "build:docs": "node ./scripts/generateDocs.js",
|
29 | "build": "npm run tsify-css && npm run build:cjs && npm run build:esm5 && npm run build:docs",
|
30 | "generate-screenshots": "./scripts/generate-screenshots.sh",
|
31 | "generate-snapshots": "npm run build && npm run jest -- -u",
|
32 | "build:storybook": "build-storybook -o .out",
|
33 | "catch-uncommitted": "catch-uncommitted --catch-no-git --skip-node-versionbot-changes",
|
34 | "test:fast": "npm run lint && npm run jest",
|
35 | "test:fast:watch": "npm run lint && npm run jest:watch",
|
36 | "test": "npm run build && npm run test:fast && npm run catch-uncommitted",
|
37 | "test:local-visual": "./scripts/test-screenshots.sh",
|
38 | "test:visual": "npm run ci:screenshot -- -o .reg/current && reg-cli .reg/current __screenshots__ .reg/diff -R .reg/report.html",
|
39 | "jest": "jest --maxWorkers=4",
|
40 | "jest:watch": "jest --maxWorkers=4 --watch",
|
41 | "eslint": "eslint src .storybook",
|
42 | "eslint-fix": "eslint src .storybook --fix",
|
43 | "tslint": "balena-lint --typescript src",
|
44 | "tslint-fix": "balena-lint --typescript --fix src",
|
45 | "lint": "npm run eslint && npm run tslint",
|
46 | "precommit": "lint-staged",
|
47 | "prepack": "npm run build",
|
48 | "prettify-js": "prettier --config .prettierrc-js --write \"src/**/*.js\"",
|
49 | "prettify": "npm run prettify-js && npm run eslint-fix && npm run tslint-fix",
|
50 | "ci:screenshot": "storycap http://localhost:6006 --serverTimeout 100000 --captureTimeout 10000 --disableCssAnimation --serverCmd \"npm run start\"",
|
51 | "deploy": "npm run build:storybook && gh-pages -d .out"
|
52 | },
|
53 | "devDependencies": {
|
54 | "@babel/core": "^7.1.2",
|
55 | "@babel/plugin-proposal-class-properties": "^7.0.0",
|
56 | "@babel/plugin-proposal-json-strings": "^7.0.0",
|
57 | "@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
58 | "@babel/plugin-syntax-import-meta": "^7.0.0",
|
59 | "@babel/plugin-transform-react-jsx": "^7.0.0",
|
60 | "@babel/preset-env": "^7.0.0",
|
61 | "@balena/lint": "^5.0.4",
|
62 | "@storybook/addon-actions": "^5.2.8",
|
63 | "@storybook/react": "^5.2.8",
|
64 | "@types/googlemaps": "^3.39.7",
|
65 | "@types/highlightjs": "^9.12.0",
|
66 | "@types/jest": "^24.0.25",
|
67 | "@types/react": "^16.8.8",
|
68 | "@types/react-dom": "^16.8.3",
|
69 | "@types/react-google-recaptcha": "^1.1.0",
|
70 | "babel-eslint": "^10.0.1",
|
71 | "babel-loader": "^8.0.0-beta.6",
|
72 | "catch-uncommitted": "^1.4.0",
|
73 | "enzyme": "^3.9.0",
|
74 | "enzyme-adapter-react-16": "^1.11.2",
|
75 | "eslint": "^4.13.1",
|
76 | "eslint-config-standard": "^10.2.1",
|
77 | "eslint-config-standard-react": "^5.0.0",
|
78 | "eslint-plugin-import": "^2.7.0",
|
79 | "eslint-plugin-node": "^5.2.0",
|
80 | "eslint-plugin-promise": "^3.6.0",
|
81 | "eslint-plugin-react": "^7.4.0",
|
82 | "eslint-plugin-standard": "^3.0.1",
|
83 | "gh-pages": "2.0.0",
|
84 | "git-url-parse": "^7.0.0",
|
85 | "husky": "^0.14.3",
|
86 | "identity-obj-proxy": "^3.0.0",
|
87 | "jest": "^24.9.0",
|
88 | "jest-canvas-mock": "^1.1.0",
|
89 | "jest-styled-components": "^7.0.0",
|
90 | "jsdom": "^11.6.2",
|
91 | "lint-staged": "^4.1.1",
|
92 | "match-media-mock": "^0.1.1",
|
93 | "prettier": "^2.0.5",
|
94 | "react": "^16.8.5",
|
95 | "react-dom": "^16.8.5",
|
96 | "react-test-renderer": "^16.8.5",
|
97 | "reg-cli": "^0.13.0-beta.1",
|
98 | "rimraf": "^2.6.2",
|
99 | "sinon": "^4.5.0",
|
100 | "storybook-readme": "5.0.3",
|
101 | "storycap": "2.3.2",
|
102 | "strip-css-comments": "^3.0.0",
|
103 | "ts-jest": "^24.3.0",
|
104 | "ts-loader": "^5.3.0",
|
105 | "ts-node": "^8.0.2",
|
106 | "typescript": "^3.9.6",
|
107 | "webpack": "^4.41.5",
|
108 | "zxcvbn": "^4.4.2"
|
109 | },
|
110 | "dependencies": {
|
111 | "@fortawesome/fontawesome-svg-core": "^1.2.25",
|
112 | "@fortawesome/free-regular-svg-icons": "^5.11.2",
|
113 | "@fortawesome/free-solid-svg-icons": "^5.11.2",
|
114 | "@fortawesome/react-fontawesome": "^0.1.5",
|
115 | "@react-google-maps/api": "^1.9.7",
|
116 | "@types/color": "^3.0.0",
|
117 | "@types/json-schema": "^7.0.3",
|
118 | "@types/lodash": "^4.14.77",
|
119 | "@types/marked": "^0.7.2",
|
120 | "@types/node": "^13.13.4",
|
121 | "@types/prop-types": "^15.7.0",
|
122 | "@types/react-helmet": "^6.0.0",
|
123 | "@types/react-jsonschema-form": "^1.3.2",
|
124 | "@types/recompose": "^0.26.2",
|
125 | "@types/sanitize-html": "^1.18.3",
|
126 | "@types/styled-components": "^5.0.1",
|
127 | "@types/styled-system": "^4.0.0",
|
128 | "@types/uuid": "^3.4.3",
|
129 | "ajv": "^6.7.0",
|
130 | "ajv-keywords": "^3.3.0",
|
131 | "balena-temen": "^0.5.5",
|
132 | "color": "^3.1.2",
|
133 | "color-hash": "^1.0.3",
|
134 | "copy-to-clipboard": "^3.0.8",
|
135 | "grommet": "^2.14.0",
|
136 | "highlight.js": "^10.0.3",
|
137 | "jellyschema": "^0.11.9",
|
138 | "lodash": "^4.17.11",
|
139 | "marked": "^0.8.0",
|
140 | "mermaid": "8.4.0",
|
141 | "prop-types": "^15.7.2",
|
142 | "react-google-recaptcha": "^2.0.0-rc.1",
|
143 | "react-helmet": "^6.0.0",
|
144 | "react-jsonschema-form": "^1.3.0",
|
145 | "react-notifications-component": "^2.2.3",
|
146 | "react-simplemde-editor": "^4.1.1",
|
147 | "recompose": "0.26.0",
|
148 | "regex-parser": "^2.2.7",
|
149 | "sanitize-html": "^1.20.1",
|
150 | "styled-components": "^5.0.1",
|
151 | "styled-system": "^4.1.0",
|
152 | "tslib": "^2.0.0",
|
153 | "uuid": "^3.2.1",
|
154 | "xterm": "^3.14.5"
|
155 | },
|
156 | "lint-staged": {
|
157 | "{package.json, package-lock.json}": [
|
158 | "npm run tsify-css",
|
159 | "git add ./src/components/Terminal/XTermDefaultStyle.ts"
|
160 | ],
|
161 | "{src, test}/**/*.js": [
|
162 | "prettier --config .prettierrc-js --write",
|
163 | "eslint --fix",
|
164 | "git add"
|
165 | ],
|
166 | "*.{ts,tsx}": [
|
167 | "balena-lint --typescript --fix",
|
168 | "git add"
|
169 | ]
|
170 | },
|
171 | "jest": {
|
172 | "preset": "ts-jest/presets/js-with-babel",
|
173 | "collectCoverage": true,
|
174 | "verbose": true,
|
175 | "setupFiles": [
|
176 | "jest-canvas-mock",
|
177 | "<rootDir>scripts/setupTests.js"
|
178 | ],
|
179 | "setupFilesAfterEnv": [
|
180 | "<rootDir>scripts/setupTestsAfterEnv.js"
|
181 | ],
|
182 | "snapshotResolver": "<rootDir>scripts/setupSnapshotsPath.js",
|
183 | "moduleFileExtensions": [
|
184 | "ts",
|
185 | "tsx",
|
186 | "js",
|
187 | "jsx",
|
188 | "json",
|
189 | "node"
|
190 | ],
|
191 | "moduleNameMapper": {
|
192 | "\\.(css)$": "identity-obj-proxy"
|
193 | },
|
194 | "moduleDirectories": [
|
195 | "node_modules",
|
196 | "src"
|
197 | ]
|
198 | }
|
199 | }
|