manolo / gwt-polymer-elements

Polymer Web Components for GWT. A collection of Material Design widgets for desktop and mobile.
Apache License 2.0
157 stars 49 forks source link

Provide "docker run" command to avoid installing Node.js et al. locally #11

Closed tbroyer closed 9 years ago

tbroyer commented 9 years ago

If I get things right, that would mean provide a small script, let's call it generate.sh:

#!/bin/sh
npm install --global gulp bower
npm install
bower install --allow-root --force-latest
gulp gwt-api

and then launching (from the gwt-polymer-elements subfolder):

docker run -it --rm -v "$PWD":/usr/src/gwt-polymer -w /usr/src/gwt-polymer node:latest generate.sh
tbroyer commented 9 years ago

…of course, the downside is that it would generate everything as root, so you'd have to sudo chwon -R afterwards…

manolo commented 9 years ago

Well, the bower install would not be necessary to run as root, since we are installing dependencies in the src/main/resources/package_name/public folder so as it is included in the .jar and GWT compiler would copy in your final module output.

Saulis commented 9 years ago

Is still an issue with the current version we have?

tbroyer commented 9 years ago

My original report was about not even needing to install Node at all, but I think Node is unavoidable these days anyway, so that'll do it.