Skip to content

Commit

Permalink
add VueJS
Browse files Browse the repository at this point in the history
  • Loading branch information
nzin committed Aug 27, 2023
1 parent 5bd45d4 commit e004359
Show file tree
Hide file tree
Showing 14 changed files with 18,250 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
######################################
# Prepare npm_builder
######################################
FROM node:16 as npm_builder
WORKDIR /app
ADD . .
RUN make build_ui

######################################
# Prepare go_builder
######################################
Expand All @@ -14,6 +22,7 @@ RUN mkdir /app
WORKDIR /app

COPY --from=go_builder /app/goliac ./goliac
COPY --from=npm_builder /app/browser/goliac-ui/dist ./browser/goliac-ui/dist

RUN useradd --uid 1000 --gid 0 goliac && \
chown goliac:root /app && \
Expand Down
24 changes: 24 additions & 0 deletions browser/goliac-ui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# goliac-ui

## Project setup
```
yarn install
```

### Compiles and hot-reloads for development
```
yarn serve
```

### Compiles and minifies for production
```
yarn build
```

### Lints and fixes files
```
yarn lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
5 changes: 5 additions & 0 deletions browser/goliac-ui/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
19 changes: 19 additions & 0 deletions browser/goliac-ui/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "es5",
"module": "esnext",
"baseUrl": "./",
"moduleResolution": "node",
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
}
}
Loading

0 comments on commit e004359

Please sign in to comment.