From 863eacaa3031800f944d114b2f2070b4054ab46e Mon Sep 17 00:00:00 2001 From: Jason Dreyzehner Date: Thu, 18 Jan 2024 03:27:37 -0500 Subject: [PATCH] Build and use local libauth --- .cspell.json | 1 + .eslintrc.cjs | 8 +++++++- .github/workflows/ci.yml | 6 +++--- README.md | 2 +- package.json | 1 + 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.cspell.json b/.cspell.json index d4993e3..1f1f880 100644 --- a/.cspell.json +++ b/.cspell.json @@ -19,6 +19,7 @@ "CHECKSIG", "CHECKSIGVERIFY", "Codecov", + "corepack", "Dreyzehner", "EQUALVERIFY", "filechooser", diff --git a/.eslintrc.cjs b/.eslintrc.cjs index a2a2dbc..1b1d7ba 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -21,7 +21,13 @@ module.exports = { 'plugin:react/jsx-runtime', 'plugin:react-hooks/recommended', ], - ignorePatterns: ['coverage', 'dist', 'libauth', '.eslintrc.cjs'], + ignorePatterns: [ + 'coverage', + 'dist', + 'libauth', + 'playwright-report', + '.eslintrc.cjs', + ], parser: '@typescript-eslint/parser', plugins: ['@typescript-eslint', 'import', 'react-refresh'], settings: { diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a91eb2e..a86d138 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - submodules: 'true' + submodules: 'recursive' - uses: actions/setup-node@v4 with: node-version: 20 @@ -22,7 +22,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - submodules: 'true' + submodules: 'recursive' - uses: actions/setup-node@v4 with: node-version: 20 @@ -45,7 +45,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - submodules: 'true' + submodules: 'recursive' - uses: actions/setup-node@v4 with: node-version: 20 diff --git a/README.md b/README.md index 452f267..9e6723f 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Read more about it in [the blog post](https://blog.bitjson.com/bitauth-ide-write Pull Requests are welcome! -This application requires [Yarn](https://yarnpkg.com/) for development. If you don't have Yarn, make sure you have `Node.js` installed, then run `npm install -g yarn`. Once Yarn is installed, recursive-clone `bitauth-ide` and run the `start` package script: +This application requires [Yarn](https://yarnpkg.com/) for development. With `Node.js` installed, the `yarn` package manager can be installed by running `corepack enable`. Once `yarn` is installed: ```sh # note the use of --recursive to clone submodules diff --git a/package.json b/package.json index ab0dbd7..fb10749 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ "workbox-window": "^7.0.0" }, "scripts": { + "postinstall": "cd libauth && yarn && yarn build", "start": "vite", "build": "tsc && vite build", "preview": "vite preview",