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

Use npm scripts #42

Merged
merged 5 commits into from
Oct 18, 2015
Merged

Use npm scripts #42

merged 5 commits into from
Oct 18, 2015

Conversation

SimenB
Copy link
Contributor

@SimenB SimenB commented Apr 5, 2015

Hey,

This is mostly making use of npm's script feature. It now lints before running tests, and you can uglify using npm run uglify. This should make the Makefile redundant, but I kept it in in case you prefer that. 😄 It also removes a dependency on a global uglifyjs.

I saw you also had indent-checking in JSHint. This isn't supported anymore (http://stackoverflow.com/a/23098280/1850276), so I added JSCS as a replacement for it.

@@ -0,0 +1,15 @@
{
//"validateIndentation": 2, index.js uses 2, and tests.js uses 4. https://github.com/jscs-dev/node-jscs/issues/1106
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know if you want to normalize your indentation. If you do, I'll be happy to give it a whack.

"files": [
"index.js",
"releases/"
],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is what files are included when doing npm install deep-diff. I don't know if releases/ needs to be there. If you npm install you can set a version, and you probably minify yourself.

Comparison: http://imgur.com/X754Cwp,GIS3QPq

flitbit pushed a commit that referenced this pull request Oct 18, 2015
Use npm scripts; good all-around cleanup.
@flitbit flitbit merged commit 25be3ea into flitbit:master Oct 18, 2015
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.

2 participants