mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-27 04:35:16 +01:00
Merge pull request #2107 from wknet123/master-ui-aot
Update for ui image building.
This commit is contained in:
commit
be46a6b59f
@ -9,10 +9,12 @@ COPY src/ui_ng/yarn.lock /clarity-seed
|
||||
COPY make/dev/nodeclarity/angular-cli.json /clarity-seed
|
||||
COPY make/dev/nodeclarity/entrypoint.sh /
|
||||
|
||||
COPY src/ui_ng/tsconfig-aot.json /clarity-seed
|
||||
COPY src/ui_ng/rollup-config.js /clarity-seed
|
||||
|
||||
WORKDIR /clarity-seed
|
||||
|
||||
RUN npm __proxy__ install -g @angular/cli && \
|
||||
npm __proxy__ install && \
|
||||
chmod u+x /entrypoint.sh
|
||||
|
||||
VOLUME ["/clarity-seed", "/clarity-seed/dist"]
|
@ -25,6 +25,7 @@ sed -i 's/* as//g' src/app/shared/gauge/gauge.component.js
|
||||
./node_modules/.bin/rollup -c rollup-config.js
|
||||
|
||||
cp -r ./src/i18n/ dist/
|
||||
cp ./src/styles.css dist/
|
||||
|
||||
cp ./node_modules/clarity-icons/clarity-icons.min.css dist/
|
||||
cp ./node_modules/mutationobserver-shim/dist/mutationobserver.min.js dist/
|
||||
|
@ -15,13 +15,16 @@
|
||||
Loading...
|
||||
</div>
|
||||
</harbor-app>
|
||||
<script type="text/javascript" src="/static/inline.bundle.js"></script>
|
||||
<script type="text/javascript" src="/static/scripts.bundle.js">
|
||||
</script>
|
||||
<script type="text/javascript" src="/static/styles.bundle.js">
|
||||
</script>
|
||||
<script type="text/javascript" src="/static/vendor.bundle.js"></script>
|
||||
<script type="text/javascript" src="/static/main.bundle.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="/static/clarity-ui.min.css">
|
||||
<link rel="stylesheet" href="/static/clarity-icons.min.css">
|
||||
<link rel="stylesheet" href="/static/styles.css">
|
||||
|
||||
<script src="/static/mutationobserver.min.js"></script>
|
||||
<script src="/static/custom-elements.min.js"></script>
|
||||
<script src="/static/clarity-icons.min.js"></script>
|
||||
|
||||
<script src="/static/build.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -4,7 +4,7 @@ import uglify from 'rollup-plugin-uglify';
|
||||
|
||||
export default {
|
||||
entry: 'src/main-aot.js',
|
||||
dest: 'src/build.js', // output a single application bundle
|
||||
dest: 'dist/build.js', // output a single application bundle
|
||||
sourceMap: false,
|
||||
format: 'iife',
|
||||
onwarn: function(warning) {
|
||||
|
Loading…
Reference in New Issue
Block a user