-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from buildship-dev/dev
v2.0: mint modal, Webpack, ETH bridge for Polygon
- Loading branch information
Showing
36 changed files
with
15,266 additions
and
200 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
node_modules/ | ||
*/node_modules/ | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
*/build | ||
|
||
# misc | ||
.idea | ||
.vercel | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module.exports = { | ||
webpack: { | ||
alias: {}, | ||
configure: (webpackConfig, {env, paths}) => { | ||
const isEnvProduction = env === "production"; | ||
const isEnvDevelopment = env === "development"; | ||
webpackConfig.output.libraryTarget = "umd"; | ||
webpackConfig.output.library = "NFTComponents"; | ||
webpackConfig.output.filename = isEnvProduction | ||
? 'static/js/[name].js' | ||
: isEnvDevelopment && 'static/js/bundle.js'; | ||
// Turn off chunking | ||
webpackConfig.optimization = {}; | ||
|
||
const miniCssPlugin = webpackConfig.plugins.find( | ||
({ constructor }) => constructor.name === 'MiniCssExtractPlugin' | ||
); | ||
if (miniCssPlugin) { | ||
miniCssPlugin.options.filename = 'static/css/[name].css'; | ||
miniCssPlugin.options.chunkFilename = 'static/css/[name].css'; | ||
} | ||
return webpackConfig; | ||
}, | ||
}, | ||
} |
This file contains 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 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 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,12 +1,6 @@ | ||
<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script> | ||
<script type="text/javascript" src="https://unpkg.com/web3modal"></script> | ||
<script type="text/javascript" src="https://unpkg.com/@walletconnect/web3-provider"></script> | ||
<script> | ||
CONTRACT_ADDRESS = "<your contract address here>" | ||
NETWORK_ID = 1 | ||
</script> | ||
<script crossorigin src="https://unpkg.com/react@17/umd/react.production.min.js"></script> | ||
<script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"></script> | ||
<script crossorigin src="https://unpkg.com/@mui/material@5.1.0/umd/material-ui.production.min.js"></script> | ||
<script type="module" src="https://buildship-dev.github.io/webflow-nft-components/mint/index.js"></script> | ||
|
||
<script src="https://nftcomponents.vercel.app/static/js/main.js"></script> | ||
<link href="https://nftcomponents.vercel.app/static/css/main.css" rel="stylesheet"> |
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"name": "webflow-nft-components", | ||
"version": "0.1.0", | ||
"private": true, | ||
"dependencies": { | ||
"@craco/craco": "^6.4.2", | ||
"@emotion/react": "^11.7.0", | ||
"@emotion/styled": "^11.6.0", | ||
"@mui/icons-material": "^5.2.0", | ||
"@mui/material": "^5.2.2", | ||
"@testing-library/jest-dom": "^5.11.4", | ||
"@testing-library/react": "^11.1.0", | ||
"@testing-library/user-event": "^12.1.10", | ||
"@walletconnect/web3-provider": "^1.6.6", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"react-scripts": "4.0.3", | ||
"web-vitals": "^1.0.1", | ||
"web3": "^1.6.1", | ||
"web3modal": "^1.9.4" | ||
}, | ||
"scripts": { | ||
"start": "craco start", | ||
"build": "craco build", | ||
"test": "craco test", | ||
"eject": "react-scripts eject" | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
"react-app", | ||
"react-app/jest" | ||
] | ||
}, | ||
"browserslist": { | ||
"production": [ | ||
">0.2%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
} | ||
} |
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.