Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds the argument --es6 in the command migration:create and seed:create #493

Closed
wants to merge 9 commits into from

Conversation

felpin
Copy link

@felpin felpin commented Jul 27, 2017

The purpose of the PR is to add the option --es6 to the command migration:create.

When executing migration:create --es6 it will use a skeleton in ES6 format with arrow functions.

This PR resolves issue #482, although it is not a breaking change required for major version. Maybe a future PR can change the default skeleton to be in ES6 format.

This PR may resolve issue #389 if it is a duplicate from #482.

OBS: When executing migration:create --es6 --coffee, the argument --es6 will be ignored. The reason is that the js file would be converted to a coffee file. 'Would' is the correct word here because js2coffee doesn't support ES6 yet (See issue)

This option will generate a skeleton file in es6 format.
Since there is a converter from js to coffee, it is assumed that a file would be generated in es6 and then converted to coffee.
So... When both args are used, the es6 is ignored.
@mention-bot
Copy link

@felpin, thanks for your PR! By analyzing the history of the files in this pull request, we identified @Americas to be a potential reviewer.

@felpin
Copy link
Author

felpin commented Jul 27, 2017

I've just realized that there is another skeleton for seed:create.

Well... I'll work on this to support --es6 argument as well.

@thebeachdev
Copy link

What does OBS stand for?

@felpin
Copy link
Author

felpin commented Jul 28, 2017

Observation

Where I live, it's a common word to use when you want to write something that the reader must pay attention. I didn't know it wasn't usual outside my country.

@thebeachdev
Copy link

thebeachdev commented Jul 28, 2017 via email

@felpin felpin changed the title Adds the argument --es6 in the command migration:create Adds the argument --es6 in the command migration:create and seed:create Aug 3, 2017
@felpin
Copy link
Author

felpin commented Aug 3, 2017

Does anyone know how to run CI again? The check has failed because
The job exceeded the maximum time limit for jobs, and has been terminated.

@sushantdhiman
Copy link
Contributor

Fixed in 733ced9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants