-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
77 lines (77 loc) · 2.86 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
{
"name": "@lifeomic/chromicons",
"version": "0.0.0",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"module": "dist/chromicons.esm.js",
"files": [
"dist",
"src"
],
"engines": {
"node": ">=10"
},
"repository": "git@github.com:lifeomic/chromicons.git",
"author": "LifeOmic <oss@lifeomic.com>",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"scripts": {
"analyze": "size-limit --why",
"build": "yarn build:react && yarn build:native && yarn build:pngs",
"postbuild": "node prepare-packages.js",
"build:react": "tsdx build -i src/build/react/index.tsx --tsconfig tsconfig.json",
"postbuild:react": "mkdir -p build/react && mv dist build/react && mv src/build/react build/react/src && cp -R src/raw build/react/src",
"build:native": "tsdx build -i src/build/native/index.tsx --tsconfig tsconfig.native.json",
"postbuild:native": "mkdir -p build/native && mv dist build/native && mv src/build/native build/native/src && cp -R src/raw build/native/src",
"build:pngs": "mkdir -p build/pngs && mv src/build/pngs build && cp -R src/raw build/pngs/src",
"clean": "rm -rf src/build && rm -rf dist/ && rm -rf dist && rm -rf build",
"generate:build-output": "yarn generate:react-components && yarn generate:react-native-components && yarn generate:pngs && yarn generate:index-file",
"generate:index-file": "echo \"export * from './lined'\" > src/build/native/index.tsx && echo \"export * from './lined'\" > src/build/react/index.tsx",
"generate:react-components": "svgr --template svg-template.js src/raw/lined --out-dir src/build/react/lined --typescript --memo",
"generate:react-native-components": "svgr --template svg-rn-template.js src/raw/lined --out-dir src/build/native/lined --typescript --native --memo",
"generate:pngs": "node ./generate-pngs.js ./src/raw/lined -o src/build/pngs/lined",
"lint": "tsdx lint",
"size": "size-limit",
"start": "tsdx watch",
"test": "tsdx test --passWithNoTests"
},
"devDependencies": {
"@size-limit/preset-small-lib": "^4.8.0",
"@svgr/cli": "^5.5.0",
"@types/react": "^16.14.0",
"@types/react-dom": "^16.9.9",
"conventional-changelog-conventionalcommits": "^4.6.0",
"husky": "^4.3.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-native-svg": "12.x",
"semantic-release": "^17.4.4",
"sharp": "^0.30.5",
"size-limit": "^4.8.0",
"tsdx": "^0.14.1",
"tslib": "^2.0.3",
"typescript": "^4.1.2",
"yargs": "^17.2.1"
},
"peerDependencies": {
"react": ">=16"
},
"prettier": {
"printWidth": 80,
"semi": true,
"singleQuote": true,
"trailingComma": "es5"
},
"size-limit": [
{
"path": "build/react/dist/chromicons.cjs.production.min.js",
"limit": "15 KB"
},
{
"path": "build/react/dist/chromicons.esm.js",
"limit": "15 KB"
}
]
}