Skip to content

Commit

Permalink
Merge pull request #18 from neuralinterfaces/v0.0.57
Browse files Browse the repository at this point in the history
0.0.57 Release
  • Loading branch information
garrettmflynn authored Dec 6, 2024
2 parents efd7d15 + 101152d commit 556e786
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Follow the prompts to select your favorite framework and features.
After running `npm install`, add Commoners as a dependency:

```bash
npm install -D [email protected].56
npm install -D [email protected].57
```

## Configuring the `package.json` File
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
"@commoners/bluetooth": "0.0.55",
"@commoners/custom-protocol": "0.0.55",
"@commoners/serial": "0.0.55",
"@commoners/solidarity": "0.0.55",
"@commoners/solidarity": "0.0.57",
"@commoners/splash-screen": "0.0.55",
"@commoners/testing": "0.0.55",
"@commoners/windows": "0.0.55",
"@vitest/coverage-v8": "^2.0.3",
"search-insights": "^2.15.0",
"commoners": "0.0.56",
"commoners": "0.0.57",
"vite": "^5.3.4",
"vitepress": "^1.3.1",
"vitest": "^2.0.3"
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "commoners",
"description": "Cross-Platform Development for the Rest of Us",
"version": "0.0.56",
"version": "0.0.57",
"type": "module",
"license": "MIT",
"engines": {
Expand All @@ -18,7 +18,7 @@
"watch": "vite build --watch"
},
"dependencies": {
"@commoners/solidarity": "0.0.55",
"@commoners/solidarity": "0.0.57",
"cac": "^6.7.14"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@commoners/solidarity",
"description": "Build solidarity across platform",
"version": "0.0.55",
"version": "0.0.57",
"type": "module",
"license": "MIT",
"exports": {
Expand Down
21 changes: 16 additions & 5 deletions packages/core/vite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,22 @@ export const resolveViteConfig = async (
})
}

// Resolve pages if they exist
const rollupOptions = Object.keys(pages).length ? { input: Object.entries(pages).reduce((acc, [name, filepath]) => {
acc[name] = getAbsolutePath(root, filepath)
return acc
}, {}) } : {}
const rollupOptions = {}

// Resolve pages
if (Object.keys(pages).length) {

const rootHTML = getAbsolutePath(root, 'index.html')
const hasIndexPage = Object.values(pages).find(page => getAbsolutePath(root, page) === rootHTML)

rollupOptions.input = Object.entries(pages).reduce((acc, [name, filepath]) => {
acc[name] = getAbsolutePath(root, filepath)
return acc
}, {})

// Must specify the root index page
if (!hasIndexPage) rollupOptions.input[crypto.randomUUID()] = rootHTML
}

// Define a default set of plugins and configuration options
const viteConfig = _vite.defineConfig({
Expand Down
2 changes: 1 addition & 1 deletion packages/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"postinstall": "pnpm exec playwright install chromium"
},
"dependencies": {
"@commoners/solidarity": "0.0.55",
"@commoners/solidarity": "0.0.57",
"playwright": "^1.48.0",
"vite": "^5.4.2",
"vitest": "^2.0.3"
Expand Down
1 change: 0 additions & 1 deletion tests/demo/commoners.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ const config = defineConfig({
name,

pages: {
main: './index.html',
services: join(root, "pages", "services", 'index.html'),
windows: join(root, "pages", "windows", 'index.html') ,
serial: join(root, "pages", "serial", 'index.html'),
Expand Down
2 changes: 1 addition & 1 deletion tests/demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@commoners/test-app",
"version": "0.0.55",
"version": "0.0.57",
"private": true,
"description": "A test app for the commoners library",
"repository": {
Expand Down

0 comments on commit 556e786

Please sign in to comment.