Skip to content

Commit

Permalink
chore: use npm workspaces (#45)
Browse files Browse the repository at this point in the history
All projects are now part of a npm workspace. This centralizes
dependencies management and it will help sharing common code in the
future.
All projects are now declare as type=module to enforce the usage of ESM
features.
  • Loading branch information
tbouffard committed Oct 13, 2023
1 parent ea98774 commit 95d86ba
Show file tree
Hide file tree
Showing 22 changed files with 8,484 additions and 13,810 deletions.
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

0 comments on commit 95d86ba

Please sign in to comment.