-
-
Notifications
You must be signed in to change notification settings - Fork 24
refactor!: remove gatsby #181
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
4569503
refactor!: remove gatsby
ccharly 0ae4731
refactor: common provider helper
ccharly 6ab1be1
build: cleanup old .cache + public folders mentions
ccharly c3e9468
refactor: use success instead of primary + re-introduce title for res…
ccharly e50395b
build: move everything as dev deps
ccharly c79b02f
chore: lint
ccharly d2e1eff
chore: revert port change
ccharly 929f948
chore: lint
ccharly 398e751
chore: revert port change
ccharly 218f1f0
fix: use window as react dep
ccharly 48039dc
refactor: remove build/start script in favor of proper webpack tooling
ccharly 2f6f89d
build: exclude webpack-cli/webpack-dev-server from depcheck
ccharly a159b68
refactor: inline env/mode config in webpack.config.js
ccharly c0c1a18
fix: fix reactivity over window.ethereum
ccharly ca241e2
fix: add hasEthereumProvider
ccharly b77791d
fix: fix typing for getEthereumProvider
ccharly 4446bff
fix: re-use hasEthereumProvider
ccharly b09ed59
chore: cleanup
ccharly File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,4 @@ | ||
| { | ||
| "ignore-patterns": [".cache/"], | ||
| "ignores": [ | ||
| "@metamask/auto-changelog", | ||
| "@svgr/webpack", | ||
| "gatsby-plugin-*", | ||
| "react-scripts" | ||
| ] | ||
| "ignore-patterns": ["dist/", "public/", ".cache/"], | ||
| "ignores": ["@swc/core", "webpack-cli", "webpack-dev-server"] | ||
| } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| module.exports = { | ||
| extends: ['../../.eslintrc.js'], | ||
|
|
||
| ignorePatterns: ['!.eslintrc.js', '.cache/', 'public/'], | ||
| ignorePatterns: ['!.eslintrc.js', 'dist/'], | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1 @@ | ||
| .cache/ | ||
| public/ | ||
| dist/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,43 +1,19 @@ | ||
| # TypeScript Example Snap Front-end | ||
| # Simple Snap Keyring Site | ||
|
|
||
| This project was bootstrapped with [Gatsby](https://www.gatsbyjs.com/). | ||
| This package contains the browser UI used to install and test the Simple Snap | ||
| Keyring snap. | ||
|
|
||
| ## Available Scripts | ||
| ## Scripts | ||
|
|
||
| In the project directory, you can run: | ||
| `yarn start` runs the Webpack dev server at | ||
| [http://localhost:8000](http://localhost:8000). | ||
|
|
||
| ### `yarn start` | ||
| `yarn build` creates a production build in `dist/`. | ||
|
|
||
| Runs the app in the development mode.\ | ||
| Open [http://localhost:8000](http://localhost:8000) to view it in the browser. | ||
| ## Environment Variables | ||
|
|
||
| The page will reload if you make edits.\ | ||
| You will also see any lint errors in the console. | ||
| `SNAP_ORIGIN` defines the snap origin installed by the site. It defaults to | ||
| `local:http://localhost:8080`. | ||
|
|
||
| ### `yarn build` | ||
|
|
||
| Builds the app for production to the `public` 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://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/) for more information. | ||
|
|
||
| ## Environment variables | ||
|
|
||
| Gatsby has built-in support for loading environment variables into the browser and Functions. Loading environment variables into Node.js requires a small code snippet. | ||
|
|
||
| In development, Gatsby will load environment variables from a file named `.env.development`. For builds, it will load from `.env.production`. | ||
|
|
||
| By default you can use the `SNAP_ORIGIN` variable (used in `src/config/snap.ts`) to define a production origin for you snap (eg. `npm:MyPackageName`). If not defined it will defaults to `local:http://localhost:8080`. | ||
|
|
||
| A `.env` file template is available, to use it rename `.env.production.dist` to `.env.production` | ||
|
|
||
| To learn more visit [Gatsby documentation](https://www.gatsbyjs.com/docs/how-to/local-development/environment-variables/) | ||
|
|
||
| ## Learn More | ||
|
|
||
| You can learn more in the [Gatsby documentation](https://www.gatsbyjs.com/docs/). | ||
|
|
||
| To learn React, check out the [React documentation](https://reactjs.org/). | ||
| `PATH_PREFIX` defines the public asset prefix for static deployments, such as | ||
| GitHub Pages subdirectories. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now used by webpack! See
webpack.config.js