Skip to content

Commit

Permalink
[tools] Move GCC step to a separate script
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyganch committed Nov 3, 2016
1 parent 5d16d46 commit c31d055
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"scripts": {
"autofix-tests": "bash ./scripts/build.sh && bash ./scripts/autofix-tests.sh",
"build": "bash ./scripts/build.sh",
"compile": "bash ./scripts/compile.sh",
"init": "bash ./scripts/init.sh",
"lint": "bash ./scripts/lint.sh",
"log": "bash ./scripts/log.sh",
Expand Down
1 change: 0 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@ done
echo '};' >> src/syntaxes.js

./node_modules/.bin/webpack --module-bind "json=json"
java -jar node_modules/google-closure-compiler/compiler.jar --compilation_level=SIMPLE --js_output_file=lib/gonzales.min.js lib/gonzales.js

git checkout -- src/syntaxes.js
3 changes: 3 additions & 0 deletions scripts/compile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

java -jar node_modules/google-closure-compiler/compiler.jar --compilation_level=SIMPLE --js_output_file=lib/gonzales.min.js lib/gonzales.js
1 change: 1 addition & 0 deletions scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
git config commit.template .gitmessage.txt

./scripts/build.sh
./scripts/compile.sh
1 change: 1 addition & 0 deletions scripts/prepublish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ EOIGNORE
print_npmignore > .npmignore

./scripts/build.sh
./scripts/compile.sh
2 changes: 2 additions & 0 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function test {

function run_all_tests {
./scripts/build.sh
./scripts/compile.sh

printf "\n\
---------------------\n\
Expand All @@ -34,6 +35,7 @@ printf "\n\

function run_syntax_tests {
./scripts/build.sh "$1"
./scripts/compile.sh

printf "\n\
----------------------\n\
Expand Down

0 comments on commit c31d055

Please sign in to comment.