Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Upgrade to es6 #30

Merged
merged 7 commits into from
Jan 28, 2017
Merged

Conversation

montogeek
Copy link
Member

This PR upgrades code to ES6.
All tests pass.
Added EditorConfig and ESLint configs to make it easier for future contributions.

createWriteStream accepted a second parameter called options, I removed since it is not being used, although Node implementation uses it: https://nodejs.org/api/fs.html#fs_fs_createwritestream_path_options https://github.com/nodejs/node/blob/master/lib/fs.js#L1878

@TheLarkInn
Copy link
Member

Hey @montogeek would you mind syncing with master and then check tests again. Since we just dropped 0.12, I think its time to dust this off and get to work. webpack/webpack#3605

@montogeek
Copy link
Member Author

@TheLarkInn Synced, tests pass 💃

class MemoryFileSystemError extends Error {
constructor(err, path) {
super(err, path);
if (Error.captureStackTrace)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this always the case for node >= 4?

Copy link
Member

@SpaceK33z SpaceK33z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add an engine field to package.json (see webpack's package.json)?

Also, the CI fails now because it only runs on old Node.js versions. You can modify the .travis.yml file to only run for Node v4 and Node v6.

@montogeek
Copy link
Member Author

Sure!

@codecov-io
Copy link

codecov-io commented Jan 20, 2017

Current coverage is 96.07% (diff: 99.41%)

Merging #30 into master will increase coverage by 0.11%

@@             master        #30   diff @@
==========================================
  Files             3          3          
  Lines           272        280     +8   
  Methods          37         36     -1   
  Messages          0          0          
  Branches         62         62          
==========================================
+ Hits            261        269     +8   
  Misses           11         11          
  Partials          0          0          

Powered by Codecov. Last update 79a02a6...37acfee

- "0.12"
- "iojs"
- "4"
- "6"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also a node 7

{
"env": {
"node": true,
"es6": true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spacing incorrect in this line

@montogeek
Copy link
Member Author

Coveralls says that the coverage decreased, but those lines were already uncovered in master branch

Copy link
Member

@TheLarkInn TheLarkInn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now.

@TheLarkInn
Copy link
Member

Looks good to me @d3viant0ne will likely come back around to update the Travis file to conform to standards. Thank you very much!!

@TheLarkInn TheLarkInn merged commit 4d1a2f9 into webpack:master Jan 28, 2017
@montogeek
Copy link
Member Author

montogeek commented Jan 28, 2017

Thanks @TheLarkInn !!

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

Successfully merging this pull request may close these issues.

6 participants