Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from Webpack to Vite #382

Merged
merged 30 commits into from
May 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
001a2da
feat: vite tested by career folder
YHhaoareyou Apr 7, 2022
8e90c18
feat: replace systemjs import with dynamic import to import vite project
YHhaoareyou Apr 8, 2022
e9cfab5
feat: ignore dynamic import problem caused by webpack
YHhaoareyou Apr 14, 2022
d2a9f18
feat: Migrate Campus from Webpack to Vite
YHhaoareyou Apr 17, 2022
cae4a62
fix: restore career
YHhaoareyou Apr 18, 2022
e45dbc6
feat: register vite app campus by single-spa-layout
YHhaoareyou Apr 18, 2022
c39b189
feat: migrate Syllabus to vite (error unsolved)
YHhaoareyou Apr 18, 2022
cf631f8
fix: fix lockfile
AustinZhu Apr 18, 2022
29a22d3
fix: solve "exportStar not a function", "undefined global" and use Vi…
AustinZhu Apr 18, 2022
b3afcfa
feat: migrate syllabus to vite (done)
YHhaoareyou Apr 19, 2022
26487b6
remove webpack from all apps except root
YHhaoareyou Apr 19, 2022
3424e15
feat: migrate root to vite
YHhaoareyou Apr 19, 2022
e9a4d29
feat: remove webpack related scripts & solve import-map not supported…
YHhaoareyou Apr 19, 2022
a8c16bb
feat: import static assets; solve errors of custom props passed to dom
YHhaoareyou Apr 21, 2022
434f3f4
fix: run eslint fix
YHhaoareyou Apr 21, 2022
b3684be
fix: build script & config
YHhaoareyou Apr 21, 2022
0ab0dcf
feat: build config & debug global var
YHhaoareyou Apr 23, 2022
a38f1f1
fix: output asset files path
YHhaoareyou Apr 23, 2022
84e7caa
feat: disable css code split in build
YHhaoareyou Apr 23, 2022
63155e8
fix: run eslint fix
YHhaoareyou Apr 23, 2022
6c6de7b
feat: preload css from mf apps to root; replace react-s-alert with re…
YHhaoareyou Apr 26, 2022
344f5fa
feat: configure public path & env var for each app
YHhaoareyou Apr 29, 2022
49eedce
fix: run eslint fix
YHhaoareyou Apr 29, 2022
805a1a9
feat: service-worker
YHhaoareyou May 2, 2022
dc775be
fix: eslint fix
YHhaoareyou May 2, 2022
81fe87e
Merge branch 'develop' into feature/vite
YHhaoareyou May 2, 2022
7c2656e
update lock files
YHhaoareyou May 2, 2022
33c8790
fix: missing package
YHhaoareyou May 2, 2022
54f0cf9
fix: externalize styles from other mf app
YHhaoareyou May 2, 2022
6a858ca
fix: campus room badge styles
YHhaoareyou May 2, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,12 @@ Installation with other ways: https://pnpm.io/installation

3. Then install Bit on your computer (local): https://docs.bit.dev/docs/installation

4. Check your Bit authentication token with the following command:
4. Login to Bit on your terminal
```
bit login
```

5. Check your Bit authentication token with the following command:
```
bit config
```
Expand Down
42 changes: 19 additions & 23 deletions campus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"name": "@wasedatime/campus",
"scripts": {
"preinstall": "npx only-allow pnpm",
"start": "webpack serve --port 8081 --env isLocal",
"start:standalone": "webpack serve --env standalone",
"start": "vite --port 8081",
"build": "vite build",
"build-dev": "vite build --mode staging",
"preview": "vite preview --port 8081",
"preview-dev": "vite preview --mode staging --port 8081",
"tsc": "tsc",
"local": "concurrently --kill-others \"pnpm start\" \"cd ../root && pnpm start\"",
"build": "webpack --mode=production",
"build-dev": "webpack --mode=production --env isDev",
"analyze": "webpack --mode=production --env analyze",
"fix": "pnpm run format && pnpm run lint:fix",
"lint": "eslint src --ext \"**/*.{js,ts,tsx}\"",
"lint:fix": "eslint --fix \"**/*.{js,ts,tsx}\"",
Expand All @@ -27,8 +28,8 @@
"autoprefixer": "10.4.2",
"babel-plugin-styled-components": "2.0.6",
"concurrently": "7.0.0",
"css-loader": "6.7.1",
"cssnano": "5.1.0",
"dotenv": "^16.0.0",
"eslint": "8.10.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-prettier": "8.5.0",
Expand All @@ -39,29 +40,19 @@
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react": "7.29.4",
"postcss": "8.4.8",
"postcss-loader": "5.3.0",
"prettier": "2.5.1",
"prettier-eslint": "13.0.0",
"sass": "1.49.9",
"sass-loader": "12.6.0",
"style-loader": "3.3.1",
"tailwindcss": "3.0.23",
"ts-config-single-spa": "2.0.1",
"ts-loader": "9.2.8",
"typescript": "4.6.2",
"webpack": "5.70.0",
"webpack-cli": "4.9.2",
"webpack-config-single-spa-react-ts": "4.0.3",
"webpack-dev-server": "4.7.4",
"webpack-merge": "5.8.0"
"typescript": "4.6.2"
},
"dependencies": {
"@aws-amplify/auth": "4.4.4",
"@bit/wasedatime.core.assets.img.logo": "0.0.1",
"@bit/wasedatime.core.theme.colors": "0.0.5",
"@bit/wasedatime.core.theme.colors": "0.0.4",
"@bit/wasedatime.core.ts.constants.langs": "0.0.5",
"@bit/wasedatime.core.ts.ui.header": "0.2.17",
"@bit/wasedatime.core.ts.ui.loading-spinner": "0.1.2",
"@bit/wasedatime.core.ts.ui.header": "0.2.21",
"@bit/wasedatime.core.ts.ui.loading-spinner": "0.1.5",
"@bit/wasedatime.core.ts.utils.i18n": "0.0.4",
"@bit/wasedatime.core.ts.utils.responsive-utils": "0.0.1",
"@fortawesome/free-solid-svg-icons": "6.0.0",
Expand All @@ -70,7 +61,7 @@
"@types/react-dom": "17.0.13",
"@types/styled-components": "5.1.24",
"@types/systemjs": "6.1.1",
"@types/webpack-env": "1.16.3",
"@vitejs/plugin-react-refresh": "^1.3.6",
"bootstrap": "5.1.3",
"i18next": "19.9.2",
"react": "17.0.2",
Expand All @@ -80,8 +71,13 @@
"react-ga": "3.3.0",
"react-helmet": "6.1.0",
"react-i18next": "11.15.6",
"react-router-dom": "^6.2.2",
"react-router-dom": "^6.3.0",
"single-spa-react": "3.2.0",
"styled-components": "5.3.3"
"styled-components": "5.3.3",
"vite": "^2.9.5",
"vite-plugin-dynamic-import": "^0.7.1"
},
"resolutions": {
"esbuild": "0.14.34"
}
}
Loading