0.0.3 • Published 9 years ago
gjslinter-fixer v0.0.3
gjslinter-fixer
Stream wrapper to fix source files according to output of gjslinter wrapper for Google Closure Linter.
Google Closure Linter has autofixer for Javascript files. This fixer is aimed to solve the problem for Coffeescript files.
Getting Started
Install the module with:
npm install gjslinter-fixer
Execute the fixer
var glob = require('glob-stream');
var gjslinter = require('gjslinter');
var gjslinterfixer = require('gjslinter-fixer');
glob.create('./build/**/*.js')
.pipe(gjslinter({
flags: ['--nojsdoc']
}))
.pipe(gjslinterfixer({map: [
from: /^.+build\/(.+).js$/
to: (_0, _1) -> "src/#{_1}.coffee"
]
}));