Skip to content

Commit

Permalink
ci(): Node build entry point, remove node code from browser build (#8632
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ShaMan123 authored Feb 3, 2023
1 parent 8a8904e commit ec8f561
Show file tree
Hide file tree
Showing 27 changed files with 561 additions and 31,478 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
stats:
name: Build stats
runs-on: ubuntu-latest
env:
minified: dist/index.min.js
bundled: dist/index.mjs
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -36,7 +39,7 @@ jobs:
script: |
const fs = require('fs');
return JSON.stringify({
size: { fabric: { minified: fs.statSync('dist/fabric.min.js').size, bundled: fs.statSync('dist/fabric.js').size } }
size: { fabric: { minified: fs.statSync('${{ env.minified }}').size, bundled: fs.statSync('${{ env.bundled }}').size } }
});
- name: checkout src files
run: git checkout origin/master -- src index.ts
Expand All @@ -50,7 +53,7 @@ jobs:
script: |
const fs = require('fs');
return JSON.stringify({
size: { fabric: { minified: fs.statSync('dist/fabric.min.js').size, bundled: fs.statSync('dist/fabric.js').size } }
size: { fabric: { minified: fs.statSync('${{ env.minified }}').size, bundled: fs.statSync('${{ env.bundled }}').size } }
});
- name: process
uses: actions/github-script@v6
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## [next]

- feat(): Node entry point [#8632](https://github.com/fabricjs/fabric.js/pull/8632)
- chore(): Change import and export strategy [#8622](https://github.com/fabricjs/fabric.js/pull/8622)
- chore(): rename files to modern style [#8621](https://github.com/fabricjs/fabric.js/pull/8621)
- chore(): move and rename text & itext files and organize as folders, rename mixins [#8620](https://github.com/fabricjs/fabric.js/pull/8620)
Expand Down
Loading

0 comments on commit ec8f561

Please sign in to comment.