Restructured library.

This commit is contained in:
Sebastian Kupke 2019-03-22 12:54:57 +01:00
parent 1bc2deb4d3
commit d1efeeffa6
1912 changed files with 21424 additions and 21383 deletions

2
.gitignore vendored
View File

@ -78,3 +78,5 @@ typings/
# own # own
*.code-workspace *.code-workspace
.history/

View File

@ -1,2 +1,8 @@
# iwmlib # 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).

7373
all.js

File diff suppressed because one or more lines are too long

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

File diff suppressed because it is too large Load Diff

View File

@ -7,26 +7,24 @@ Module docstring.
import sys, os, optparse import sys, os, optparse
items = ( items = (
"jquery.js", "./lib/3rdparty/jquery.js",
# "jspolygon.js", "./lib/3rdparty/optimal-select.js",
"optimal-select.js", "./lib/3rdparty/hammer.js",
"hammer.js", "./lib/3rdparty/hammer.propagating.js",
"hammer.propagating.js", "./lib/3rdparty/d3/d3.js",
"d3/d3.js", "./lib/3rdparty/d3/d3-selection-multi.js",
"d3/d3-selection-multi.js", "./lib/3rdparty/highlight",
"highlight", "./lib/3rdparty/pixi/pixi.js",
"pixi/pixi.js", "./lib/3rdparty/pixi/lib/crn_decomp.js",
"pixi/lib/crn_decomp.js", "./lib/3rdparty/pixi/pixi-compressed-textures.js",
"pixi/pixi-compressed-textures.js", "./lib/3rdparty/pixi/pixi-filters.js",
"pixi/pixi-filters.js", "./lib/3rdparty/pixi/pixi-particles.js",
"pixi/pixi-particles.js", "./lib/3rdparty/pixi/pixi-projection.js",
"pixi/pixi-projection.js", "./lib/3rdparty/greensock/src/uncompressed",
"greensock/src/uncompressed", "./lib/3rdparty/greensock/src/uncompressed/easing",
"greensock/src/uncompressed/easing", "./lib/3rdparty/greensock/src/uncompressed/plugins",
"greensock/src/uncompressed/plugins", "./lib/3rdparty/greensock/src/uncompressed/utils",
"greensock/src/uncompressed/utils", "./lib/3rdparty/convertPointFromPageToNode.js"
"convertPointFromPageToNode.js"
# "getRelativeURL.js"
) )
def process_command_line(argv): def process_command_line(argv):
@ -64,7 +62,7 @@ def main(argv=None):
return 0 # success return 0 # success
def run(settings, args): def run(settings, args):
with open("all.js", 'w') as outfile: with open("./dist/iwmlib.3rdparty.js", 'w') as outfile:
for item in items: for item in items:
if item.endswith(".js"): if item.endswith(".js"):
appendFile(outfile, item) appendFile(outfile, item)

View File

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