Skip to content

Commit 8e1c71b

Browse files
committed
replace YUI compressor with uglify-js for building minified version (dev only)
1 parent 4d422c0 commit 8e1c71b

File tree

8 files changed

+7
-102
lines changed

8 files changed

+7
-102
lines changed

RELEASE_NOTES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
ADD: composable state machines
1212
ADD: better introspection
1313
ADD: undo/redo history
14+
ADD: use camel casing for callback methods (instead of all lower case)
1415

1516
Version 2.4.0 (ETA - December 2016)
1617
--------------------
1718

1819
TODO: resolve outstanding github issues and pull requests
19-
TODO: replace yui compressor with uglify
2020

2121
* added npm install instructions to readme
2222
* fix for javascript error when running in jasmine/node (issue #88)
@@ -25,6 +25,7 @@ Version 2.4.0 (ETA - December 2016)
2525
* fix FSM getting stuck into "*" state when using double wildcard (issue #64)
2626
* function (fsm.states) returning list of all available states in the machine would help automated testing (issue #54)
2727
* state machine hides callback exceptions (issue #62)
28+
* replaced (dev dependency) YUI compressor with uglify-js for building minified version
2829

2930
Version 2.3.5 (January 20 2014)
3031
-------------------------------

Rakefile

Lines changed: 0 additions & 8 deletions
This file was deleted.

bower.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
"test",
2525
"tests",
2626
"demo",
27-
"minifier",
2827
"index.html",
29-
"Rakefile",
3028
".gitignore"
3129
]
3230
}

minifier/LICENSE.TXT

Lines changed: 0 additions & 54 deletions
This file was deleted.

minifier/minifier.rb

Lines changed: 0 additions & 34 deletions
This file was deleted.

minifier/yuicompressor-2.4.6.jar

-833 KB
Binary file not shown.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@
1515
"main": "state-machine.js",
1616
"devDependencies": {
1717
"local-web-server": "~1.2.6",
18-
"qunit": "~0.9.1"
18+
"qunit": "~0.9.1",
19+
"uglify-js": "^2.7.4"
1920
},
2021
"version": "2.4.0",
2122
"scripts": {
2223
"start": "ws --rewrite '/test -> /test/'",
23-
"test": "node test/runner"
24+
"test": "node test/runner",
25+
"minify": "uglifyjs state-machine.js --output state-machine.min.js --compress --mangle --stats"
2426
}
2527
}

state-machine.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)