Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Use dignified.js #233

Closed
wants to merge 4 commits into from
Closed

Use dignified.js #233

wants to merge 4 commits into from

Conversation

dignifiedquire
Copy link
Contributor

DO NOT MERGE

This is only for discussions for now.

Implemented

  • stricter lint to enforce strict mode everywhere
  • prepare lint to be extracted into its own module, so no depdencies into nested eslintconfigs anymore
  • gitignore lib and dist
  • node build using babel in lib
  • browser build using webpack
  • reference npmcdn for use of script tags

cc @diasdavid @nginnever

Ref ipfs/community#111

@dignifiedquire
Copy link
Contributor Author

Started extraction into: https://github.com/dignifiedquire/dignified.js

@@ -82,7 +82,8 @@ function loadPaths (opts, file) {
// files inside symlinks and others
return
})
.filter((file) => !!file) // filter out null files
// filter out null files
.filter((f) => Boolean(f))
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh nice, didn't know about this wrapper. We can make it just .filter(Boolean), right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's how "type casting" in js is done, exists for all the types Number, Boolean, String.

Yes we can do.

@daviddias
Copy link
Contributor

I feel that we will need to improve the docs on 'why the heck, so many folders auto generated', but this is looking good :):)

Travis stopped being happy though. Just to make sure we should run our tests with the original src tree and the babel transpiled es5 compatible one too. We might catch some errors and avoid users some pain.

@dignifiedquire
Copy link
Contributor Author

Ref ipfs/aegir#1

@dignifiedquire dignifiedquire changed the title First draft of new guidelines Use dignified.js Mar 22, 2016
@daviddias
Copy link
Contributor

@dignifiedquire could you resubmit this PR to master? Thank you

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.

2 participants