Simplify Dashboard build by relying on NPM run-script (#3828)
Signed-off-by: Arnaud Kervern <akervern@nuxeo.com>6.19.x
parent
47ed4a85dc
commit
4619ccc055
|
|
@ -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",
|
||||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue