This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #856 from zanata/frontend
Make frontend module more offline friendly
- Loading branch information
Showing
2 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
## This is a module to build zanata frontend javascript projects | ||
|
||
At the moment it only contains "user profile page" bundle. | ||
|
||
To build it, just run | ||
|
||
```mvn install``` | ||
|
||
It will build and deploy to local maven repository a jar file containing the javascript bundle. | ||
The jar file can be used directly under any servlet 3 compatible container and the bundle is accessible as static resources. | ||
See [Servlet 3 static resources](http://www.webjars.org/documentation#servlet3). | ||
|
||
The following Maven properties can be overridden on the command line with ```-Dkey=value```: | ||
|
||
``` | ||
<node.version>v0.12.2</node.version> | ||
<npm.version>2.7.6</npm.version> | ||
<node.install.directory>${download.dir}/zanata-frontend/node-${node.version}-npm-${npm.version}</node.install.directory> | ||
<npm.cli.script>${node.install.directory}/node/npm/bin/npm-cli.js</npm.cli.script> | ||
``` | ||
|
||
By default it will try to install npm modules from npm registry (default cache TTL is 10 seconds). | ||
If you activate profile ```-DnpmOffline``` the cache-min option will become 9999999 which means it will try to install npm modules from cache first. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters