gregersrygg / crapLoader

Asynchronous script loader/runner for ads, widgets and other third-party content
71 stars 10 forks source link

Add grunt build script #4

Closed sindresorhus closed 12 years ago

sindresorhus commented 12 years ago

npm install -g grunt to get grunt globally.

Then just grunt to lint and grunt release to also minify and add to the dist folder, usually done on a release, but the workflow is up to you. You can also use grunt watch to trigger a watch process that runs grunt lint every time the file is saved.

gregersrygg commented 12 years ago

Cool, thanks!

Is it OK to keep the license in crapLoader.js. I guess grunt adds it, but this script does some nasty shit and I don't want to be sued because someone copy-pasted the source without a license...

sindresorhus commented 12 years ago

Done ;)

Don't think you could be sued by that. Everything you put online without a license is automatically under your copyright. You are not liable for anyone using it without your permission. But IANAL.

gregersrygg commented 12 years ago

Thanks :)

sindresorhus commented 12 years ago

Just btw, grunt will fail now because of some linting stuff, you can either fix them, or change the jshint options, I would however recommend fixing them ;)