Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify Dashboard build by relying on NPM run-script #3828

Merged
merged 1 commit into from
Jan 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -62,18 +62,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