-
Notifications
You must be signed in to change notification settings - Fork 0
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 #31 from mlabs-haskell/move-to-workspaces
Move to npm workspaces, turbo repo and bun
- Loading branch information
Showing
249 changed files
with
247 additions
and
63,438 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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,36 @@ | ||
#!/bin/bash | ||
|
||
# Check if direnv is installed | ||
if ! command -v direnv &> /dev/null; then | ||
echo "Error: 'direnv' is not installed. Please install it and try again." | ||
exit 1 | ||
fi | ||
|
||
# Check if the path to the .envrc file is provided | ||
if [ -z "$1" ]; then | ||
echo "Please provide the path to the .envrc file as an argument." | ||
exit 1 | ||
fi | ||
|
||
# Resolve the absolute path of the given .envrc file | ||
DIRPATH=$(realpath "$1") | ||
ENVRCPATH=$DIRPATH/.envrc | ||
|
||
# Construct the export command using the current working directory | ||
NODE_MODULES_PATH=$DIRPATH/node_modules | ||
EXPORT_COMMAND="export NODE_MODULES=${NODE_MODULES_PATH}" | ||
|
||
# Check if the .envrc file exists, if not, create it | ||
if [ ! -f "$ENVRCPATH" ]; then | ||
touch "$ENVRCPATH" | ||
fi | ||
|
||
# Check if the export command is already present in the .envrc file | ||
if grep -Fxq "$EXPORT_COMMAND" "$ENVRCPATH"; then | ||
echo "NODE_MODULES is already set in ${ENVRCPATH}" | ||
else | ||
# Append the export command to the file | ||
echo "$EXPORT_COMMAND" >> "$ENVRCPATH" | ||
echo "Successfully added NODE_MODULES to ${ENVRCPATH}" | ||
fi | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,15 @@ | ||
# minauth-demo-client | ||
|
||
## 0.12.0 | ||
|
||
### Minor Changes | ||
|
||
- Make package compatible with npm workspaces. Migrate to using bun and turbo repo. | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] |
File renamed without changes.
File renamed without changes.
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,35 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
productionBrowserSourceMaps: false, | ||
reactStrictMode: false, | ||
|
||
webpack(config) { | ||
config.resolve.alias = { | ||
...config.resolve.alias, | ||
o1js: `${process.env.NODE_MODULES}/o1js` | ||
}; | ||
config.experiments = { | ||
...config.experiments, | ||
topLevelAwait: true | ||
}; | ||
return config; | ||
}, | ||
// To enable o1js for the web, we must set the COOP and COEP headers. | ||
// See here for more information: https://docs.minaprotocol.com/zkapps/how-to-write-a-zkapp-ui#enabling-coop-and-coep-headers | ||
async headers() { | ||
return [{ | ||
source: '/(.*)', | ||
headers: [{ | ||
key: 'Cross-Origin-Opener-Policy', | ||
value: 'same-origin' | ||
}, | ||
{ | ||
key: 'Cross-Origin-Embedder-Policy', | ||
value: 'require-corp' | ||
} | ||
] | ||
}]; | ||
} | ||
}; | ||
|
||
module.exports = nextConfig; |
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
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,13 @@ | ||
{ | ||
"extends": [ | ||
"//" | ||
], | ||
"pipeline": { | ||
"build": { | ||
"outputs": [ | ||
".next/**", | ||
"!.next/cache/**" | ||
] | ||
} | ||
} | ||
} |
File renamed without changes.
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,15 @@ | ||
# minauth-demo-server | ||
|
||
## 0.12.0 | ||
|
||
### Minor Changes | ||
|
||
- Make package compatible with npm workspaces. Migrate to using bun and turbo repo. | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
../../../node_modules/minauth-erc721-timelock-plugin |
File renamed without changes.
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 @@ | ||
../../../node_modules/minauth-merkle-membership-plugin |
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 @@ | ||
../../../node_modules/minauth-simple-preimage-plugin |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,23 @@ | ||
// File: scripts/serve-plugin-server.js | ||
const path = require("path"); | ||
const { execSync } = require("child_process"); | ||
|
||
console.log(process.argv); | ||
|
||
if (process.argv.length < 3) { | ||
console.error("Please provide a path to resolve, e.g., 'minauth/dist/tools/plugin-server/index.js'"); | ||
process.exit(1); | ||
} | ||
|
||
// The first two elements in `process.argv` are 'node' and the script name | ||
const packagePath = process.argv[2]; | ||
|
||
// Attempt to resolve the package | ||
try { | ||
const resolvedPath = require.resolve(packagePath); | ||
execSync(`bunx node ${resolvedPath}`, { stdio: "inherit" }); | ||
} catch (error) { | ||
console.error(`Error: Unable to resolve path "${packagePath}"`); | ||
process.exit(1); | ||
} | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,7 @@ | ||
# minauth | ||
|
||
## 0.12.0 | ||
|
||
### Minor Changes | ||
|
||
- Make package compatible with npm workspaces. Migrate to using bun and turbo repo. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.