Convert CoffeeScript to ES6 and fix StandardJS violations.
npm install es6-migrateConvert AMD CoffeeScript to ES6 JavaScript. Tasks performed:
- CoffeeScript => JavaScript
- AMD Modules => ES6 Modules
- Fix StandardJS violations
- Remove original CoffeeScript files
``bash`
$ npm install es6-migrate
bash
es6Migrate
`$3
| Name | Excepted | Default | Description |
| ---- | -------- | ------- | ----------- |
|
files | {Array} | n/a | Array of files to migrate. |
| extension | {String} | .js | Extension to use when writing converted files. |$3
`bash
Single file
es6Migrate ./src/scripts/index.coffeeDirectory of files
es6Migrate ./src/scripts/*/.js.coffeeWrite converted files with an
.es6.js file extension
es6Migrate ./src/scripts/*/.coffee --extension .es6.js
`Testing
Jest is the test runner used for this project.`bash
Run the tests
npm testRun the tests in interactive mode
npm test:watch
``