Restructured library.
This commit is contained in:
parent
1bc2deb4d3
commit
d1efeeffa6
2
.gitignore
vendored
2
.gitignore
vendored
@ -78,3 +78,5 @@ typings/
|
||||
|
||||
# own
|
||||
*.code-workspace
|
||||
.history/
|
||||
|
||||
|
@ -1,2 +1,8 @@
|
||||
# iwmlib
|
||||
|
||||
## Build
|
||||
|
||||
Be sure that Python 3 is installed (for building the 3rd party library) and that you have installed Rollupjs globally `npm i rollup -g`.
|
||||
|
||||
To build the two iwmlib files type `npm run build`. The files will be generated in the dist folder (iwmlib.js and iwmlib.pixi.js). If you want to watch the files for a continuously build type `npm run watch`.
|
||||
To build the 3rd party library type `npm run 3rdparty`. The file will be generated in the dist folder (iwmlib.3rdparty.js).
|
||||
|
7379
dist/iwmlib.js
vendored
Normal file
7379
dist/iwmlib.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
13971
dist/iwmlib.pixi.js
vendored
Normal file
13971
dist/iwmlib.pixi.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@ -7,26 +7,24 @@ Module docstring.
|
||||
import sys, os, optparse
|
||||
|
||||
items = (
|
||||
"jquery.js",
|
||||
# "jspolygon.js",
|
||||
"optimal-select.js",
|
||||
"hammer.js",
|
||||
"hammer.propagating.js",
|
||||
"d3/d3.js",
|
||||
"d3/d3-selection-multi.js",
|
||||
"highlight",
|
||||
"pixi/pixi.js",
|
||||
"pixi/lib/crn_decomp.js",
|
||||
"pixi/pixi-compressed-textures.js",
|
||||
"pixi/pixi-filters.js",
|
||||
"pixi/pixi-particles.js",
|
||||
"pixi/pixi-projection.js",
|
||||
"greensock/src/uncompressed",
|
||||
"greensock/src/uncompressed/easing",
|
||||
"greensock/src/uncompressed/plugins",
|
||||
"greensock/src/uncompressed/utils",
|
||||
"convertPointFromPageToNode.js"
|
||||
# "getRelativeURL.js"
|
||||
"./lib/3rdparty/jquery.js",
|
||||
"./lib/3rdparty/optimal-select.js",
|
||||
"./lib/3rdparty/hammer.js",
|
||||
"./lib/3rdparty/hammer.propagating.js",
|
||||
"./lib/3rdparty/d3/d3.js",
|
||||
"./lib/3rdparty/d3/d3-selection-multi.js",
|
||||
"./lib/3rdparty/highlight",
|
||||
"./lib/3rdparty/pixi/pixi.js",
|
||||
"./lib/3rdparty/pixi/lib/crn_decomp.js",
|
||||
"./lib/3rdparty/pixi/pixi-compressed-textures.js",
|
||||
"./lib/3rdparty/pixi/pixi-filters.js",
|
||||
"./lib/3rdparty/pixi/pixi-particles.js",
|
||||
"./lib/3rdparty/pixi/pixi-projection.js",
|
||||
"./lib/3rdparty/greensock/src/uncompressed",
|
||||
"./lib/3rdparty/greensock/src/uncompressed/easing",
|
||||
"./lib/3rdparty/greensock/src/uncompressed/plugins",
|
||||
"./lib/3rdparty/greensock/src/uncompressed/utils",
|
||||
"./lib/3rdparty/convertPointFromPageToNode.js"
|
||||
)
|
||||
|
||||
def process_command_line(argv):
|
||||
@ -64,7 +62,7 @@ def main(argv=None):
|
||||
return 0 # success
|
||||
|
||||
def run(settings, args):
|
||||
with open("all.js", 'w') as outfile:
|
||||
with open("./dist/iwmlib.3rdparty.js", 'w') as outfile:
|
||||
for item in items:
|
||||
if item.endswith(".js"):
|
||||
appendFile(outfile, item)
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user