Skip to content

Commit 4b6aecd

Browse files
Makefile incoprorates tests and uglify-js now!
- Brought the tests I had written into the project's flow. - Run the uglify-js which really takes advantage of the --optimize flag. Cuts the StateMachine file size down dramatically.
1 parent 93f81eb commit 4b6aecd

11 files changed

+1365
-2972
lines changed

Makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
default: elm typescript
22

33
elm:
4-
/usr/local/bin/elm make lib/state-machine.elm --output=dist/elm/state-machine.js --optimize
4+
/usr/local/bin/elm make lib/StateMachine.elm --output=dist/elm/StateMachine.js --optimize
5+
node_modules/uglify-js/bin/uglifyjs dist/elm/StateMachine.js --compress 'pure_funcs="F2,F3,F4,F5,F6,F7,F8,F9,A2,A3,A4,A5,A6,A7,A8,A9",pure_getters,keep_fargs=false,unsafe_comps,unsafe' | node_modules/uglify-js/bin/uglifyjs --mangle --output=dist/elm/StateMachine.js
6+
elm-test
7+
8+
elm-debug:
9+
/usr/local/bin/elm make lib/StateMachine.elm --output=dist/elm/StateMachine.js
10+
elm-test
511

612
typescript:
713
npm install
@@ -12,6 +18,7 @@ graph:
1218
node_modules/madge/bin/cli.js --image graph.svg ./dist
1319

1420
test:
21+
elm-test
1522
apm test
1623

1724
count:

dist/elm/StateMachine.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)