Skip to content

Commit

Permalink
Fix build & add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
roligheten committed Apr 3, 2022
1 parent 4745fd8 commit 5cca19d
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# realtime-oslo
Small app to see real-time locations of Ruter buses / trams using data from public APIs provided by Entur.

See in action: https://roligheten.github.io/realtime-oslo/
22 changes: 22 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env sh

# abort on errors
set -e

# build
npm run build

# navigate into the build output directory
cd dist

# if you are deploying to a custom domain
# echo 'www.example.com' > CNAME

git init
git checkout -b master
git add -A
git commit -m 'deploy'

git push -f [email protected]:roligheten/realtime-oslo.git master:gh-pages

cd -
32 changes: 32 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
"@preact/preset-vite": "^2.1.5",
"@types/leaflet": "^1.7.9",
"@types/leaflet.locatecontrol": "^0.74.0",
"@types/node": "^17.0.23",
"@types/styled-components": "^5.1.24",
"@types/ws": "^8.5.3",
"typescript": "^4.5.4",
"vite": "^2.9.0"
}
Expand Down
7 changes: 4 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": false,
"skipLibCheck": false,
"skipLibCheck": true,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"strict": true,
Expand All @@ -16,7 +16,8 @@
"noEmit": true,
"jsx": "preserve",
"jsxFactory": "h",
"jsxFragmentFactory": "Fragment",
"jsxFragmentFactory": "Fragment"
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
}
}
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ import preact from "@preact/preset-vite";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [preact()],
base: "/realtime-oslo/",
});

0 comments on commit 5cca19d

Please sign in to comment.