Adding a developer section to the README

34 views
Skip to first unread message

Stefan Sauer

unread,
Jul 28, 2017, 8:33:03 AM7/28/17
to js-code-prettifier
hi,

I wanted to take a look at some of the pending PRs. So I did these steps:

> cd code-prettify
> npm install
> grunt
Loading "compress.js" tasks...ERROR
>> SyntaxError: /home/ensonic/projects/lego/code-prettify/node_modules/grunt-contrib-compress/node_modules/pretty-bytes/index.js:2
>> const UNITS = ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
>> ^^^^^
>> Use of const in strict mode.
Warning: Task "compress" not found. Use --force to continue.

Aborted due to warnings.


DId I miss anything? 
The error above is a bit weird since the task is registered in the Gruntfile.js and also installed:
> ls -1 node_modules/
google-closure-compiler
grunt
grunt-contrib-clean
grunt-contrib-compress
grunt-contrib-copy
grunt-contrib-cssmin
grunt-contrib-uglify
grunt-preprocess
html-to-text
zombie

Once it works I can send a PR to add some info to the README. Also would it be interesting to go through the PRs and review/merge them? I could dedicate some time for this.

Stefan

Stefan Sauer

unread,
Jul 28, 2017, 2:51:17 PM7/28/17
to js-code-prettifier
I figured it out. My nodejs was too old. Therefore it tried to build grunt-contrib-compress from scratch and that failed.

Stefan
Reply all
Reply to author
Forward
0 new messages