Skip to content

Commit

Permalink
Migrate website to vite and vue 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Mercotui committed Oct 25, 2024
1 parent cf7512c commit 7dfd293
Show file tree
Hide file tree
Showing 25 changed files with 3,538 additions and 27,444 deletions.
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
13 changes: 13 additions & 0 deletions website/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
root: true,
env: {
node: true,
},
globals: {
definePage: "readonly",
},
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

0 comments on commit 7dfd293

Please sign in to comment.