Removed dependency on closure library entirely
This commit is contained in:
parent
4e8cb2f1a7
commit
8358c33c1b
20
README
20
README
|
@ -1,18 +1,16 @@
|
|||
Follow the following to get asciiflow running locally.
|
||||
Follow the instructions to get asciiflow running locally.
|
||||
|
||||
Clone closure-library at the same level as asciiflow2:
|
||||
Compile the javascript:
|
||||
~/asciiflow2$ ./compile.sh
|
||||
|
||||
$git clone https://code.google.com/p/closure-library/
|
||||
|
||||
Update compile.sh script if neccessary and run it:
|
||||
$./compile.sh
|
||||
|
||||
This may require chmod a+x on some files.
|
||||
If you get a permissions error:
|
||||
~/asciiflow2$ chmod a+x closure-compiler.jar
|
||||
|
||||
Run a simple web server:
|
||||
$python -m SimpleHttpServer
|
||||
|
||||
Goto localhost:8000/root.html
|
||||
~/asciiflow2$python -m SimpleHttpServer
|
||||
|
||||
Goto: http://localhost:8000/root.html
|
||||
|
||||
When developing, use the Google JS linter, gjslint.
|
||||
|
||||
Adding new source files will require a change to compile.sh.
|
||||
|
|
12
compile.sh
12
compile.sh
|
@ -1 +1,11 @@
|
|||
../closure-library/closure/bin/build/closurebuilder.py --root=../closure-library/ --root=js-lib/ --namespace="ascii.launch" --compiler_flags="--warning_level=VERBOSE" --compiler_flags="--formatting=PRETTY_PRINT" --compiler_flags="--language_in=ECMASCRIPT5" --compiler_flags="--compilation_level=ADVANCED_OPTIMIZATIONS" --compiler_flags="--externs=jquery-1.9-externs.js" --output_mode=compiled --compiler_jar=closure-compiler.jar > js-compiled.js && cp js-compiled.js js-compiled.js~
|
||||
java -client -jar closure-compiler.jar \
|
||||
--js js-lib/common.js \
|
||||
--js js-lib/view.js \
|
||||
--js js-lib/state-controller.js \
|
||||
--js js-lib/controller.js \
|
||||
--js js-lib/state.js \
|
||||
--js js-lib/launch.js \
|
||||
--warning_level=VERBOSE --formatting=PRETTY_PRINT --language_in=ECMASCRIPT5 --compilation_level=ADVANCED_OPTIMIZATIONS \
|
||||
--externs=jquery-1.9-externs.js \
|
||||
> js-compiled.js \
|
||||
&& cp js-compiled.js js-compiled.js~
|
||||
|
|
Loading…
Reference in New Issue