Skip to content

Commit

Permalink
Update to latest Commoners version
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmflynn committed Nov 15, 2024
1 parent 744bf19 commit 40fa673
Show file tree
Hide file tree
Showing 4 changed files with 16,500 additions and 34 deletions.
26 changes: 5 additions & 21 deletions commoners.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
// import { defineConfig } from '@commoners/solidarity'
// import * as bluetoothPlugin from '@commoners/bluetooth'

import * as bluetoothPlugin from '../commoners/packages/plugins/devices/ble/index'
import { python } from '@commoners/solidarity/services'
import * as bluetoothPlugin from '@commoners/bluetooth'

const defineConfig = (o) => o

const flaskService = {
name: 'flask',
name: "flask",
src: './src/services/python/main.py',
distpath: './build/python'
}
};

export default defineConfig({

Expand All @@ -22,19 +20,5 @@ export default defineConfig({
bluetooth: bluetoothPlugin,
},

services: {

// Packaged with pyinstaller
[flaskService.name]: {
description: 'A simple Flask server',
src: flaskService.src,
publish: {
build: `python -m PyInstaller --name ${flaskService.name} --onedir --clean ${flaskService.src} --distpath ${flaskService.distpath}`,
local: {
src: flaskService.name,
base: `${flaskService.distpath}/${flaskService.name}`,
}
}
}
}
services: python.services([ flaskService ])
})
Loading

0 comments on commit 40fa673

Please sign in to comment.