Skip to content

Commit

Permalink
Merge pull request #2 from andorsk/ask/web5
Browse files Browse the repository at this point in the history
adding web5 services
  • Loading branch information
andorsk authored May 19, 2024
2 parents 6062de3 + 60c075d commit 2876342
Show file tree
Hide file tree
Showing 13 changed files with 1,478 additions and 1,187 deletions.
25 changes: 22 additions & 3 deletions craco.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,28 @@
const path = require("path");
const webpack = require("webpack");

module.exports = {
webpack: {
alias: {
"@": path.resolve(__dirname, "src/"),
configure: (webpackConfig) => {
webpackConfig.resolve.fallback = {
...webpackConfig.resolve.fallback,
stream: require.resolve("stream-browserify"),
crypto: require.resolve("crypto-browserify"),
process: require.resolve("process/browser"),
};

webpackConfig.plugins.push(
new webpack.ProvidePlugin({
process: "process/browser.js",
}),
new webpack.ProvidePlugin({
crypto: "crypto-browserify",
}),
new webpack.NormalModuleReplacementPlugin(/node:crypto/, (resource) => {
resource.request = resource.request.replace(/^node:/, "");
}),
);

return webpackConfig;
},
},
};
18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"private": true,
"homepage": "https://andorsk.github.io/web5-calendly",
"dependencies": {
"@craco/craco": "^7.1.0",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@mui/icons-material": "^5.15.18",
Expand All @@ -19,6 +18,8 @@
"@types/react-dom": "^18.3.0",
"@types/react-redux": "^7.1.33",
"@types/react-router-dom": "^5.3.3",
"@web5/api": "^0.9.3",
"browser": "link:@web5/api/browser",
"date-fns": "^3.6.0",
"gapi-script": "^1.2.0",
"react": "^18.3.1",
Expand All @@ -38,25 +39,22 @@
"eject": "craco eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
"extends": ["react-app", "react-app/jest"]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"production": [">0.2%", "not dead", "not op_mini all"],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@craco/craco": "^7.1.0",
"@testing-library/jest-dom": "^5.17.0",
"crypto-browserify": "^3.12.0",
"process": "^0.11.10",
"stream-browserify": "^3.0.0",
"tailwindcss": "^3.4.3"
}
}
Loading

0 comments on commit 2876342

Please sign in to comment.