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

Migrate ui to Vite and npm #529

Merged
merged 1 commit into from
Jun 16, 2023
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
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ website: $(HUGO)
hugo serve --source=website/

ui:
yarn --cwd ui install
yarn --cwd ui build
npm --prefix=ui install
npm --prefix=ui run build

ui-dev:
yarn --cwd ui serve
npm --prefix=ui run dev

ui-client:
@rm -rf $(CURDIR)/ui/src/client
Expand Down
2 changes: 0 additions & 2 deletions ui/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ node_modules

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
Expand Down
31 changes: 5 additions & 26 deletions ui/README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,13 @@
# ui

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

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

### Compiles and minifies for production
```
yarn run build
```
npm install

### Run your tests
```
yarn run test
```
### Compiles and hot-reloads for development

### Lints and fixes files
```
yarn run lint
```
npm run dev

### Run your unit tests
```
yarn run test:unit
```
### Compiles and minifies for production

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
npm run build
9 changes: 5 additions & 4 deletions ui/public/index.html → ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="apple-touch-icon" sizes="180x180" href="<%= BASE_URL %>icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="<%= BASE_URL %>icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="<%= BASE_URL %>icons/favicon-16x16.png">
<link rel="manifest" href="<%= BASE_URL %>site.webmanifest">
<link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/icons/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<title>Enduro</title>
<script type="module" src="/src/main.ts"></script>
</head>
<body>
<noscript>
Expand Down
Loading