Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Make install process Windows compatible #1333

Merged

Conversation

interactivellama
Copy link
Contributor

Move node_module archiving to Procfile tar command, so it only run on Heroku, and fixes #1331 for those that run on Windows or don't have tar installed. It also adds node before the bower command which makes it Windows compatible.

@@ -70,7 +70,7 @@
},
"scripts": {
"main": "devserver.js",
"postinstall": "./node_modules/bower/bin/bower install && tar -zcf dev/node_modules.tar.gz node_modules/;",
"postinstall": "./node_modules/bower/bin/bower install",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for it to work on windows this needs to be

"postinstall": "node ./node_modules/bower/bin/bower install",

Makes this so it only runs on Heroku and allows Windows peeps to call `bower install`
@interactivellama
Copy link
Contributor Author

Updated @vernak2539 . I'm sorry I didn't understand the comment.

@vernak2539
Copy link
Contributor

👍

@interactivellama interactivellama changed the title Move node_module archiving to Procfile Make install process Windows compatible Jun 2, 2015
web: tar -zcf dev/node_modules.tar.gz node_modules/ && grunt dist && node devserver.js
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tar step is to insure the node_modules in the dev environment deploy quickly to heroku correct? Or is there more going on here?

@interactivellama
Copy link
Contributor Author

The archive is created in order to allow TravisCI to not run npm install.

It's what Bootstrap does, except they use Python and AWS. I'm just using Heroku as my AWS, because...I can.

"Free Heroku" should really be listed as a dev perk on our Salesforce job posts.

@swilliamset
Copy link
Contributor

right on

swilliamset pushed a commit that referenced this pull request Jun 3, 2015
Make install process Windows compatible
@swilliamset swilliamset merged commit 89163f1 into ExactTarget:master Jun 3, 2015
@vernak2539
Copy link
Contributor

👍

@interactivellama interactivellama deleted the npm-module-archiving branch June 15, 2015 17:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants