Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dcalhoun/es6-migrate
CLI to convert AMD CoffeeScript to ES6 Standard JavaScript.
https://github.com/dcalhoun/es6-migrate
amd coffeescript es6-javascript migration
Last synced: 21 days ago
JSON representation
CLI to convert AMD CoffeeScript to ES6 Standard JavaScript.
- Host: GitHub
- URL: https://github.com/dcalhoun/es6-migrate
- Owner: dcalhoun
- License: mit
- Created: 2016-11-20T00:08:48.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2022-02-22T21:37:14.000Z (over 2 years ago)
- Last Synced: 2024-10-04T19:19:15.376Z (about 1 month ago)
- Topics: amd, coffeescript, es6-javascript, migration
- Language: JavaScript
- Homepage:
- Size: 194 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# es6-migrate
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![Build Status](https://travis-ci.org/dcalhoun/es6-migrate.svg?branch=master)](https://travis-ci.org/dcalhoun/es6-migrate)Convert AMD CoffeeScript to ES6 JavaScript. Tasks performed:
- CoffeeScript => JavaScript
- AMD Modules => ES6 Modules
- Fix StandardJS violations
- Remove original CoffeeScript files## Installation
```bash
$ npm install es6-migrate
```## Usage
```bash
es6Migrate
```### Options
| Name | Excepted | Default | Description |
| ---- | -------- | ------- | ----------- |
| `files` | `{Array}` | n/a | Array of files to migrate. |
| `extension` | `{String}` | `.js` | Extension to use when writing converted files. |### Examples
```bash
# 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](http://facebook.github.io/jest/) is the test runner used for this project.```bash
# Run the tests
npm test# Run the tests in interactive mode
npm test:watch
```