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

standard #23

Merged
merged 4 commits into from
Jan 8, 2016
Merged

standard #23

merged 4 commits into from
Jan 8, 2016

Conversation

hackergrrl
Copy link
Contributor

ipscend is already using StandardJS -- this just adds it to npm test. It'd also work as a pre-commit hook though.

@hackergrrl
Copy link
Contributor Author

Shoot; pulled in something from another branch. Lemme revert it out of this PR.

@@ -4,7 +4,7 @@
"description": "Quick and simple deploy tool to host Native Web Applications and Static Web Pages in IPFS",
"bin": "bin.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "standard"
Copy link
Member

Choose a reason for hiding this comment

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

following the style of other js projects, we do "lint": "standard" and reserve the test keyword for tests.

for pre-commit hook, we use pre-commit and add to the package.json

pre-commit: [
  "lint",
  "test",  // <- if any
  "coverage"  // <- if any
]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done! I like keeping "lint" and "test" more explicitly divided.

Is there a style guide somewhere for JS IPFS projects?

daviddias added a commit that referenced this pull request Jan 8, 2016
@daviddias daviddias merged commit b06a9a2 into ipfs-shipyard:master Jan 8, 2016
@daviddias
Copy link
Member

Thank you @noffle :D

@RichardLitt is working on the js guidelines ipfs/community#92

@RichardLitt
Copy link
Contributor

@diasdavid we're all working on the js guidelines. :) I'm just putting it into a readme.

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.

3 participants