mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-18 12:51:27 +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/angular-cli.json /clarity-seed
|
||||||
COPY make/dev/nodeclarity/entrypoint.sh /
|
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
|
WORKDIR /clarity-seed
|
||||||
|
|
||||||
RUN npm __proxy__ install -g @angular/cli && \
|
RUN npm __proxy__ install -g @angular/cli && \
|
||||||
npm __proxy__ install && \
|
npm __proxy__ install && \
|
||||||
chmod u+x /entrypoint.sh
|
chmod u+x /entrypoint.sh
|
||||||
|
|
||||||
VOLUME ["/clarity-seed", "/clarity-seed/dist"]
|
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
|
./node_modules/.bin/rollup -c rollup-config.js
|
||||||
|
|
||||||
cp -r ./src/i18n/ dist/
|
cp -r ./src/i18n/ dist/
|
||||||
|
cp ./src/styles.css dist/
|
||||||
|
|
||||||
cp ./node_modules/clarity-icons/clarity-icons.min.css dist/
|
cp ./node_modules/clarity-icons/clarity-icons.min.css dist/
|
||||||
cp ./node_modules/mutationobserver-shim/dist/mutationobserver.min.js dist/
|
cp ./node_modules/mutationobserver-shim/dist/mutationobserver.min.js dist/
|
||||||
|
@ -15,13 +15,16 @@
|
|||||||
Loading...
|
Loading...
|
||||||
</div>
|
</div>
|
||||||
</harbor-app>
|
</harbor-app>
|
||||||
<script type="text/javascript" src="/static/inline.bundle.js"></script>
|
|
||||||
<script type="text/javascript" src="/static/scripts.bundle.js">
|
<link rel="stylesheet" href="/static/clarity-ui.min.css">
|
||||||
</script>
|
<link rel="stylesheet" href="/static/clarity-icons.min.css">
|
||||||
<script type="text/javascript" src="/static/styles.bundle.js">
|
<link rel="stylesheet" href="/static/styles.css">
|
||||||
</script>
|
|
||||||
<script type="text/javascript" src="/static/vendor.bundle.js"></script>
|
<script src="/static/mutationobserver.min.js"></script>
|
||||||
<script type="text/javascript" src="/static/main.bundle.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>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
@ -4,7 +4,7 @@ import uglify from 'rollup-plugin-uglify';
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: 'src/main-aot.js',
|
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,
|
sourceMap: false,
|
||||||
format: 'iife',
|
format: 'iife',
|
||||||
onwarn: function(warning) {
|
onwarn: function(warning) {
|
||||||
|
Loading…
Reference in New Issue
Block a user