Skip to content

Commit 629302b

Browse files
committed
refactor: re-organize into monorepo
1 parent 9422edf commit 629302b

File tree

4 files changed

+10
-174
lines changed

4 files changed

+10
-174
lines changed

package.json

+6-144
Original file line numberDiff line numberDiff line change
@@ -1,150 +1,12 @@
11
{
2-
"name": "vite",
3-
"version": "1.0.0-rc.13",
4-
"license": "MIT",
5-
"author": "Evan You",
6-
"description": "Native-ESM powered web dev build tool. It's fast.",
7-
"bin": {
8-
"vite": "bin/vite.js"
9-
},
10-
"main": "dist/node/index.js",
11-
"types": "dist/node/index.d.ts",
12-
"files": [
13-
"bin",
14-
"src",
15-
"dist/**/*.js",
16-
"dist/**/*.js.map",
17-
"dist/**/*.d.ts"
2+
"name": "vite-monorepo",
3+
"private": true,
4+
"workspaces": [
5+
"packages/*"
186
],
19-
"engines": {
20-
"node": ">=10.16.0"
21-
},
22-
"repository": {
23-
"type": "git",
24-
"url": "git+https://github.com/vitejs/vite.git"
25-
},
26-
"bugs": {
27-
"url": "https://github.com/vitejs/vite/issues"
28-
},
29-
"homepage": "https://github.com/vitejs/vite/tree/master/#readme",
30-
"scripts": {
31-
"dev": "run-p dev-client dev-node",
32-
"dev-client": "tsc -w --incremental --p src/client",
33-
"dev-node": "tsc -w --incremental --p src/node",
34-
"build": "rimraf dist && tsc -p src/client && tsc -p src/node && node scripts/patchTypes",
35-
"lint": "prettier --write --parser typescript \"src/**/*.ts\"",
36-
"test": "jest --clearCache && jest --runInBand --forceExit",
37-
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
38-
"release": "node scripts/release.js"
39-
},
40-
"gitHooks": {
41-
"pre-commit": "lint-staged",
42-
"commit-msg": "node scripts/verifyCommit.js"
43-
},
44-
"lint-staged": {
45-
"*.js": [
46-
"prettier --write"
47-
],
48-
"*.ts": [
49-
"prettier --parser=typescript --write"
50-
]
51-
},
52-
"dependencies": {
53-
"@babel/parser": "^7.12.7",
54-
"@koa/cors": "^3.1.0",
55-
"@rollup/plugin-commonjs": "^16.0.0",
56-
"@rollup/plugin-json": "^4.1.0",
57-
"@rollup/plugin-node-resolve": "^10.0.0",
58-
"@rollup/pluginutils": "^4.1.0",
59-
"@types/http-proxy": "^1.17.4",
60-
"@types/koa": "^2.11.4",
61-
"@types/lru-cache": "^5.1.0",
62-
"@vue/compiler-dom": "^3.0.3",
63-
"@vue/compiler-sfc": "^3.0.3",
64-
"brotli-size": "^4.0.0",
65-
"cac": "^6.6.1",
66-
"chalk": "^4.1.0",
67-
"chokidar": "^3.4.2",
68-
"clean-css": "^4.2.3",
69-
"debug": "^4.3.1",
70-
"dotenv": "^8.2.0",
71-
"dotenv-expand": "^5.1.0",
72-
"es-module-lexer": "^0.3.25",
73-
"esbuild": "^0.8.12",
74-
"etag": "^1.8.1",
75-
"execa": "^4.0.3",
76-
"fs-extra": "^9.0.1",
77-
"hash-sum": "^2.0.0",
78-
"isbuiltin": "^1.0.0",
79-
"klona": "^2.0.4",
80-
"koa": "^2.13.0",
81-
"koa-conditional-get": "^3.0.0",
82-
"koa-etag": "^4.0.0",
83-
"koa-proxies": "^0.11.0",
84-
"koa-send": "^5.0.1",
85-
"koa-static": "^5.0.0",
86-
"lru-cache": "^6.0.0",
87-
"magic-string": "^0.25.7",
88-
"merge-source-map": "^1.1.0",
89-
"mime-types": "^2.1.27",
90-
"minimist": "^1.2.5",
91-
"open": "^7.2.1",
92-
"ora": "^5.1.0",
93-
"postcss-discard-comments": "^4.0.2",
94-
"postcss-import": "^12.0.1",
95-
"postcss-load-config": "^3.0.0",
96-
"resolve": "^1.17.0",
97-
"rollup": "^2.32.1",
98-
"rollup-plugin-dynamic-import-variables": "^1.1.0",
99-
"rollup-plugin-terser": "^7.0.2",
100-
"rollup-plugin-vue": "^6.0.0",
101-
"rollup-plugin-web-worker-loader": "^1.3.1",
102-
"selfsigned": "^1.10.8",
103-
"slash": "^3.0.0",
104-
"source-map": "^0.7.3",
105-
"vue": "^3.0.3",
106-
"ws": "^7.3.1"
107-
},
1087
"devDependencies": {
109-
"@babel/runtime": "7.12.5",
110-
"@babel/types": "^7.12.7",
111-
"@types/es-module-lexer": "^0.3.0",
112-
"@types/fs-extra": "^9.0.1",
113-
"@types/hash-sum": "^1.0.0",
114-
"@types/jest": "^26.0.13",
115-
"@types/mime-types": "^2.1.0",
116-
"@types/node": "^14.14.9",
117-
"@types/postcss-import": "^12.0.0",
118-
"@types/postcss-load-config": "^2.0.1",
119-
"@types/serve-handler": "^6.1.0",
120-
"@types/ws": "^7.2.6",
121-
"bootstrap": "^4.5.0",
122-
"conventional-changelog-cli": "^2.0.31",
123-
"cross-env": "^7.0.2",
124-
"enquirer": "^2.3.6",
125-
"jest": "^26.4.2",
126-
"js-yaml": "^3.14.0",
127-
"less": "^3.11.2",
128-
"lint-staged": "^10.1.6",
129-
"lodash-es": "^4.17.15",
130-
"moment": "^2.26.0",
131-
"normalize.css": "^8.0.1",
8+
"@types/node": "^14.14.10",
1329
"npm-run-all": "^4.1.5",
133-
"postcss-nesting": "^7.0.1",
134-
"preact": "^10.4.1",
135-
"prettier": "^2.2.0",
136-
"prop-types": "^15.7.2",
137-
"pug": "^3.0.0",
138-
"puppeteer": "^5.5.0",
139-
"react": "^16.13.1",
140-
"react-dom": "^16.13.1",
141-
"rimraf": "^3.0.2",
142-
"sass": "^1.26.5",
143-
"semver": "^7.3.2",
144-
"source-map-support": "^0.5.19",
145-
"typescript": "^4.1.2",
146-
"vue-router": "^4.0.0-rc.1",
147-
"vuex": "^4.0.0-beta.4",
148-
"yorkie": "^2.0.0"
10+
"typescript": "^4.1.2"
14911
}
15012
}

packages/plugin-vue/package.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "@vitejs/plugin-vue",
3+
"version": "1.0.0"
4+
}

playground/package.json

-21
This file was deleted.

playground/tsconfig.json

-9
This file was deleted.

0 commit comments

Comments
 (0)