forked from atlassian-labs/compiled
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
161 lines (161 loc) · 5.94 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
{
"name": "compiled",
"version": "0.0.0",
"private": true,
"license": "Apache-2.0",
"author": "Michael Dougall",
"workspaces": [
"examples/*",
"fixtures/*",
"packages/*"
],
"scripts": {
"benchmark": "jest --config benchmark.config.json",
"build": "yarn build:babel-fixture && yarn build:browser && yarn build:cjs && yarn build:esm && yarn flow-types build && yarn postbuild",
"postbuild": "scripts/postbuild.sh",
"build:babel-fixture": "yarn workspace @compiled/babel-component-fixture build",
"build:browser": "ttsc --build packages/tsconfig.browser.json",
"build:cjs": "ttsc --build packages/tsconfig.cjs.json",
"build:esm": "ttsc --build packages/tsconfig.json",
"build:inspect": "node --inspect-brk node_modules/typescript/lib/tsc.js --build packages",
"build:parcel": "ttsc --build examples/parcel/tsconfig.json && yarn workspace @compiled/parcel-app build",
"build:ssr": "CI=false && ttsc --build examples/ssr/tsconfig.json && yarn workspace @compiled/ssr-app build",
"build:storybook": "build-storybook",
"build:webpack": "yarn build:babel-fixture && ttsc --build examples/webpack/tsconfig.json && yarn workspace @compiled/webpack-app build",
"build:webpack:extract": "EXTRACT_TO_CSS=true yarn build:webpack",
"bundlesize": "yarn build && size-limit",
"clean": "yarn clean:node-modules && yarn clean:ts-cache && yarn clean:dist && yarn clean:parcel-cache",
"clean:dist": "find . -name \"dist\" -not -path \"*/node_modules/*\" -type d -exec rm -rf {} +",
"clean:node-modules": "rm -rf node_modules/.cache",
"clean:parcel-cache": "rm -rf .parcel-cache/",
"clean:ts-cache": "find . -name \"*.tsbuildinfo\" -type f -delete",
"flow-types": "scripts/flow-types.sh",
"postinstall": "npx yarn-deduplicate && yarn --ignore-scripts",
"lint": "eslint --config .eslintrc.js --ext js,json,jsx,ts,tsx .",
"lint:fix": "yarn lint -- --fix",
"prettier:check": "prettier ./ --check",
"prettier:fix": "prettier ./ --write",
"release": "yarn clean && yarn build && yarn changeset publish",
"start": "npx nodemon --exec \"start-storybook -p 6006 --ci\" --watch packages/babel-plugin/ -e tsx",
"start:cli": "yarn workspace @compiled/cli start",
"start:inspect": "npx nodemon --exec \"node --inspect-brk node_modules/.bin/start-storybook -p 6006 --ci\" --watch packages/babel-plugin/ -e tsx",
"start:parcel": "ttsc --build examples/parcel/tsconfig.json && yarn workspace @compiled/parcel-app start",
"start:prod": "NODE_ENV=production yarn start",
"start:ssr": "ttsc --build examples/ssr/tsconfig.json && yarn workspace @compiled/ssr-app start",
"start:webpack": "yarn build:babel-fixture && ttsc --build examples/webpack/tsconfig.json && yarn workspace @compiled/webpack-app start",
"start:webpack:extract": "EXTRACT_TO_CSS=true yarn start:webpack",
"test": "jest --no-cache",
"test:cover": "yarn test --collectCoverage",
"test:imports": "node test/test-imports",
"test:parcel": "jest --testMatch '**/src/**/*.parceltest.{ts,tsx}'",
"test:vr": "yarn loki",
"test:watch": "jest --no-cache --watch"
},
"husky": {
"hooks": {
"pre-commit": " yarn lint:fix && pretty-quick --staged"
}
},
"resolutions": {
"@babel/core": "^7.17.10",
"css-what": "^5.1.0",
"jest": "^26.6.3",
"mini-css-extract-plugin": "^1.6.2",
"nth-check": "^2.0.1",
"react": "^17.0.2",
"typescript": "^4.7.4",
"unset-value": "^2.0.1",
"webpack-dev-server": "^4.7.4"
},
"devDependencies": {
"@babel/plugin-transform-react-jsx-self": "^7.16.7",
"@babel/plugin-transform-react-jsx-source": "^7.16.7",
"@babel/preset-env": "^7.17.10",
"@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"@changesets/cli": "^2.24.0",
"@compiled-private/module-a": "*",
"@compiled/babel-plugin": "*",
"@compiled/jest": "*",
"@compiled/react": "*",
"@size-limit/preset-big-lib": "^7.0.8",
"@storybook/addons": "^6.4.20",
"@storybook/builder-webpack5": "^6.4.20",
"@storybook/manager-webpack5": "^6.4.20",
"@storybook/react": "^6.4.20",
"@types/jest": "^27.5.2",
"@types/node": "^17.0.45",
"@types/react": "^17.0.47",
"@types/react-dom": "^17.0.17",
"@types/svgo": "^2.6.3",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"babel-loader": "^8.2.4",
"eslint": "^7.32.0",
"eslint-plugin-flowtype": "^6.1.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-json-files": "^1.3.0",
"eslint-plugin-react": "^7.30.0",
"eslint-plugin-react-hooks": "^4.5.0",
"flow-bin": "^0.183.0",
"flowgen": "^1.17.0",
"git-branch-is": "^4.0.0",
"husky": "^4.3.8",
"jest": "^26.6.3",
"jest-extended": "^0.11.5",
"jest-watch-typeahead": "^0.6.5",
"loki": "^0.29.0",
"prettier": "^2.5.1",
"pretty-quick": "^3.1.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"size-limit": "^7.0.8",
"storybook-addon-performance": "^0.16.1",
"storybook-addon-pseudo-states": "^1.0.0",
"ts-node": "^10.8.2",
"ts-transform-define": "^0.1.10",
"tsconfig-paths": "^3.14.1",
"ttypescript": "^1.5.13",
"typescript": "^4.7.4"
},
"engines": {
"node": "^v16.13.2"
},
"loki": {
"configurations": {
"chrome.laptop": {
"target": "chrome.docker",
"width": 1366,
"height": 768,
"deviceScaleFactor": 1,
"mobile": false
}
}
},
"size-limit": [
{
"path": "./packages/react/dist/browser/runtime.js",
"limit": "48B",
"import": "{ ix }",
"ignore": [
"react"
]
},
{
"path": "./packages/react/dist/browser/runtime.js",
"limit": "166B",
"import": "{ ax }",
"ignore": [
"react"
]
},
{
"path": "./packages/react/dist/browser/runtime.js",
"limit": "473B",
"import": "{ CC, CS }",
"ignore": [
"react"
]
}
]
}