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

Added grunt, tests, oss conventions #12

Merged
merged 4 commits into from
Feb 2, 2014
Merged

Added grunt, tests, oss conventions #12

merged 4 commits into from
Feb 2, 2014

Conversation

Bartvds
Copy link
Contributor

@Bartvds Bartvds commented Feb 1, 2014

Adding grunt and the tests was easy, UMD was a pain but I made it through 😤

See the commit log for what I did, use [Show Diff Stats] to see the files. It should be rebased on your latest edits,

I left a few test cases commented out.

Tests are very editable for the future. Also when it runs it writes the values to JSON in a tmp folder, you could then easily copy the dump file and use as a new fixture. Doing this also works well with Git, as you can review your fixture updates (in the diff).

I also applied some oss standards, like having code in /lib, /bin and /vendor. I also pimped the package.json a little.

Side note: I'm not a huge fan of UMD as main code myself, it needs so much boilerplate. You could look into using TypeScript or something like browserify to make a separate AMD build from simpler code (you have grunt now so is easy to do).

I also added JSHint.. 😈

added project files
* travis.yml
* .jshintrc
* Gruntfile.js

added grunt + basic plugins
* clean, jshint, mocha-test
* fancy reporters
* test helper & first suite

applied some oss conventions
* moved vendor vendor to /vendor
* moved own code to /lib
* moved cli binary to /bin
* modernized package.json
added runner
* added grunt-contrib-connect
* added grunt-mocha
* added vendor scripts
* added pass-amd.html

reworked paths
* work from baseUrl
npm prune ftw
added some failing tests (disabled)
added props to jshintrc
@Bartvds Bartvds mentioned this pull request Feb 1, 2014
lbovet added a commit that referenced this pull request Feb 2, 2014
@lbovet lbovet merged commit ab9b3ea into lbovet:master Feb 2, 2014
@lbovet
Copy link
Owner

lbovet commented Feb 2, 2014

Great work, Bart. Many thanks!

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.

None yet

2 participants