Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Make frontend module more offline friendly #856

Merged
merged 5 commits into from
Jun 12, 2015
Merged

Conversation

huangp
Copy link
Collaborator

@huangp huangp commented Jun 9, 2015

It will install node and npm into $user.home/Downloads.
It will also try to use npm cache as much as possible.

@review-ninja
Copy link

ReviewNinja

@alex-sl-eng alex-sl-eng self-assigned this Jun 9, 2015
@alex-sl-eng
Copy link
Member

Are we caching the npm modules as well?

@@ -17,7 +17,7 @@
<web.target>${project.build.directory}/web</web.target>
<bundle.output>${project.build.directory}/build</bundle.output>
<bundle.dest>${bundle.output}/META-INF/resources</bundle.dest>
<node.install.directory>${project.build.directory}</node.install.directory>
<node.install.directory>${download.dir}/zanata-frontend/node-${node.version}-npm-${npm.version}</node.install.directory>
Copy link
Contributor

Choose a reason for hiding this comment

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

So, it should be possible for the developer to override this with -Dnode.install.directory? If so, good, but perhaps it should be documented in a readme somewhere (since it is taking a minor liberty with the dev's file system).

@huangp
Copy link
Collaborator Author

huangp commented Jun 9, 2015

@aeng yes. The cache option is to cache npm modules.

@@ -125,4 +129,18 @@
</plugins>
</build>

<profiles>
<profile>
<id>npm offline</id>
Copy link
Contributor

Choose a reason for hiding this comment

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

I would suggest npmOffline, just for consistency.

@seanf
Copy link
Contributor

seanf commented Jun 9, 2015

👍

@djansen-redhat
Copy link
Contributor

✅ Tested, looks fine to me.

huangp pushed a commit that referenced this pull request Jun 12, 2015
Make frontend module more offline friendly
@huangp huangp merged commit 34954ff into integration/master Jun 12, 2015
@huangp huangp deleted the frontend branch June 12, 2015 07:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
5 participants