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
Repository structure #34
Comments
I removed I think linting in script is a good idea - it will prevent some code errors from being comitted - at the moment it only happens in code-climate and there is a file that turns off the rules I intentionally break. I don't like So I'm happy with any tool as long as it supports options from |
@epoberezkin Fair enough, not sure I agree. Normally I'd avoid checking in any compiled files though and I'd just publish them using the I'll look into a linting solution later for you. Shouldn't be difficult just to use |
Removing them completely is ok, I think. I didn't understand that it is what you suggest as they were still there. It will guarantee they are not old. It also makes tracking changes a bit easier too. I will do it. jshint is ok, definitely. |
It's ok, I don't think I had made that suggestion yet. But yeah, I normally just prepublish and run it on build, and keep compiled pieces out of the source code. |
@epoberezkin It looks like the current build in npm, 1.1.0, is broken, at least for use with webpack. I got errors like |
Can confirm. This is a result of, when you don't specify the files to publish, it uses |
Fixed with #37. |
thank you, I published 1.1.1 |
@blakeembrey should https://github.com/mulesoft-labs/osprey-method-handler/blob/master/package.json#L41 be changed to ^1.1.1? Or what is it better to do with that broken 1.1.0? |
@epoberezkin You can unpublish |
Thanks 👍 |
:) |
A couple of minor (subjective) things that would go a bit to helping out others (like me) get started committing.
bin/
toscripts/
, node modules normally reservebin/
for CLIs that the module exposespre-commit
node module and removebin/git-hook
- it would do very similar things in the end, except thepre-commit
module just works automatically (by default it'll run the tests, but you can change that if you only want to compile templates - I usually do both in my test script and I made that change with Latest schema v4 #33)package.json
"scripts"
- makes script discovery much easier and you can probably remove half the one liners you have inbin/
right now in favour ofnpm run bundle
,npm run pretest
, etc.karma
tests to thenpm test
script - I only just discovered that it's even an option and I've glanced over it a dozen timesI can make a PR with these options enabled/disabled - just let me know which you don't want.
The text was updated successfully, but these errors were encountered: