/
package.json
175 lines (175 loc) · 6.46 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
{
"name": "@kiwicom/orbit-components",
"version": "0.85.0",
"description": "Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.",
"sideEffects": false,
"scripts": {
"storybook": "start-storybook -p 6007 -c .storybook --ci -s ./static",
"build": "yarn clean && yarn build:icons && yarn build:iconFont && yarn build:typeFiles && yarn build:lib && yarn build:module && yarn build:umd",
"build:lib": "babel --out-dir lib --ignore **/*.stories.js,**/*.test.js,**/*.storyshot.js,**/__examples__/*.js src && yarn copy:lib",
"build:module": "cross-env BABEL_TARGET=\"js-esm\" babel --out-dir es --ignore **/*.stories.js,**/*.test.js,**/*.storyshot.js,**/__examples__/*.js src && yarn copy:module",
"build:icons": "babel-node config/build.js",
"build:iconsPng": "node config/generatePngIcons.js",
"build:typeFiles": "babel-node config/typeFiles.js",
"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",
"build:storybook": "cross-env BABEL_TARGET=storybook build-storybook -c .storybook -o .out -s ./static",
"build:examples": "babel-node config/buildExample.js 'src/**/__examples__/*.js'",
"build:umd": "webpack --mode=production",
"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",
"copy:module": "copyfiles -u 1 'src/**/*.md' es && copyfiles -u 1 'src/**/*.js.flow' es && copyfiles -u 1 'src/**/*.json' es",
"clean": "rimraf lib es src/icons/*.js src/icons/*.js.flow",
"prepare": "npm run build",
"prettier:fix": "prettier --write '**/*.md'",
"prettier:test": "prettier --check '**/*.md'",
"watch": "concurrently \"npm run build:lib -- --watch\" \"npm run build:module -- --watch\"",
"eslint": "eslint . --report-unused-disable-directives",
"eslint:ts:check": "eslint . -c .eslintTS.js --ext .d.ts --report-unused-disable-directives",
"eslint:ts:fix": "eslint . -c .eslintTS.js --ext .d.ts --report-unused-disable-directives --fix",
"flow:check": "flow check",
"test": "jest --config=jest.json",
"test-ci": "yarn flow:check && yarn eslint && yarn test --ci --maxWorkers=2 && yarn prettier:test",
"fetch-translations": "babel-node config/fetchTranslations.js",
"build-storybook": "build-storybook -s ./static",
"deploy:storybook": "cross-env BABEL_TARGET=\"storybook\" storybook-to-ghpages",
"deploy:surge": "yarn surge .out/ https://orbit-components-$(git rev-parse --abbrev-ref HEAD | sed -e 's/[^a-zA-Z0-9]/-/g').surge.sh",
"deploy:updateURL": "yarn babel-node config/deploymentUtils.js updateLiveURL",
"compile:ts": "yarn tsc"
},
"storybook-deployer": {
"gitUsername": "GH Pages Bot",
"gitEmail": "hello@ghbot.com",
"commitMessage": "Deploy Storybook to GitHub Pages [skip ci]"
},
"repository": {
"type": "git",
"url": "https://github.com/kiwicom/orbit-components.git"
},
"keywords": [
"orbit",
"components",
"ui",
"library",
"component"
],
"browserslist": [
"last 2 versions",
"Edge >= 38"
],
"files": [
"es",
"lib",
"umd",
"orbit-icons-font",
"orbit-icons-font.zip",
"orbit-svgs.zip",
".babelrc",
".eslintrc",
".flowconfig",
"package.json",
"readme.md",
"yarn.lock"
],
"loki": {
"configurations": {
"chrome.laptop": {
"target": "chrome.docker",
"width": 1366,
"height": 768
},
"chrome.iphone7": {
"target": "chrome.docker",
"preset": "iPhone 7"
}
}
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-push": "yarn prettier:fix"
}
},
"main": "lib/index.js",
"module": "es/index.js",
"author": "kiwi.com",
"license": "MIT",
"peerDependencies": {
"react": "^16.12.0",
"react-dom": "^16.12.0",
"styled-components": "^4.4.1"
},
"dependencies": {
"@adeira/js": "^1.2.2",
"@kiwicom/orbit-design-tokens": "~0.10.0"
},
"devDependencies": {
"@adeira/babel-preset-adeira": "^0.3.0",
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.6",
"@babel/generator": "^7.9.6",
"@babel/node": "^7.8.7",
"@babel/runtime": "^7.9.6",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@emotion/core": "^10.0.28",
"@octokit/rest": "^15.13.1",
"@storybook/addon-actions": "^5.3.18",
"@storybook/addon-info": "5.3.18",
"@storybook/addon-knobs": "^5.3.18",
"@storybook/addons": "5.3.18",
"@storybook/react": "^5.3.18",
"@storybook/storybook-deployer": "^2.8.6",
"@svgr/core": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^2.33.0",
"@typescript-eslint/parser": "^2.33.0",
"@types/styled-components": "^4.4.2",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.0.1",
"babel-loader": "^8.1.0",
"babel-plugin-require-context-hook": "^1.0.0",
"babel-plugin-styled-components": "^1.10.7",
"camelcase": "^6.0.0",
"capitalize": "^2.0.3",
"copyfiles": "^2.2.0",
"cross-env": "^7.0.2",
"dotenv": "^8.2.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"enzyme-to-json": "^3.4.4",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-flowtype": "^4.7.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jest": "^23.13.1",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^2.5.1",
"flow-bin": "^0.125.1",
"fs-extra": "^9.0.0",
"glob": "^7.1.2",
"husky": "^4.2.5",
"isomorphic-unfetch": "^3.0.0",
"jest": "^26.0.1",
"jest-styled-components": "^6.2.1",
"jsdom": "^16.2.2",
"loki": "^0.15.0",
"make-runnable": "^1.3.6",
"mkdirp": "^1.0.4",
"prettier": "^2.0.5",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-element-to-jsx-string": "^14.3.1",
"react-test-renderer": "^16.13.0",
"rimraf": "^3.0.2",
"sharp": "^0.25.3",
"styled-components": "^4.4.1",
"surge": "^0.20.1",
"svg2ttf": "^4.2.0",
"svgicons2svgfont": "^9.0.4",
"ttf2woff2": "^3.0.0",
"typescript": "^3.9.2",
"webpack-cli": "^3.3.11"
}
}