0.2.2 • Published 6 years ago

es6-migrate v0.2.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

es6-migrate

JavaScript Style Guide Build Status

Convert AMD CoffeeScript to ES6 JavaScript. Tasks performed:

  • CoffeeScript => JavaScript
  • AMD Modules => ES6 Modules
  • Fix StandardJS violations
  • Remove original CoffeeScript files

Installation

$ npm install es6-migrate

Usage

es6Migrate <files> <options>

Options

NameExceptedDefaultDescription
files{Array}n/aArray of files to migrate.
extension{String}.jsExtension to use when writing converted files.

Examples

# Single file
es6Migrate ./src/scripts/index.coffee

# Directory of files
es6Migrate ./src/scripts/**/*.js.coffee

# Write 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.

# Run the tests
npm test

# Run the tests in interactive mode
npm test:watch