Skip to content

Commit

Permalink
[MERGE] branch 'vite-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
SilasPeters committed Jan 22, 2024
2 parents 1cd76e8 + 51e4394 commit 6452142
Show file tree
Hide file tree
Showing 39 changed files with 6,719 additions and 9,916 deletions.
34 changes: 0 additions & 34 deletions .babelrc

This file was deleted.

23 changes: 0 additions & 23 deletions .eslintrc

This file was deleted.

26 changes: 25 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
.env
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

.env
dist
6 changes: 0 additions & 6 deletions .jshintrc

This file was deleted.

1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To learn how to use react, all the documentation for that is on <https://faceboo

1. Install packages by running `npm install`;

1. Rename sample.env to .env;
1. Rename sample.env to .env; (fill in the contentful secrets by requesting them from ITcrowd)

1. Fill in the Contentful space_id and token;

Expand All @@ -26,22 +26,28 @@ Also check <http://localhost:3000/?internal=true> to see the quotes and board ad

Put the transpiled js, html and css files in the dist/ folder:

``` bash
```bash
npm run build
```

Simply copy over the dist/ folder to the server to deploy.

On Linux this should be done by using:

``` bash
```bash
scp -r dist/* svsticky.nl:/var/www/commit/radio.svsticky.nl
```

When on Windows you need to use an SFTP client to connect to:

``` bash
```bash
sftp://[email protected]
```

That's it. Happy hacking.

# New in version 2 (#Changelog)

- removed isomorpic fetch (for the built in fetch in modern javascript)
- removed all web pack configurations for vite as build tool. The webpack configuration did not support the latest Node.js version anymore.
- added a page named "Teams", where all members of the github `svsticky` are displayed.
18 changes: 18 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Radio</title>
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<script src="snow.js"></script>
</body>

</html>

Loading

0 comments on commit 6452142

Please sign in to comment.