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

Current status and features query #27

Open
cmandlbaur opened this issue Aug 22, 2019 · 7 comments
Open

Current status and features query #27

cmandlbaur opened this issue Aug 22, 2019 · 7 comments

Comments

@cmandlbaur
Copy link
Contributor

I have tried to setup the plugin and have run into a few issues.

  1. How do you update the version after initial install? I tried running install again and it doesn't make the change. I had to delete my node_modules and then it reinstalled.
  2. I can't seem to get specific development build versions to work. Not sure if I am configuring it correctly though.
  3. How do I setup the haxelibs to install to a local folder rather than globally?

I am running windows 10, node 12.

Thanks!

@peteshand
Copy link
Contributor

peteshand commented Aug 23, 2019

I'm seeing the same thing.

@peteshand
Copy link
Contributor

I think the issue may have something to do with npm not seeing any changes, because it's probably only looking at dependencies and not haxeDependencies.

But, I've got a solution for you @cmandlbaur.
Simply create a postinstall script within your package.json and then call into the haxe node_module and trigger a haxe npm install script.

"scripts": {
    "postinstall": "npm run installHaxeLibs",
    "installHaxeLibs": "cd ./node_modules/haxe/ && npm install"
},

@damoebius
Copy link
Collaborator

Hi guys, i'll have a look on it next week.

@cmandlbaur
Copy link
Contributor Author

Thanks!

@damoebius
Copy link
Collaborator

@cmandlbaur

  1. Never try to update, i think this feature isn't supported actually. Delete the node_modules folder is a workaround. I'll add this on my todo list.
  2. Could you be more precise ?
  3. I don't understand. Libs are located into your project node_modules folder no ?

@cmandlbaur
Copy link
Contributor Author

Sorry for the late reply!

  1. Is this something I can help with?
  2. We are currently using rc4, there was a nightly build version we wanted to use, but have since requested an additonal rc(rc5). In future it would handy to be able to target a specific development version. One of these: https://build.haxe.org/builds/haxe/windows/
  3. I clearly misunderstood. If they are available in the local node_modules, thats perfect.

@damoebius
Copy link
Collaborator

1 : Sure :) But i don't know how to do it. There's no update hook in NPM...
2 : Good idea
3 : 👍

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

No branches or pull requests

3 participants