Closed Bug 900160 Opened 12 years ago Closed 12 years ago

postinstall bower command does not work on windows.

Categories

(Webmaker Graveyard :: webmaker.org, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: michiel, Assigned: michiel)

Details

Attachments

(1 file)

The bower post install command, https://github.com/mozilla/webmaker.org/blob/master/package.json#L7, does not work on windows, as "bower" is not a real program. In order to make this work in windows, the command has to be a form of "bower.cmd install" so we might need to think hard here. This step has to work on every OS.
Assignee: nobody → ali
Status: NEW → ASSIGNED
Assignee: ali → nobody
Assignee: nobody → pomax
we can just require npm install -g bower, and then call "bower". This will solve the problem but will require README.md udpates everywhere.
package.json shows postinstall is already "bower install", closing as no longer valid.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
was totally looking at the wrong component. reopening.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
our README.md already tells people to install bower as global command, this patch brings package.json in line with that, and fixes the incompatibility with Windows at the same time.
Attachment #833208 - Flags: review?(dale)
Comment on attachment 833208 [details] [review] https://github.com/mozilla/webmaker.org/pull/503 Just remove bower and grunt-cli as dev deps, r+ with that
Attachment #833208 - Flags: review?(dale) → review+
Comment on attachment 833208 [details] [review] https://github.com/mozilla/webmaker.org/pull/503 updated and set to ?jbuck as requested on IRC
Attachment #833208 - Flags: review+ → review?(jon)
added bower back in, https://travis-ci.org/mozilla/webmaker.org/builds/14156200 fails without it.
Attachment #833208 - Flags: review?(jon) → review+
Commit pushed to master at https://github.com/mozilla/webmaker.org https://github.com/mozilla/webmaker.org/commit/a10be81f015474e3e0301be2b0e72eacde2f7dc5 Merge pull request #503 from Pomax/bug900160 made bower a dev dep. since we already require it globally
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: