lazd / DOMly

The fast template system that creates and clones DOM nodes
MIT License
53 stars 9 forks source link

Grunt Bench does not work #17

Closed dwabyick closed 9 years ago

dwabyick commented 9 years ago

Did a fresh install of NPM/Bower. Ran it on OSX. Here was my results:

  DOMly$ grunt bench
Running "karma:firefox" (karma) task
INFO [karma]: Karma v0.12.17 server started at http://localhost:9876/
INFO [launcher]: Starting browser Firefox
WARN [watcher]: Pattern "/Users/dwabyick/github/DOMly/build/templates.js" does not match any file.
WARN [watcher]: Pattern "/Users/dwabyick/github/DOMly/build/hbs_templates.js" does not match any file.
WARN [watcher]: Pattern "/Users/dwabyick/github/DOMly/build/dot_templates.js" does not match any file.
WARN [watcher]: Pattern "/Users/dwabyick/github/DOMly/build/lodash_templates.js" does not match any file.
WARN [preprocess]: Can not load "html2js", it is not registered!
  Perhaps you are missing some plugin?
INFO [Firefox 30.0.0 (Mac OS X 10.9)]: Connected on socket iWIF1q_e_iekNzqSQx9T with id 4905721
Firefox 30.0.0 (Mac OS X 10.9) ERROR
  SyntaxError: syntax error
  at /Users/dwabyick/github/DOMly/bench/fixtures/hbs/Advanced.hbs:1
Firefox 30.0.0 (Mac OS X 10.9) ERROR
  SyntaxError: syntax error
  at /Users/dwabyick/github/DOMly/bench/fixtures/hbs/Complex.hbs:1
Firefox 30.0.0 (Mac OS X 10.9) ERROR
  SyntaxError: syntax error
  at /Users/dwabyick/github/DOMly/bench/fixtures/hbs/Person.hbs:1
Firefox 30.0.0 (Mac OS X 10.9) ERROR
  SyntaxError: syntax error
  at /Users/dwabyick/github/DOMly/bench/fixtures/hbs/Structure.hbs:1
Firefox 30.0.0 (Mac OS X 10.9) ERROR
  SyntaxError: syntax error
  at /Users/dwabyick/github/DOMly/bench/fixtures/hbs/TagList.hbs:1
Firefox 30.0.0 (Mac OS X 10.9) ERROR
  ReferenceError: templates is not defined
  at /Users/dwabyick/github/DOMly/bench/Advanced.js:29
Firefox 30.0.0 (Mac OS X 10.9) ERROR
  ReferenceError: __html__ is not defined
  at /Users/dwabyick/github/DOMly/bench/Markup.js:3
Firefox 30.0.0 (Mac OS X 10.9) ERROR
  ReferenceError: __html__ is not defined
  at /Users/dwabyick/github/DOMly/bench/Simple.js:5
dwabyick commented 9 years ago

Also tried running grunt first, as a guess of missing instructions. Different results.

 DOMly$ grunt
Running "clean:dist" (clean) task

Running "clean:results" (clean) task

Running "jshint:main" (jshint) task
>> 1 file lint free.

Running "jshint:tests" (jshint) task
>> 15 files lint free.

Running "jshint:gruntfile" (jshint) task
>> 1 file lint free.

Running "compile:templates" (compile) task
File "build/templates.js" created.

Running "handlebars:templates" (handlebars) task
>> 1 file created.

Running "dot:templates" (dot) task
File "build/dot_templates.js" created.

Running "jst:templates" (jst) task
File build/lodash_templates.js created.

Done, without errors.
  DOMly$ grunt bench
Running "karma:firefox" (karma) task
INFO [karma]: Karma v0.12.17 server started at http://localhost:9876/
INFO [launcher]: Starting browser Firefox
WARN [preprocess]: Can not load "html2js", it is not registered!
  Perhaps you are missing some plugin?
INFO [Firefox 30.0.0 (Mac OS X 10.9)]: Connected on socket v4mkdcpO3qekDDJURJjU with id 99145770
Firefox 30.0.0 (Mac OS X 10.9) ERROR
  SyntaxError: syntax error
  at /Users/dwabyick/github/DOMly/bench/fixtures/hbs/Advanced.hbs:1
Firefox 30.0.0 (Mac OS X 10.9) ERROR
  SyntaxError: syntax error
  at /Users/dwabyick/github/DOMly/bench/fixtures/hbs/Complex.hbs:1
Firefox 30.0.0 (Mac OS X 10.9) ERROR
  SyntaxError: syntax error
  at /Users/dwabyick/github/DOMly/bench/fixtures/hbs/Person.hbs:1
Firefox 30.0.0 (Mac OS X 10.9) ERROR
  SyntaxError: syntax error
  at /Users/dwabyick/github/DOMly/bench/fixtures/hbs/Structure.hbs:1
Firefox 30.0.0 (Mac OS X 10.9) ERROR
  SyntaxError: syntax error
  at /Users/dwabyick/github/DOMly/bench/fixtures/hbs/TagList.hbs:1
Firefox 30.0.0 (Mac OS X 10.9) ERROR
  ReferenceError: __html__ is not defined
  at /Users/dwabyick/github/DOMly/bench/Markup.js:3
Firefox 30.0.0 (Mac OS X 10.9) ERROR
  ReferenceError: __html__ is not defined
  at /Users/dwabyick/github/DOMly/bench/Simple.js:5
Warning: Task "karma:firefox" failed. Use --force to continue.
lazd commented 9 years ago

Looks like karma-html2js-preprocessor was missing from devDependencies.