diff --git a/.gitignore b/.gitignore index 4d29575..2fa56e4 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,7 @@ /coverage # production -/build +/dist # misc .DS_Store diff --git a/README.md b/README.md index 26a11c1..0b219c4 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,21 @@ # Webnative React TodoMVC [![Built by FISSION](https://img.shields.io/badge/⌘-Built_by_FISSION-purple.svg)](https://fission.codes) -[![Built by FISSION](https://img.shields.io/badge/webnative-v0.26.2-purple.svg )](https://github.com/fission-suite/webnative) +[![Built by FISSION](https://img.shields.io/badge/webnative-v0.36.1-purple.svg )](https://github.com/fission-suite/webnative) [![Discord](https://img.shields.io/discord/478735028319158273.svg)](https://discord.gg/zAQBDEq) [![Discourse](https://img.shields.io/discourse/https/talk.fission.codes/topics)](https://talk.fission.codes) -The repository implements TodoMVC with React and [webnative](https://github.com/fission-suite/webnative). The repository includes branches that demonstrate the same app configured with Create React App, Vite, and Parcel: +The repository implements TodoMVC with React and [webnative](https://github.com/fission-suite/webnative). The repository includes branches that demonstrate the same app configured with Create React App, Vite, and Webpack: - [Create React App build](https://github.com/fission-suite/react-todomvc) - [Vite build](https://github.com/fission-suite/react-todomvc/tree/vite) -- [Parcel build](https://github.com/fission-suite/react-todomvc/tree/parcel) +- [Webpack build](https://github.com/fission-suite/react-todomvc/tree/webpack) -**Note:** We currently recommend the Vite configuration for the latest webnative builds. +## Migration to Vite or Webpack -## Migration to Vite or Parcel - -The app was initialized with Create React App and migrated to Vite and Parcel. See the [Migrate from CRA to Vite](https://github.com/fission-suite/react-todomvc/pull/2) and [Migrate from CRA to parcel](https://github.com/fission-suite/react-todomvc/pull/1) pull requests for guides and diffs to help you migrate from Create React App. +The app was initialized with Create React App and migrated to Vite and Webpack 5. See the [Migrate from CRA to Vite](https://github.com/fission-suite/react-todomvc/pull/2), and [Migrate from CRA to Webpack](https://github.com/fission-suite/react-todomvc/pull/3) pull requests for guides and diffs to help you migrate from Create React App. +⚠️ Parcel 2 also has a branch but is not currently supported. Please see our build tool and bundler support tracking issue for the latest support notes: https://github.com/fission-codes/webnative/issues/293 ## Try it The app is live at: https://young-turquoise-metalic-fairy.fission.app/ @@ -37,7 +36,9 @@ To work on the application locally: npm start ``` -Navigate to `localhost:3000` in your web browser or `localhost:1234` for Parcel. +Open the app in your web browser: +- Create React App and Vite: `localhost:3000` +- Webpack: `localhost:8080` ## Build @@ -47,7 +48,7 @@ Build the application. npm run build ``` -The build will be in `build` from Create React app and `dist` for Vite and Parel. +The build will be in `build` for Create React app, `dist` for Vite and `public` for Webpack. ## Publish diff --git a/fission.yaml b/fission.yaml index 5a1b7cd..88abe78 100644 --- a/fission.yaml +++ b/fission.yaml @@ -1,3 +1,3 @@ ignore: [] url: young-turquoise-metalic-fairy.fission.app -build: ./build +build: ./dist diff --git a/index.html b/index.html new file mode 100644 index 0000000..5108470 --- /dev/null +++ b/index.html @@ -0,0 +1,29 @@ + + +
+ + + + + + + + + + + +