Started to refactor JS Plugin class

Start with making plugin.js into a module, and re-implementing Plugin
using the class-based ES6 syntax, as it's a lot cleaner. Dispatch
events from setters instead of using Object.observe when changing
values that prompt external changes.

Vulcanize's whitespace stripper doesn't like the ES6 syntax though, so
disable that.

Also start implementing some tests using Mocha and should.js.

Finish refactoring JS Plugin code
This commit is contained in:
Oliver Hamlet
2015-12-23 16:11:34 +00:00
parent dd77312133
commit 56a7170d1c
12 changed files with 607 additions and 192 deletions
-1
View File
@@ -34,7 +34,6 @@ for (var i = 0; i < release_paths.length; ++i) {
child_process.execFileSync(vulcanize, [
'--inline',
'--strip',
'--config',
path.join(root_path, 'scripts', 'vulcanize.config.json'),
'-o',