diff --git a/.prettierrc b/.prettierrc index 38d9aa9aa604e4..5187c03a0ca828 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,4 +1,5 @@ semi: false +tabWidth: 2 singleQuote: true printWidth: 80 trailingComma: none diff --git a/LICENSE b/LICENSE index 93a897153237ff..9c1b313d7b1816 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019-present, Yuxi (Evan) You +Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/package.json b/package.json index 744a5eab5b2cfb..d6f9102a26e180 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "packages/*" ], "scripts": { - "lint": "eslint --ext .ts packages/*/src/**" + "lint": "eslint --ext .ts packages/*/src/**", + "bundle": "esbuild packages/vite/src/node/index.ts packages/vite/src/node/cli.ts --bundle --platform=node --target=node12 --external:fsevents --external:sugarss --external:bufferutil --external:utf-8-validate --outdir=esbuild" }, "devDependencies": { "@types/node": "^14.14.10", diff --git a/packages/playground/package.json b/packages/playground/package.json index 5b549951cb328d..882f38d96dbc7b 100644 --- a/packages/playground/package.json +++ b/packages/playground/package.json @@ -8,19 +8,20 @@ "serve": "sirv dist", "debug": "node --inspect-brk ../vite/bin/vite.js --debug" }, + "dependencies": { + "@pika/react": "^16.13.1", + "@pika/react-dom": "^16.13.1", + "lodash-es": "^4.17.15", + "preact": "^10.5.7", + "vue": "^3.0.4" + }, "devDependencies": { + "@vitejs/plugin-vue": "^1.0.0", "@vitejs/plugin-react-refresh": "^1.0.0", "less": "^3.13.0", "pug": "^3.0.0", "rollup-plugin-vue": "^6.0.0", "sass": "^1.30.0", "sirv-cli": "^1.0.9" - }, - "dependencies": { - "@pika/react": "^16.13.1", - "@pika/react-dom": "^16.13.1", - "lodash-es": "^4.17.15", - "preact": "^10.5.7", - "vue": "^3.0.4" } } diff --git a/packages/playground/public/icon.png b/packages/playground/public/icon.png new file mode 100644 index 00000000000000..4388bfdca3d4d7 Binary files /dev/null and b/packages/playground/public/icon.png differ diff --git a/packages/playground/sfcs/Hmr.vue b/packages/playground/sfcs/Hmr.vue index 270dd8c448da77..216682733a9dc2 100644 --- a/packages/playground/sfcs/Hmr.vue +++ b/packages/playground/sfcs/Hmr.vue @@ -1,5 +1,5 @@