Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyodide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
pyodide
Commits
5e9393a8
Commit
5e9393a8
authored
Jun 19, 2018
by
Michael Droettboom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #37: Minify Javascript
parent
b1233f35
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
2 deletions
+8
-2
.circleci/config.yml
.circleci/config.yml
+1
-1
Makefile
Makefile
+2
-0
README.md
README.md
+4
-1
packager.sh
packager.sh
+1
-0
No files found.
.circleci/config.yml
View file @
5e9393a8
...
...
@@ -17,7 +17,7 @@ jobs:
# Set up the Debian testing repo, and then install g++ from there...
sudo bash -c "echo \"deb http://ftp.us.debian.org/debian testing main contrib non-free\" >> /etc/apt/sources.list"
sudo apt-get update
sudo apt-get install node-less cmake build-essential clang-format-6.0 flake8
sudo apt-get install node-less cmake build-essential clang-format-6.0 flake8
uglifyjs
sudo apt-get install -t testing g++-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-8
...
...
Makefile
View file @
5e9393a8
...
...
@@ -102,6 +102,8 @@ build/pyodide.asm.js: src/main.bc src/jsimport.bc src/jsproxy.bc src/js2python.b
build/pyodide.asm.data
:
root/.built
python2
$(FILEPACKAGER)
build/pyodide.asm.data
--preload
root/lib@lib
--js-output
=
build/pyodide.asm.data.js
uglifyjs build/pyodide.asm.data.js
-o
build/pyodide.asm.data.js
build/pyodide_dev.js
:
src/pyodide.js
cp
$<
$@
...
...
README.md
View file @
5e9393a8
...
...
@@ -16,7 +16,10 @@ These instructions were tested on Linux. OSX should be substantively the same.
Make sure the prerequisites for
[
emsdk
](
https://github.com/juj/emsdk
)
are installed.
Install
[
lessc
](
https://lesscss.org/
)
to compile less to css.
Additional build prerequisites are:
-
[
lessc
](
https://lesscss.org/
)
to compile less to css.
-
[
uglifyjs
](
https://github.com/mishoo/UglifyJS
)
to minify Javascript builds.
Type
`make`
.
...
...
packager.sh
View file @
5e9393a8
#!/bin/sh
python2 emsdk/emsdk/emscripten/tag-1.38.4/tools/file_packager.py build/
$1
.data
--preload
$2
--js-output
=
build/
$1
.js
--export-name
=
pyodide
--exclude
\*
.wasm.pre
--exclude
__pycache__
uglifyjs build/
$1
.js
-o
build/
$1
.js
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment