angulartics / angulartics2

Vendor-agnostic analytics for Angular2 applications.
MIT License
1.01k stars 193 forks source link

npm - missing .js files #17

Closed NathanWalker closed 8 years ago

NathanWalker commented 8 years ago

Looks like with 1.0.3 just published, it's now missing the src/providers/*.js files... the .js.map files are there but no .js files resulting in errors. From a fresh install with latest: screen shot 2016-04-14 at 4 10 04 pm

NathanWalker commented 8 years ago

I believe the reason is because the .ts is missing in this: https://github.com/angulartics/angulartics2/blob/master/tsconfig.json#L22-L25

JonnyBGod commented 8 years ago

Yes just realised it. Not sure why but tsc -d is not creating the .js files. Tried your tip but no luck.

NathanWalker commented 8 years ago

That PR will fix it... definitely generates the .js for those files now for me locally.

NathanWalker commented 8 years ago

Btw, if you want to add me as collaborator here and on npm for this, I can help with this kind of stuff in the future.

JonnyBGod commented 8 years ago

Sure will ask for you to be added. Just need to ask angularitics guys. Thanks for your help.

JonnyBGod commented 8 years ago

Files are still missing from latest build.

NathanWalker commented 8 years ago

They are still not there, I see that with 1.0.4, very strange. Are they there when you build and before you publish?

NathanWalker commented 8 years ago

Basically:

npm run build

Look in src/providers, are the .js files there?

If yes, bump version, then:

npm publish

Should do it.

If there are not there, then there must be errors resulting when running npm run build that are preventing the provider files from compiling?

JonnyBGod commented 8 years ago

npm run build is working locally

Release process should work with semantic-release in travis.

NathanWalker commented 8 years ago

I think this: https://github.com/angulartics/angulartics2/pull/19 will finally solve it.

JonnyBGod commented 8 years ago

I am up for trying any idea at this point. :/

NathanWalker commented 8 years ago

Ok I didn't know you are relying on sematic release, you will need to change this then in package.json:

"semantic-release": "semantic-release pre && npm publish && semantic-release post"

I would have added that in my PR... anyway just change that ^ to this...

"semantic-release": "npm run build && semantic-release pre && npm publish && semantic-release post"

pretty sure that would do it

JonnyBGod commented 8 years ago

Oh yes that should be it.

Thanks again.

NathanWalker commented 8 years ago

Well wow still not it. Ok it takes a lot, and I mean a lot to make me quit, so we will solve this thing... maybe it needs this:

"semantic-release": "semantic-release pre && npm run build && npm publish && semantic-release post"

May require pre be first.

JonnyBGod commented 8 years ago

trying it.

NathanWalker commented 8 years ago

Hooray!! it worked!

NathanWalker commented 8 years ago

Well we both learned something very important 👍

JonnyBGod commented 8 years ago

Great!! Yes now I can fix two other libraries. Big thanks.

NathanWalker commented 8 years ago

I need to start using semantic-release myself but yeah I guess it's paramount that pre be the first out the gate to execute (which makes sense if you think about it)... anyhow, this looks much better now! And I love this lib, so def wanna make it as tight as possible!

JonnyBGod commented 8 years ago

Sorry about these bugs... I am very new to all this (angular2, observables, typescript...) learning all atm. I am bound to make these mistakes at first. Good to have some help :)

NathanWalker commented 8 years ago

N/p at all, I'm new to them as well and have been making mistakes myself in several places. The idiosyncrasies with publishing and developing the lib make for some serious confusion at times. We're getting there! ... together 👍

JonnyBGod commented 8 years ago

Added you as collaborator.

NathanWalker commented 8 years ago

Thx! I'll help tighten and review when I can and as always would put stuff up for review before making any changes, cheers!

JonnyBGod commented 8 years ago

Can you talk (https://gitter.im/angulartics/angulartics2) one minute? I would like to run an issue through you.