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 website to vite and vue 3 #26

Merged
merged 2 commits into from
Nov 1, 2024
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
5 changes: 5 additions & 0 deletions website/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[*.{js,jsx,ts,tsx,vue}]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true
10 changes: 10 additions & 0 deletions website/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
],
}
3 changes: 0 additions & 3 deletions website/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
node_modules
/dist


# local env files
.env.local
.env.*.local
env
bin

# Log files
npm-debug.log*
Expand Down
26 changes: 6 additions & 20 deletions website/README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,17 @@
# website

## Project setup
The website for truncated cube lamp.
Built using node 20.

For node>16 use:

```bash
export NODE_OPTIONS=--openssl-legacy-provider
```

Then use:
Run the site with:

```bash
npm install
npm run serve
npm run build
npm run package
npm run lint
npm run dev
```

### Customize configuration

See [Configuration Reference](https://cli.vuejs.org/config/).

## Deploying to other systems

It might be useful to build on one system and compile on another, after building:
Build a bundle with:

```bash
rsync dist/ user@remote:~/truncated-cube-lamp/website/dist --recursive --delete
npm run build
```
5 changes: 0 additions & 5 deletions website/babel.config.js

This file was deleted.

20 changes: 20 additions & 0 deletions website/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Truncated Cube Lamp</title>
</head>

<body>
<noscript>
<strong>Truncated Cube Lamp doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>

<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>

</html>
20 changes: 20 additions & 0 deletions website/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"allowJs": true,
"target": "es5",
"module": "esnext",
"baseUrl": "./",
"moduleResolution": "bundler",
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
}
}
Loading
Loading