UNPKG

6.85 kBJSONView Raw
1{
2 "name": "@kiwicom/orbit-components",
3 "version": "0.91.0",
4 "description": "Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.",
5 "sideEffects": false,
6 "scripts": {
7 "storybook": "start-storybook -p 6007 -c .storybook --ci -s ./static",
8 "build": "yarn clean && yarn build:icons && yarn build:iconFont && yarn build:typeFiles && yarn build:lib && yarn build:module && yarn build:umd",
9 "build:lib": "babel --out-dir lib --ignore **/*.stories.js,**/*.test.js,**/*.storyshot.js,**/__examples__/*.js,**/examples.js src && yarn copy:lib",
10 "build:module": "cross-env BABEL_TARGET=\"js-esm\" babel --out-dir es --ignore **/*.stories.js,**/*.test.js,**/*.storyshot.js,**/__examples__/*.js,**/examples.js src && yarn copy:module",
11 "build:icons": "babel-node config/build.js",
12 "build:iconsPng": "node config/generatePngIcons.js",
13 "build:typeFiles": "babel-node config/typeFiles.js",
14 "build:iconFont": "babel-node config/createSVGFont.js && cd src/icons/; zip -r ../../orbit-svgs.zip ./svg; cd -; zip -j orbit-svgs.zip orbit-icons-font/orbit-icons.svg && zip -r orbit-icons-font.zip orbit-icons-font",
15 "build:storybook": "cross-env BABEL_TARGET=storybook build-storybook -c .storybook -o .out -s ./static",
16 "build:examples": "babel-node config/buildExample.js 'src/**/__examples__/*.js'",
17 "build:umd": "webpack --mode=production",
18 "copy:lib": "copyfiles -u 1 'src/**/*.md' lib && copyfiles -u 1 'src/**/*.js.flow' lib && copyfiles -u 1 'src/**/*.json' lib && copyfiles -u 1 'src/**/*.d.ts' lib",
19 "copy:module": "copyfiles -u 1 'src/**/*.md' es && copyfiles -u 1 'src/**/*.js.flow' es && copyfiles -u 1 'src/**/*.json' es",
20 "clean": "rimraf lib es src/icons/*.js src/icons/*.js.flow",
21 "prepare": "npm run build",
22 "prettier:test": "prettier --check '**/*.md'",
23 "watch": "concurrently \"npm run build:lib -- --watch\" \"npm run build:module -- --watch\"",
24 "eslint:check": "eslint . --report-unused-disable-directives",
25 "flow:check": "flow check",
26 "test": "jest --config=jest.json",
27 "test-ci": "yarn flow:check && yarn eslint && yarn test --ci --maxWorkers=2 && yarn prettier:test",
28 "fetch-translations": "babel-node config/fetchTranslations.js",
29 "update-supported-browsers": "markdown --path .github/contribution/testing-conventions.md && git add .github/contribution/testing-conventions.md",
30 "build-storybook": "build-storybook -s ./static",
31 "deploy:storybook": "cross-env BABEL_TARGET=\"storybook\" storybook-to-ghpages",
32 "deploy:surge": "yarn surge .out/ https://orbit-components-$(git rev-parse --abbrev-ref HEAD | sed -e 's/[^a-zA-Z0-9]/-/g').surge.sh",
33 "deploy:updateURL": "yarn babel-node config/deploymentUtils.js updateLiveURL",
34 "compile:ts": "yarn tsc"
35 },
36 "storybook-deployer": {
37 "gitUsername": "GH Pages Bot",
38 "gitEmail": "hello@ghbot.com",
39 "commitMessage": "Deploy Storybook to GitHub Pages [skip ci]"
40 },
41 "repository": {
42 "type": "git",
43 "url": "https://github.com/kiwicom/orbit-components.git"
44 },
45 "keywords": [
46 "orbit",
47 "components",
48 "ui",
49 "library",
50 "component"
51 ],
52 "files": [
53 "es",
54 "lib",
55 "umd",
56 "orbit-icons-font",
57 "orbit-icons-font.zip",
58 "orbit-svgs.zip",
59 ".babelrc",
60 ".eslintrc",
61 ".flowconfig",
62 "package.json",
63 "readme.md",
64 "yarn.lock"
65 ],
66 "loki": {
67 "configurations": {
68 "chrome.laptop": {
69 "target": "chrome.docker",
70 "width": 1366,
71 "height": 768
72 },
73 "chrome.iphone7": {
74 "target": "chrome.docker",
75 "preset": "iPhone 7"
76 }
77 }
78 },
79 "lint-staged": {
80 "*.{js,js.flow,ts}": "eslint --fix --report-unused-disable-directives",
81 "*.md": "prettier --write",
82 ".browserslistrc": "yarn update-supported-browsers"
83 },
84 "husky": {
85 "hooks": {
86 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
87 "pre-commit": "lint-staged"
88 }
89 },
90 "main": "lib/index.js",
91 "module": "es/index.js",
92 "author": "kiwi.com",
93 "license": "MIT",
94 "peerDependencies": {
95 "react": "^16.12.0",
96 "react-dom": "^16.12.0",
97 "styled-components": "^4.4.1"
98 },
99 "dependencies": {
100 "@adeira/js": "^1.2.4",
101 "@kiwicom/orbit-design-tokens": "~0.11.0"
102 },
103 "devDependencies": {
104 "@adeira/babel-preset-adeira": "^0.4.0",
105 "@babel/cli": "^7.10.5",
106 "@babel/core": "^7.11.0",
107 "@babel/generator": "^7.10.2",
108 "@babel/node": "^7.10.5",
109 "@babel/runtime": "^7.11.0",
110 "@commitlint/cli": "^9.1.1",
111 "@commitlint/config-conventional": "^9.1.1",
112 "@emotion/core": "^10.0.28",
113 "@kiwicom/browserslist-config": "^1.0.0",
114 "@octokit/rest": "^15.13.1",
115 "@storybook/addon-actions": "^5.3.19",
116 "@storybook/addon-info": "5.3.19",
117 "@storybook/addon-knobs": "^5.3.19",
118 "@storybook/addons": "5.3.19",
119 "@storybook/react": "^5.3.19",
120 "@storybook/storybook-deployer": "^2.8.6",
121 "@svgr/core": "^2.0.0",
122 "@types/styled-components": "^4.4.2",
123 "@typescript-eslint/eslint-plugin": "^3.9.1",
124 "@typescript-eslint/parser": "^3.9.1",
125 "babel-core": "^7.0.0-bridge.0",
126 "babel-eslint": "^10.1.0",
127 "babel-jest": "^26.2.2",
128 "babel-loader": "^8.1.0",
129 "babel-plugin-require-context-hook": "^1.0.0",
130 "babel-plugin-styled-components": "^1.11.1",
131 "browserslist": "^4.14.0",
132 "camelcase": "^6.0.0",
133 "caniuse-db": "^1.0.30001114",
134 "capitalize": "^2.0.3",
135 "copyfiles": "^2.3.0",
136 "cross-env": "^7.0.2",
137 "dotenv": "^8.2.0",
138 "enzyme": "^3.11.0",
139 "enzyme-adapter-react-16": "^1.15.2",
140 "enzyme-to-json": "^3.5.0",
141 "eslint": "^7.7.0",
142 "eslint-config-airbnb": "^18.2.0",
143 "eslint-config-prettier": "^6.11.0",
144 "eslint-plugin-flowtype": "^5.2.0",
145 "eslint-plugin-import": "^2.22.0",
146 "eslint-plugin-jest": "^23.20.0",
147 "eslint-plugin-jsx-a11y": "^6.3.1",
148 "eslint-plugin-prettier": "^3.1.3",
149 "eslint-plugin-react": "^7.20.5",
150 "eslint-plugin-react-hooks": "^4.0.8",
151 "flow-bin": "^0.130.0",
152 "fs-extra": "^9.0.1",
153 "glob": "^7.1.2",
154 "husky": "^4.2.5",
155 "isomorphic-unfetch": "^3.0.0",
156 "jest": "^26.2.2",
157 "jest-styled-components": "^6.2.1",
158 "jsdom": "^16.3.0",
159 "lint-staged": "^10.2.11",
160 "loki": "^0.15.0",
161 "make-runnable": "^1.3.6",
162 "markdown-magic": "^1.0.0",
163 "mkdirp": "^1.0.4",
164 "prettier": "^2.0.5",
165 "react": "^16.12.0",
166 "react-dom": "^16.12.0",
167 "react-element-to-jsx-string": "^14.3.1",
168 "react-test-renderer": "^16.13.0",
169 "rimraf": "^3.0.2",
170 "sharp": "^0.25.3",
171 "styled-components": "^4.4.1",
172 "surge": "^0.20.1",
173 "svg2ttf": "^5.0.0",
174 "svgicons2svgfont": "^9.0.4",
175 "ttf2woff2": "^3.0.0",
176 "typescript": "^3.9.7",
177 "webpack-cli": "^3.3.12"
178 }
179}