Skip to content

Commit

Permalink
Add some build steps, mostly poc
Browse files Browse the repository at this point in the history
  • Loading branch information
robertherber committed Oct 17, 2023
1 parent 36d1129 commit 962bc5d
Show file tree
Hide file tree
Showing 49 changed files with 238 additions and 31 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
},
"ignorePatterns":[
"**/*.generated/**/*.ts",
"**/gql/**/*.ts"
"**/gql/**/*.ts",
"*.js"
],
"overrides": [
{
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
.env
.DS_Store

.turbo
.turbo
*.js
13 changes: 13 additions & 0 deletions apps/supplement-stack/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# supplement-stack

## 0.0.9

### Patch Changes

- Updated dependencies
- @zemble/bun@0.0.2
- @zemble/core@0.0.9
- [email protected]
- [email protected]
- [email protected]
- @zemble/graphql@0.0.13
- [email protected]

## 0.0.8

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/supplement-stack/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "supplement-stack",
"version": "0.0.8",
"version": "0.0.9",
"description": "",
"main": "app.ts",
"private": true,
Expand Down
14 changes: 14 additions & 0 deletions apps/todo-app-with-auth-backend/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# todo-app-with-auth-backend

## 0.0.9

### Patch Changes

- Updated dependencies
- @zemble/bun@0.0.2
- @zemble/core@0.0.9
- [email protected]
- [email protected]
- [email protected]
- @zemble/graphql@0.0.13
- @zemble/ignite@0.0.2
- [email protected]

## 0.0.8

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/todo-app-with-auth-backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "todo-app-with-auth-backend",
"version": "0.0.8",
"version": "0.0.9",
"description": "",
"private": true,
"main": "app.ts",
Expand Down
Binary file modified bun.lockb
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"generate-cms-json-schema": "typescript-json-schema ./packages/cms/tsconfig.json CmsConfigFile --include ./packages/cms/types.ts --out ./packages/cms/entities-json-schema.json --required --strictNullChecks --rejectDateType",
"fix-workspace-dependencies": "find . -type f -name 'package.json' -not -path './package.json' -not -path '*/node_modules/*' -exec perl -pi -e 's/\"workspace:[^\"]*\"/\"*\"/g' {} \\;",
"changeset-release": "bun run fix-workspace-dependencies && bunx changeset publish",
"reinstall": "rm -rf node_modules/ && rm bun.lockb && find . -name 'node_modules' -type d -prune -exec rm -rf '{}' + && bun install"
"reinstall": "rm -rf node_modules/ && rm bun.lockb && find . -name 'node_modules' -type d -prune -exec rm -rf '{}' + && bun install",
"clean": "git clean -Xdf"
},
"keywords": [],
"author": "",
Expand Down
7 changes: 7 additions & 0 deletions packages/apple-app-site-association/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# zemble-plugin-apple-app-site-association

## 0.0.7

### Patch Changes

- Updated dependencies
- @zemble/core@0.0.9

## 0.0.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/apple-app-site-association/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zemble-plugin-apple-app-site-association",
"version": "0.0.6",
"version": "0.0.7",
"description": "",
"private": true,
"main": "plugin.ts",
Expand Down
9 changes: 9 additions & 0 deletions packages/auth-anonymous/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# zemble-plugin-auth-anonymous

## 0.0.9

### Patch Changes

- Updated dependencies
- @zemble/core@0.0.9
- [email protected]
- @zemble/graphql@0.0.13

## 0.0.8

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/auth-anonymous/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zemble-plugin-auth-anonymous",
"version": "0.0.8",
"version": "0.0.9",
"description": "",
"main": "plugin.ts",
"scripts": {
Expand Down
9 changes: 9 additions & 0 deletions packages/auth-api-token/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# zemble-plugin-auth-api-token

## 0.0.11

### Patch Changes

- Updated dependencies
- @zemble/core@0.0.9
- [email protected]
- @zemble/graphql@0.0.13

## 0.0.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/auth-api-token/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zemble-plugin-auth-api-token",
"version": "0.0.10",
"version": "0.0.11",
"description": "",
"main": "plugin.ts",
"scripts": {
Expand Down
10 changes: 10 additions & 0 deletions packages/auth-otp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# zemble-plugin-auth-otp

## 0.0.11

### Patch Changes

- Updated dependencies
- @zemble/core@0.0.9
- [email protected]
- @zemble/graphql@0.0.13
- [email protected]

## 0.0.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/auth-otp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zemble-plugin-auth-otp",
"version": "0.0.10",
"version": "0.0.11",
"description": "",
"main": "plugin.ts",
"scripts": {
Expand Down
9 changes: 9 additions & 0 deletions packages/auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# zemble-plugin-auth

## 0.0.11

### Patch Changes

- Updated dependencies
- @zemble/bun@0.0.2
- @zemble/core@0.0.9
- @zemble/graphql@0.0.13

## 0.0.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zemble-plugin-auth",
"version": "0.0.10",
"version": "0.0.11",
"description": "",
"main": "plugin.ts",
"bin": {
Expand Down
9 changes: 9 additions & 0 deletions packages/bull/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# zemble-plugin-bull

## 0.0.11

### Patch Changes

- Updated dependencies
- @zemble/core@0.0.9
- [email protected]
- @zemble/graphql@0.0.13

## 0.0.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/bull/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zemble-plugin-bull",
"version": "0.0.10",
"version": "0.0.11",
"description": "",
"main": "plugin.ts",
"scripts": {
Expand Down
9 changes: 9 additions & 0 deletions packages/bun/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# @zemble/bun

## 0.0.2

### Patch Changes

- Break out routes, node, bun and ignite
- Updated dependencies
- @zemble/core@0.0.9
2 changes: 1 addition & 1 deletion packages/bun/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zemble/bun",
"version": "0.0.1",
"version": "0.0.2",
"description": "",
"main": "runner.ts",
"bin": {
Expand Down
12 changes: 12 additions & 0 deletions packages/cms-users/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# zemble-plugin-cms-users

## 0.0.9

### Patch Changes

- Updated dependencies
- @zemble/core@0.0.9
- [email protected]
- [email protected]
- [email protected]
- @zemble/graphql@0.0.13
- [email protected]

## 0.0.8

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cms-users/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zemble-plugin-cms-users",
"version": "0.0.8",
"version": "0.0.9",
"description": "",
"main": "plugin.ts",
"private": true,
Expand Down
9 changes: 9 additions & 0 deletions packages/cms/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# zemble-plugin-cms

## 0.0.9

### Patch Changes

- Updated dependencies
- @zemble/core@0.0.9
- [email protected]
- @zemble/graphql@0.0.13

## 0.0.8

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cms/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zemble-plugin-cms",
"version": "0.0.8",
"version": "0.0.9",
"description": "",
"main": "plugin.ts",
"private": true,
Expand Down
5 changes: 5 additions & 0 deletions packages/core/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"../../.eslintrc"
]
}
6 changes: 6 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @zemble/core

## 0.0.9

### Patch Changes

- Break out routes, node, bun and ignite

## 0.0.8

### Patch Changes
Expand Down
5 changes: 3 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "@zemble/core",
"version": "0.0.8",
"version": "0.0.9",
"description": "",
"main": "index.ts",
"scripts": {
"test": "bun test",
"lint": "eslint .",
"lint-quiet": "eslint . --quiet",
"dev": "bun server.ts",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"build": "tsc -p tsconfig.build.json"
},
"keywords": [],
"author": "",
Expand Down
8 changes: 8 additions & 0 deletions packages/core/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "NodeNext",
"target": "ESNext"
},
"exclude": [ "**/*.test.ts" ]
}
8 changes: 4 additions & 4 deletions packages/core/utils/readPackageJson.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import fs from 'fs'
import { join } from 'node:path'
import path from 'node:path'

export const readPackageJson = (path = process.cwd()) => {
export const readPackageJson = (p = process.cwd()) => {
try {
const packageJson = JSON.parse(fs.readFileSync(join(path, 'package.json'), 'utf8')) as { readonly name: string, readonly version: string }
const packageJson = JSON.parse(fs.readFileSync(path.join(p, 'package.json'), 'utf8')) as { readonly name: string, readonly version: string }

if (!packageJson.name) {
throw new Error(`[@zemble] Invalid package.json, missing "name", looked in: ${packageJson.name}`)
Expand All @@ -15,6 +15,6 @@ export const readPackageJson = (path = process.cwd()) => {

return packageJson
} catch (e) {
throw new Error(`[@zemble] Invalid package.json, expected at path: ${path}`)
throw new Error(`[@zemble] Invalid package.json, expected at path: ${p}`)
}
}
9 changes: 9 additions & 0 deletions packages/email-sendgrid/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# zemble-plugin-email-sendgrid

## 0.0.11

### Patch Changes

- Updated dependencies
- @zemble/core@0.0.9
- @zemble/graphql@0.0.13
- [email protected]

## 0.0.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/email-sendgrid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zemble-plugin-email-sendgrid",
"version": "0.0.10",
"version": "0.0.11",
"description": "",
"main": "plugin.ts",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions packages/graphql-yoga/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @zemble/graphql

## 0.0.13

### Patch Changes

- Updated dependencies
- @zemble/core@0.0.9

## 0.0.12

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-yoga/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zemble/graphql",
"version": "0.0.12",
"version": "0.0.13",
"description": "",
"main": "plugin.ts",
"scripts": {
Expand Down
Loading

0 comments on commit 962bc5d

Please sign in to comment.