Skip to content

Commit

Permalink
Simplify to multi-platform distribution of the standard Vite demo
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmflynn committed Dec 31, 2024
1 parent 627961a commit c30c24b
Show file tree
Hide file tree
Showing 21 changed files with 7,277 additions and 11,158 deletions.
Binary file modified .DS_Store
Binary file not shown.
34 changes: 23 additions & 11 deletions .gitignore
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?
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

13 changes: 4 additions & 9 deletions README.md
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
33 changes: 7 additions & 26 deletions commoners.config.ts
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'
]
}
Binary file removed icon.png
Binary file not shown.
22 changes: 4 additions & 18 deletions index.html
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>
Loading

0 comments on commit c30c24b

Please sign in to comment.