Skip to content

Commit

Permalink
Simplify Dashboard build by relying on NPM run-script (#3828)
Browse files Browse the repository at this point in the history
Signed-off-by: Arnaud Kervern <[email protected]>
  • Loading branch information
akervern authored and benoitf committed Jan 20, 2017
1 parent 47ed4a8 commit 4619ccc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
7 changes: 7 additions & 0 deletions dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"babel-loader": "^6.2.1",
"babel-polyfill": "^6.3.14",
"babel-preset-es2015": "^6.3.13",
"bower": "^1.8.0",
"browser-sync": "~2.9.2",
"browser-sync-spa": "~1.0.2",
"chalk": "~1.1.1",
Expand Down Expand Up @@ -66,5 +67,11 @@
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"postinstall": "npm run bower && npm run typings && npm run build",
"bower": "bower update",
"typings": "typings install",
"build": "gulp build"
}
}
12 changes: 0 additions & 12 deletions dashboard/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,6 @@
<exec dir="${basedir}" executable="npm" failonerror="true">
<arg value="install" />
</exec>
<!-- Download Typings dependencies -->
<exec dir="${basedir}" executable="typings" failonerror="true">
<arg value="install" />
</exec>
<!-- Download Bower dependencies -->
<exec dir="${basedir}" executable="bower" failonerror="true">
<arg value="install" />
</exec>
<!-- Build the application -->
<exec dir="${basedir}" executable="gulp" failonerror="true">
<arg value="build" />
</exec>
<!-- Change base HREF of the application that will be hosted on /dashboard -->
<replace file="${basedir}/dist/index.html">
<replacetoken><![CDATA[<base href="/">]]></replacetoken>
Expand Down

0 comments on commit 4619ccc

Please sign in to comment.