-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify to multi-platform distribution of the standard Vite demo
- Loading branch information
1 parent
627961a
commit c30c24b
Showing
21 changed files
with
7,277 additions
and
11,158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,34 @@ | ||
.vscode | ||
.DS_Store | ||
|
||
# Global Workspace | ||
.commoners | ||
|
||
# Python Service Output | ||
build | ||
|
||
# Custom Build Output | ||
.site | ||
|
||
# Dependencies | ||
node_modules | ||
|
||
# Build Locations | ||
ios | ||
android | ||
|
||
# Control Files | ||
# Logs | ||
logs | ||
*.log | ||
*.spec | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
# commoners-starter-kit | ||
A cross-platform app for testing the [`commoners`](commoners.dev) build tool. | ||
# Commoners Starter Kit | ||
A template application for developing a multi-platform application with [Commoners](https://commoners.dev). | ||
|
||
When new changes are pushed to `main`, this application will automatically be built and distributed in the following formats: | ||
This application is configure to automatically build and distribute in the following formats using GitHub Actions. | ||
- [x] Web — Progressive Web App (PWA) | ||
- [x] Mac | ||
- [x] Windows | ||
- [x] Linux | ||
- [ ] iOS | ||
- [ ] Android | ||
|
||
If you'd like to host the services remotely (e.g. on [Railway](https://railway.app/)), please consider the following: | ||
1. You will want to build services using the `commoners build --service tsNode` syntax | ||
2. The build artifacts can be launched using `commoners launch --service tsNode` | ||
3. Paste any generated URLs into the `commoners.config.ts` file in the services `publish.remote` field. | ||
- [ ] Android |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,7 @@ | ||
|
||
// import { defineConfig } from '@commoners/solidarity/config'; | ||
|
||
import { UserConfig } from '@commoners/solidarity'; | ||
const defineConfig = (o: UserConfig) => o | ||
|
||
export default defineConfig({ | ||
|
||
icon: './icon.png', | ||
|
||
electron: { | ||
window: { width: 1000 } | ||
}, | ||
|
||
services: { | ||
tsNode: { | ||
src:'./src/services/tsNode.ts', | ||
publish: { | ||
|
||
// NOTE: Replace with hosted URL | ||
remote: 'https://jsonplaceholder.typicode.com/todos/1' | ||
|
||
} | ||
} | ||
} | ||
}) | ||
export default { | ||
name: 'My App', | ||
icon: [ | ||
'./public/vite.png', | ||
'./public/vite.svg' | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,11 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Kanit"> | ||
<link rel="stylesheet" href="/src/frontend/styles.css" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<script type="module" src="/src/frontend/main.ts" defer></script> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | ||
</head> | ||
|
||
<body> | ||
<nav> | ||
<h1>Commoners Starter Kit</h1> | ||
<small>Build Solidarity</small> | ||
</nav> | ||
<main> | ||
<div id="console"> | ||
<div id="messages"></div> | ||
</div> | ||
</main> | ||
<footer> | ||
<small>Built with ✊ by Garrett Flynn</small> | ||
</footer> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.ts"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.