Przeglądaj źródła

maint: reduce sdist file size

wangweimin 4 lat temu
rodzic
commit
4cba925c1e

+ 1 - 1
.github/workflows/release.yml

@@ -24,7 +24,7 @@ jobs:
         run: |
           npm install
           gulp
-          cp dist/pywebio.min.* ../pywebio/html/js
+          cp dist/pywebio.min.js ../pywebio/html/js
       - run: |
           pip3 install twine
           python3 setup.py sdist

+ 1 - 1
.github/workflows/sync_repo.yml

@@ -18,7 +18,7 @@ jobs:
         working-directory: ./webiojs
         run: |
           npm install
-          gulp
+          DEV=1 gulp
           cp dist/pywebio.min.* ../pywebio/html/js
       - name: Build doc demos
         run: |

+ 1 - 2
MANIFEST.in

@@ -1,4 +1,3 @@
 recursive-include demos *.py
-recursive-include docs *
-prune docs/_build
+prune docs
 graft pywebio/html

BIN
docs/assets/table_onclick.png


+ 1 - 1
webiojs/README.md

@@ -4,7 +4,7 @@
 
 ```bash
 npm install
-gulp
+DEV=1 gulp
 ```
 
 ## Use built js

+ 1 - 1
webiojs/gulpfile.js

@@ -25,6 +25,6 @@ gulp.task('default', function () {
         .pipe(buffer())
         .pipe(sourcemaps.init({loadMaps: true}))
         .pipe(uglify())
-        .pipe(sourcemaps.write('./'))
+        .pipe(sourcemaps.write('./',{addComment: !!process.env.DEV}))
         .pipe(gulp.dest('dist'));
 });