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 #398

Merged
merged 39 commits into from
May 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
c8b297b
fix(deps): update dependency @aws-amplify/auth to v4 (#352)
renovate[bot] Mar 23, 2022
0504ac9
Feature: Added Dark theme (#365)
nichnarmada Mar 27, 2022
d789596
fix: clear search keywords when onclick related courses
YHhaoareyou Mar 27, 2022
fba8238
Merge branch 'master' into develop
YHhaoareyou Mar 27, 2022
4cc5b89
Merge branch 'master' into develop
YHhaoareyou Mar 29, 2022
bc8ecd7
Merge branch 'master' into develop
YHhaoareyou Mar 29, 2022
67b4a97
Debug: mobile dark mode debug (#373)
YHhaoareyou Apr 1, 2022
ed25abf
chore(deps): update dependency eslint-plugin-react to v7.29.4 (#361)
renovate[bot] Apr 1, 2022
86a91f5
chore(deps): update dependency ts-loader to v9.2.8 (#359)
renovate[bot] Apr 1, 2022
374a41a
feat: remove unused dependencies (#377)
YHhaoareyou Apr 13, 2022
6632a95
Feature/darktheme colors (#378)
YHhaoareyou Apr 13, 2022
2f8dd9b
Merge branch 'master' into develop
YHhaoareyou Apr 17, 2022
8492b1c
Feature: Timetable dark theme (#379)
YHhaoareyou Apr 18, 2022
66db621
feat: add the hovering effect to the member cards (#381)
xinyue296 Apr 26, 2022
ef10256
Migrate from Webpack to Vite (#382)
YHhaoareyou May 2, 2022
84b2c1d
fix: env without using dotenv explicitly (#385)
YHhaoareyou May 5, 2022
c3abb53
fix: packages version
YHhaoareyou May 5, 2022
5993df1
fix: change env var name
YHhaoareyou May 5, 2022
76976ee
fix: remove systemjs package; add peer dependencies
YHhaoareyou May 5, 2022
e52cdef
fix: feeds domain on staging/prod
YHhaoareyou May 5, 2022
59fdef5
Feature: About Us page link from Home page & split Home from Root-con…
YHhaoareyou May 6, 2022
8252657
Feature/fix card padding (#388)
xinyue296 May 10, 2022
f509547
Merge branch 'master' into develop
YHhaoareyou May 17, 2022
25973a1
fix: install missing dependency: @aws-amplify/core
YHhaoareyou May 17, 2022
8f4caf8
fix: remove course function
YHhaoareyou May 18, 2022
e8a35a6
feat: alert translation
YHhaoareyou May 18, 2022
c0585c1
fix: eslint
YHhaoareyou May 18, 2022
5d47e3c
feat: add workbox runtimeCaching config
YHhaoareyou May 19, 2022
7c6cd35
Fix service worker to enable it to replace old one (#389)
YHhaoareyou May 20, 2022
626ceca
feat: add a profile card component; add hover & click effect; add a c…
xinyue296 May 23, 2022
4bc712d
fix: syllabus minor styling issues
YHhaoareyou May 29, 2022
6245a70
Update README.md
YHhaoareyou May 29, 2022
156663d
Migrate from Webpack to Vite (#386)
YHhaoareyou May 29, 2022
6c911c8
add script-src-elem to Content Security Policy (#391)
YHhaoareyou May 29, 2022
081c41c
Hotfix (#392)
YHhaoareyou May 29, 2022
d1e063a
Hotfix (#393)
YHhaoareyou May 29, 2022
bbc1a69
Merge branch 'master' into develop
YHhaoareyou May 29, 2022
4f556ac
fix blob in csp
YHhaoareyou May 29, 2022
6fa7950
Merge branch 'master' into develop
YHhaoareyou May 30, 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
15 changes: 12 additions & 3 deletions 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 Expand Up @@ -226,7 +231,9 @@ Whenever there is some progress in your work, commit it.

## Create a new app (micro-app) in WasedaTime

*For new big features which is obviously less related to other existing apps (syllabus, campus, feeds)*
*This section is being moved to internal documentation since it is an instruction for creating new & big features, which would be leave to our team members.*

<!--

1. Install `create-single-spa`
```bash
Expand Down Expand Up @@ -275,6 +282,8 @@ pnpm i
```
Then run `pnpm run local` inside root folder. This runs all app at the same time. Open http://localhost:9000 to see the result.

-->

# Contributors

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
Expand Down Expand Up @@ -321,4 +330,4 @@ This project follows the [all-contributors](https://github.com/kentcdodds/all-co
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details


[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fwasedatime%2Fwasedatime-web.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fwasedatime%2Fwasedatime-web?ref=badge_large)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fwasedatime%2Fwasedatime-web.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fwasedatime%2Fwasedatime-web?ref=badge_large)
63 changes: 38 additions & 25 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 @@ -16,19 +17,23 @@
"devDependencies": {
"@babel/core": "7.17.5",
"@babel/eslint-parser": "7.17.0",
"@babel/plugin-syntax-flow": "^7.17.12",
"@babel/plugin-transform-react-jsx": "^7.17.12",
"@babel/plugin-transform-runtime": "7.17.0",
"@babel/preset-env": "7.16.11",
"@babel/preset-react": "7.16.7",
"@babel/preset-typescript": "7.16.7",
"@babel/runtime": "7.17.2",
"@types/systemjs": "6.1.1",
"@fortawesome/fontawesome-svg-core": "1.3.0",
"@popperjs/core": "^2.11.5",
"@types/node": "17.0.21",
"@typescript-eslint/eslint-plugin": "5.14.0",
"@typescript-eslint/parser": "5.14.0",
"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.1",
"eslint": "8.10.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-prettier": "8.5.0",
Expand All @@ -38,39 +43,32 @@
"eslint-plugin-prefer-arrow": "1.2.3",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react": "7.29.4",
"eslint-plugin-react-hooks": "4.3.0",
"postcss": "8.4.8",
"postcss-loader": "5.3.0",
"prettier": "2.5.1",
"prettier-eslint": "13.0.0",
"prop-types": "^15.8.1",
"react-is": "^18.1.0",
"react-native": "^0.68.2",
"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",
"@fortawesome/react-fontawesome": "0.1.17",
"@types/react": "17.0.39",
"@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 +78,23 @@
"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.9",
"vite-plugin-dynamic-import": "^0.7.1"
},
"resolutions": {
"esbuild": "0.14.34"
},
"peerDependencies": {
"@babel/plugin-syntax-flow": "^7.16.7",
"@babel/plugin-transform-react-jsx": "^7.17.3",
"@fortawesome/fontawesome-svg-core": "1.3.0",
"@popperjs/core": "^2.11.5",
"eslint-plugin-react-hooks": "4.3.0",
"prop-types": "^15.8.1",
"react-is": "^18.1.0",
"react-native": "^0.68.1"
}
}
Loading