Skip to content
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

chore: use npm workspaces #45

Merged
merged 16 commits into from
Oct 13, 2023
Merged
6 changes: 1 addition & 5 deletions .github/workflows/check-typescript-projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ jobs:
- sveltekit-ts
- vitejs-ts
npm-package: ['release', 'development']
defaults:
run:
working-directory: ${{github.workspace}}/projects/${{matrix.project}}
steps:
- name: Download the maxgraph npm package
if: ${{ matrix.npm-package == 'development' }}
Expand All @@ -75,13 +72,12 @@ jobs:
uses: bahmutov/npm-install@v1
with:
install-command: npm ci --prefer-offline --audit false --ignore-scripts
working-directory: ${{github.workspace}}/projects/${{matrix.project}}
- name: Install maxgraph development npm package
if: ${{ matrix.npm-package == 'development' }}
# use wildcard as the file contains the version, and we don't know it
run: npm install ${{steps.download.outputs.download-path}}/maxgraph-core*.tgz
- name: Build project
run: npm run build
run: npm run build -w projects/${{matrix.project}}
- name: Upload project archive
if: ${{ matrix.npm-package == 'release' }}
uses: actions/upload-artifact@v3
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,6 @@ dist
# IDE
.idea
*.iml

# Build directories
.parcel-cache
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ nvm use

If the Node version is not installed, `nvm` will state how to install the required version.

Install dependencies by running
```shell
npm install
```

### Available projects

Expand Down
Loading
Loading