Giter Site home page Giter Site logo

Comments (24)

NathanWalker avatar NathanWalker commented on May 11, 2024

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

from angulartics2.

JonnyBGod avatar JonnyBGod commented on May 11, 2024

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

from angulartics2.

NathanWalker avatar NathanWalker commented on May 11, 2024

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

from angulartics2.

NathanWalker avatar NathanWalker commented on May 11, 2024

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.

from angulartics2.

JonnyBGod avatar JonnyBGod commented on May 11, 2024

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

from angulartics2.

JonnyBGod avatar JonnyBGod commented on May 11, 2024

Files are still missing from latest build.

from angulartics2.

NathanWalker avatar NathanWalker commented on May 11, 2024

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

from angulartics2.

NathanWalker avatar NathanWalker commented on May 11, 2024

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?

from angulartics2.

JonnyBGod avatar JonnyBGod commented on May 11, 2024

npm run build is working locally

Release process should work with semantic-release in travis.

from angulartics2.

NathanWalker avatar NathanWalker commented on May 11, 2024

I think this: #19 will finally solve it.

from angulartics2.

JonnyBGod avatar JonnyBGod commented on May 11, 2024

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

from angulartics2.

NathanWalker avatar NathanWalker commented on May 11, 2024

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

from angulartics2.

JonnyBGod avatar JonnyBGod commented on May 11, 2024

Oh yes that should be it.

Thanks again.

from angulartics2.

NathanWalker avatar NathanWalker commented on May 11, 2024

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.

from angulartics2.

JonnyBGod avatar JonnyBGod commented on May 11, 2024

trying it.

from angulartics2.

NathanWalker avatar NathanWalker commented on May 11, 2024

Hooray!! it worked!

from angulartics2.

NathanWalker avatar NathanWalker commented on May 11, 2024

Well we both learned something very important 👍

from angulartics2.

JonnyBGod avatar JonnyBGod commented on May 11, 2024

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

from angulartics2.

NathanWalker avatar NathanWalker commented on May 11, 2024

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!

from angulartics2.

JonnyBGod avatar JonnyBGod commented on May 11, 2024

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 :)

from angulartics2.

NathanWalker avatar NathanWalker commented on May 11, 2024

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 👍

from angulartics2.

JonnyBGod avatar JonnyBGod commented on May 11, 2024

Added you as collaborator.

from angulartics2.

NathanWalker avatar NathanWalker commented on May 11, 2024

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

from angulartics2.

JonnyBGod avatar JonnyBGod commented on May 11, 2024

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

from angulartics2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.