Files
webstudio/package.json
T
Ivan Starkov e799dcb28e To reduce size of published apps pass getComponent to InstanceRoot, add size limit (#1098)
## Description

Now published apps during build can pregenerate imports of used
components

https://github.com/webstudio-is/webstudio-builder/blob/89688ee837b45f0877ebe32d3aefb1869a97c0a1/packages/sdk-size-test/app/page-components/page-main.ts#L1-L3

And pas getComponent to InstanceRoot
https://github.com/webstudio-is/webstudio-builder/blob/89688ee837b45f0877ebe32d3aefb1869a97c0a1/packages/sdk-size-test/app/routes/$.tsx#L23

Also size-limit is added
https://github.com/webstudio-is/webstudio-builder/blob/89688ee837b45f0877ebe32d3aefb1869a97c0a1/packages/sdk-size-test/package.json#L10-L19


## Steps for reproduction

### What I did

Create sample remix app with sdk
Build: 256K

Increase size of sup component
Build now 564K

After changes build now 256kB

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio-builder/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env.example`
and the `builder/env-check.js` if mandatory
2023-02-22 18:31:48 +03:00

70 lines
2.1 KiB
JSON

{
"packageManager": "pnpm@7.27.1",
"name": "turbo",
"version": "0.0.0",
"private": true,
"scripts": {
"": "For some reason remix build does not finish when run with turbo or pnpm recursively",
"build-packages": "pnpm run --recursive --parallel --filter='!./apps/*' --filter='!./packages/sdk-size-test' build",
"build": "pnpm build-packages && pnpm --filter=@webstudio-is/sdk-size-test build && pnpm --filter=@webstudio-is/builder build",
"checks": "turbo run checks",
"dev": "turbo run dev --parallel",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"build-storybook": "build-storybook",
"storybook": "turbo run storybook:run",
"storybook:build": "npm run build && turbo run storybook:build",
"storybook:ds:build": "turbo run storybook:build --filter=@webstudio-is/design-system",
"migrations": "cd apps/builder && pnpm migrations --dev",
"build-figma-tokens": "cd packages/design-system && pnpm build-figma-tokens",
"prepare": "git config core.hooksPath .git/hooks/ && simple-git-hooks"
},
"simple-git-hooks": {
"pre-commit": "./node_modules/.bin/nano-staged"
},
"devDependencies": {
"@changesets/get-dependents-graph": "^1.3.4",
"@manypkg/get-packages": "^1.1.3",
"@storybook/react": "^6.5.14",
"@types/css-tree": "^2.0.0",
"@webstudio-is/eslint-config-custom": "workspace:^",
"chromatic": "^6.11.4",
"nano-staged": "^0.8.0",
"prettier": "2.8.4",
"simple-git-hooks": "^2.8.1",
"tsx": "^3.9.0",
"turbo": "^1.7.0",
"typescript": "4.9.5"
},
"engines": {
"node": "16",
"pnpm": "7.27",
"yarn": "This project is configured to use pnpm"
},
"nano-staged": {
"*.{ts,tsx,js,json,css,md}": "prettier --write"
},
"prettier": {
"overrides": [
{
"files": [
"*.ts",
"*.tsx"
],
"options": {
"parser": "babel-ts"
}
}
]
},
"resolutions": {
"esbuild": "0.15.13",
"react-dom": "17.0.2",
"@types/react": "17.0.47"
},
"pnpm": {
"patchedDependencies": {
"@storybook/builder-webpack5@6.5.14": "patches/@storybook__builder-webpack5@6.5.14.patch"
}
}
}