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

Commit

Permalink
Move user-profile-page as frontend package
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Jul 28, 2015
1 parent 6989241 commit 724697d
Show file tree
Hide file tree
Showing 32 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions frontend/pom.xml
Expand Up @@ -19,9 +19,6 @@
<npm.cli.script>${node.install.directory}/node/npm/bin/npm-cli.js</npm.cli.script>
<!-- in seconds. 10 is the default value -->
<npm.cache.min>10</npm.cache.min>

<!-- ==== list of modules to build by npm and node ==== -->
<module.user-profile-page>user-profile-page</module.user-profile-page>
</properties>


Expand Down Expand Up @@ -75,13 +72,13 @@

<executions>
<execution>
<id>execute npm install for: ${module.user-profile-page}</id>
<id>execute npm install for: ${project.artifactId}</id>
<phase>process-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<workingDirectory>${web.target}/${module.user-profile-page}</workingDirectory>
<workingDirectory>${web.target}</workingDirectory>
<arguments>
<argument>${npm.cli.script}</argument>
<argument>install</argument>
Expand All @@ -91,13 +88,13 @@
</configuration>
</execution>
<execution>
<id>execute npm run build for: ${module.user-profile-page}</id>
<id>execute npm run build for: ${project.artifactId}</id>
<phase>compile</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<workingDirectory>${web.target}/${module.user-profile-page}</workingDirectory>
<workingDirectory>${web.target}</workingDirectory>
<arguments>
<argument>${npm.cli.script}</argument>
<argument>run</argument>
Expand Down
Expand Up @@ -11,7 +11,7 @@ module.exports = {
],
output: {
path: bundleDest,
filename: path.basename(__dirname) + '.bundle.min.js',
filename: 'frontend.bundle.min.js',
pathinfo: true
},
module: {
Expand Down
2 changes: 1 addition & 1 deletion zanata-war/src/main/webapp/profile/home.xhtml
Expand Up @@ -43,6 +43,6 @@
</div>

<script type="text/javascript"
src="#{request.contextPath}/user-profile-page.bundle.min.js"></script>
src="#{request.contextPath}/frontend.bundle.min.js"></script>
</ui:define>
</ui:composition>

0 comments on commit 724697d

Please sign in to comment.