diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index afd3570..90eea8b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: eth-pm, relay-angular-chat, relay-reactjs-chat, - rln-reactts, + rln-react-ts, store-reactjs-chat, web-chat ] diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile index 80b1908..1080c5c 100644 --- a/ci/Jenkinsfile +++ b/ci/Jenkinsfile @@ -37,7 +37,7 @@ pipeline { stage('eth-pm') { steps { script { buildExample() } } } stage('relay-angular-chat') { steps { script { buildExample() } } } stage('relay-reactjs-chat') { steps { script { buildExample() } } } - stage('rln-reactts') { steps { script { buildExample() } } } + stage('rln-react-ts') { steps { script { buildExample() } } } stage('store-reactjs-chat') { steps { script { buildExample() } } } stage('web-chat') { steps { script { buildExample() } } } } diff --git a/rln-reactts/.gitignore b/rln-react-ts/.gitignore similarity index 100% rename from rln-reactts/.gitignore rename to rln-react-ts/.gitignore diff --git a/rln-react-ts/README.md b/rln-react-ts/README.md new file mode 100644 index 0000000..f76972a --- /dev/null +++ b/rln-react-ts/README.md @@ -0,0 +1,17 @@ +# RLN React TypeScript Waku App + +**Demonstrates**: + +- RLN +- React/TypeScript + +The `master` branch's HEAD is deployed at https://examples.waku.org/rln-react-ts/. + +To run a development version locally, do: + +```shell +git clone https://github.com/waku-org/js-waku-examples +cd rln-react-ts +npm install +npm run start +``` diff --git a/rln-reactts/craco.config.js b/rln-react-ts/craco.config.js similarity index 100% rename from rln-reactts/craco.config.js rename to rln-react-ts/craco.config.js diff --git a/rln-reactts/package.json b/rln-react-ts/package.json similarity index 97% rename from rln-reactts/package.json rename to rln-react-ts/package.json index 8f7265c..4a83381 100644 --- a/rln-reactts/package.json +++ b/rln-react-ts/package.json @@ -2,7 +2,7 @@ "name": "rln-reactts", "version": "0.1.0", "private": true, - "homepage": "/rln-reaccts", + "homepage": "/rln-react-ts", "dependencies": { "@emotion/react": "^11.10.4", "@emotion/styled": "^11.10.4", diff --git a/rln-reactts/pnpm-lock.yaml b/rln-react-ts/pnpm-lock.yaml similarity index 100% rename from rln-reactts/pnpm-lock.yaml rename to rln-react-ts/pnpm-lock.yaml diff --git a/rln-reactts/public/favicon.ico b/rln-react-ts/public/favicon.ico similarity index 100% rename from rln-reactts/public/favicon.ico rename to rln-react-ts/public/favicon.ico diff --git a/rln-reactts/public/index.html b/rln-react-ts/public/index.html similarity index 100% rename from rln-reactts/public/index.html rename to rln-react-ts/public/index.html diff --git a/rln-reactts/public/manifest.json b/rln-react-ts/public/manifest.json similarity index 100% rename from rln-reactts/public/manifest.json rename to rln-react-ts/public/manifest.json diff --git a/rln-reactts/public/robots.txt b/rln-react-ts/public/robots.txt similarity index 100% rename from rln-reactts/public/robots.txt rename to rln-react-ts/public/robots.txt diff --git a/rln-reactts/src/App.css b/rln-react-ts/src/App.css similarity index 100% rename from rln-reactts/src/App.css rename to rln-react-ts/src/App.css diff --git a/rln-reactts/src/App.tsx b/rln-react-ts/src/App.tsx similarity index 100% rename from rln-reactts/src/App.tsx rename to rln-react-ts/src/App.tsx diff --git a/rln-reactts/src/ConnectWallet.tsx b/rln-react-ts/src/ConnectWallet.tsx similarity index 100% rename from rln-reactts/src/ConnectWallet.tsx rename to rln-react-ts/src/ConnectWallet.tsx diff --git a/rln-reactts/src/index.css b/rln-react-ts/src/index.css similarity index 100% rename from rln-reactts/src/index.css rename to rln-react-ts/src/index.css diff --git a/rln-reactts/src/index.tsx b/rln-react-ts/src/index.tsx similarity index 100% rename from rln-reactts/src/index.tsx rename to rln-react-ts/src/index.tsx diff --git a/rln-reactts/src/logo.svg b/rln-react-ts/src/logo.svg similarity index 100% rename from rln-reactts/src/logo.svg rename to rln-react-ts/src/logo.svg diff --git a/rln-reactts/src/react-app-env.d.ts b/rln-react-ts/src/react-app-env.d.ts similarity index 100% rename from rln-reactts/src/react-app-env.d.ts rename to rln-react-ts/src/react-app-env.d.ts diff --git a/rln-reactts/src/setupTests.ts b/rln-react-ts/src/setupTests.ts similarity index 100% rename from rln-reactts/src/setupTests.ts rename to rln-react-ts/src/setupTests.ts diff --git a/rln-reactts/tsconfig.json b/rln-react-ts/tsconfig.json similarity index 100% rename from rln-reactts/tsconfig.json rename to rln-react-ts/tsconfig.json diff --git a/rln-reactts/README.md b/rln-reactts/README.md deleted file mode 100644 index b87cb00..0000000 --- a/rln-reactts/README.md +++ /dev/null @@ -1,46 +0,0 @@ -# Getting Started with Create React App - -This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). - -## Available Scripts - -In the project directory, you can run: - -### `npm start` - -Runs the app in the development mode.\ -Open [http://localhost:3000](http://localhost:3000) to view it in the browser. - -The page will reload if you make edits.\ -You will also see any lint errors in the console. - -### `npm test` - -Launches the test runner in the interactive watch mode.\ -See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. - -### `npm run build` - -Builds the app for production to the `build` folder.\ -It correctly bundles React in production mode and optimizes the build for the best performance. - -The build is minified and the filenames include the hashes.\ -Your app is ready to be deployed! - -See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. - -### `npm run eject` - -**Note: this is a one-way operation. Once you `eject`, you can’t go back!** - -If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. - -Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. - -You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. - -## Learn More - -You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). - -To learn React, check out the [React documentation](https://reactjs.org/).