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

Windows compatibility #6

Closed
ldstein opened this issue Dec 11, 2013 · 2 comments
Closed

Windows compatibility #6

ldstein opened this issue Dec 11, 2013 · 2 comments

Comments

@ldstein
Copy link

ldstein commented Dec 11, 2013

Hi,

I've been working on adding Windows compatiblity to Mosca which has Atoll as one of it's dependencies.

One blocker I'm facing is Atoll currently has an install script defined: "install": "make atoll" which doesn't run on Windows.

Since all the Makefile does is generates a minified version of Atoll.js, would it be possible to change:

  "scripts": {
    "install": "make atoll"
  },

to:

  "scripts": {
    "prepublish": "make atoll"
  },

This will include /dist/atoll.js in the release and remove the need for this compile step.

To quote the NPM Script docs:

"If you have to do other things before your package is used, in a way that is not dependent on the operating system or architecture of the target system, then use a prepublish script instead. This includes tasks such as:

  • Compile CoffeeScript source code into JavaScript.
  • Create minified versions of JavaScript source code.
  • Fetching remote resources that your package will use.

The advantage of doing these things at prepublish time instead of preinstall or install time is that they can be done once, in a single place, and thus greatly reduce complexity and variability. "

Kind Regards,

Leo

@nsfmc nsfmc closed this as completed in f14afdd Dec 11, 2013
@nsfmc
Copy link
Owner

nsfmc commented Dec 11, 2013

Hi Leo, as you can see, atoll is old enough so that the current prepublish vs install dogma is new to it. thanks so much for reporting and making it an easy change for me. please let me know if you have any other issues. sorry for any delays this may have caused you.

@ldstein
Copy link
Author

ldstein commented Dec 11, 2013

Happy to confirm v0.7.4 is now playing nicely on Windows.

Many thanks for the quick turnaround!

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

2 participants