Skip to content
This repository was archived by the owner on Nov 24, 2020. It is now read-only.

Conversation

@BeerOnBeard
Copy link

Replacing shell build script with cross-platform build script powered by packages.json scripts and npm-build-tools. There's a great article by Keith Cirkel on How to Use npm as a Build Tool if you're interested in more information.

@kiwi0fruit
Copy link

Huh. I went a simpler way:

-    "prepublish": "./src/build.sh"
+    "prepare": "bash ./src/build.sh || src\\build.sh"

Nothing more is needed assuming you installed git on Windows together with bash.

@kiwi0fruit
Copy link

kiwi0fruit commented Jul 5, 2018

One thing still bugs me as I had to add

cd node_modules/.bin
PATH="$PWD:$PATH"
cd ..
cd ..

to the build.sh script in order to make it work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants