Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Oct 10, 2024
1 parent f40fef1 commit e10acce
Show file tree
Hide file tree
Showing 25 changed files with 82 additions and 38 deletions.
2 changes: 1 addition & 1 deletion app/Actions/Dashboard/Models/GetModels.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Model } from '@stacksjs/types'
import { Glob } from 'bun'
import { Action } from '@stacksjs/actions'
import { path } from '@stacksjs/path'
import { Glob } from 'bun'

export default new Action({
name: 'GetModels',
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion storage/framework/core/actions/src/build/cli.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { $ } from 'bun'
import { log } from '@stacksjs/cli'
import { buddyPath } from '@stacksjs/path'
import { $ } from 'bun'

log.info('Building CLI...')

Expand Down
2 changes: 1 addition & 1 deletion storage/framework/core/actions/src/build/core.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { $ } from 'bun'
import process from 'node:process'
import { dim, italic, log } from '@stacksjs/cli'
import { corePath } from '@stacksjs/path'
import { glob } from '@stacksjs/storage'
import { ExitCode } from '@stacksjs/types'
import { $ } from 'bun'

log.info('Building core packages')

Expand Down
2 changes: 1 addition & 1 deletion storage/framework/core/actions/src/build/server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { $ } from 'bun'
import { log } from '@stacksjs/cli'
import { frameworkPath } from '@stacksjs/path'
import { $ } from 'bun'

log.info('Building Server...')

Expand Down
2 changes: 1 addition & 1 deletion storage/framework/core/actions/src/check/ports.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { $ } from 'bun'
import process from 'node:process'
import { log } from '@stacksjs/logging'
import { findStacksProjects } from '@stacksjs/utils'
import { $ } from 'bun'

const projects = await findStacksProjects(undefined, { quiet: true })

Expand Down
2 changes: 1 addition & 1 deletion storage/framework/core/actions/src/upgrade/shell.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { $ } from 'bun'
import process from 'node:process'
import { italic, runCommand } from '@stacksjs/cli'
import { log } from '@stacksjs/logging'
import { path as p } from '@stacksjs/path'
import { writeFile } from '@stacksjs/storage'
import { ExitCode } from '@stacksjs/types'
import { $ } from 'bun'

const homePath = (await $`echo $HOME`.text()).trim()
const zshrcPath = p.join(homePath, '.zshrc')
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/core/actions/tests/ai.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, it, mock } from 'bun:test'
import { requestModelAccess } from '@stacksjs/ai'
import { ai } from '@stacksjs/config'
import { describe, expect, it, mock } from 'bun:test'

describe('requestModelAccess', () => {
it('should request access to AI models', async () => {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/core/ai/tests/ai.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { afterEach, beforeEach, describe, expect, it, mock, spyOn } from 'bun:test'
import {
BedrockClient,
CreateModelCustomizationJobCommand,
Expand All @@ -7,7 +8,6 @@ import {
import { log } from '@stacksjs/cli'
import { ai } from '@stacksjs/config'
import { mockClient } from 'aws-sdk-client-mock'
import { afterEach, beforeEach, describe, expect, it, mock, spyOn } from 'bun:test'
import {
createModelCustomizationJob,
getModelCustomizationJob,
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/core/alias/tests/alias.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, it } from 'bun:test'
import fs from 'node:fs'
import path from 'node:path'
import { describe, expect, it } from 'bun:test'
import { alias } from '../src/index'

describe('@stacksjs/alias', () => {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/core/buddy/bin/cli.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { $ } from 'bun'
import { existsSync, readdirSync, statSync } from 'node:fs'
import { join } from 'node:path'
import process from 'node:process'
import { $ } from 'bun'
import { cac } from 'cac'
import { version } from '../package.json'

Expand Down
2 changes: 1 addition & 1 deletion storage/framework/core/buddy/src/commands/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { CLI, DeployOptions } from '@stacksjs/types'
import { $ } from 'bun'
import process from 'node:process'
import { runAction } from '@stacksjs/actions'
import { intro, italic, log, outro, prompts, runCommand } from '@stacksjs/cli'
Expand All @@ -7,7 +8,6 @@ import { addDomain, hasUserDomainBeenAddedToCloud } from '@stacksjs/dns'
import { Action } from '@stacksjs/enums'
import { path as p } from '@stacksjs/path'
import { ExitCode } from '@stacksjs/types'
import { $ } from 'bun'

export function deploy(buddy: CLI): void {
const descriptions = {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/core/buddy/src/commands/list.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { CLI, CliOptions } from '@stacksjs/types'
import { $ } from 'bun'
import process from 'node:process'
import { log } from '@stacksjs/logging'
import { projectPath } from '@stacksjs/path'
import { $ } from 'bun'

export function list(buddy: CLI): void {
const descriptions = {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/core/buddy/src/commands/outdated.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { CLI, CliOptions } from '@stacksjs/types'
import { $ } from 'bun'
import process from 'node:process'
import { log } from '@stacksjs/logging'
import { projectPath } from '@stacksjs/path'
import { $ } from 'bun'

export function outdated(buddy: CLI): void {
const descriptions = {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/core/buddy/src/commands/ports.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { CLI, Ports, PortsOptions } from '@stacksjs/types'
import { $ } from 'bun'
import process from 'node:process'
import { intro, italic, outro } from '@stacksjs/cli'
import { ports as projectPorts } from '@stacksjs/config'
import { log } from '@stacksjs/logging'
import { findProjectPath, path as p, projectPath } from '@stacksjs/path'
import { ExitCode } from '@stacksjs/types'
import { findStacksProjects } from '@stacksjs/utils'
import { $ } from 'bun'

export function ports(buddy: CLI): void {
const descriptions = {
Expand Down
4 changes: 2 additions & 2 deletions storage/framework/core/cache/tests/DynamoDB.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { deleteStacksTable, launchServer } from '@stacksjs/testing'

import { afterAll, afterEach, beforeAll, describe, expect, it } from 'bun:test'

import { deleteStacksTable, launchServer } from '@stacksjs/testing'
import { dynamodb } from '../src/drivers/dynamodb'

beforeAll(async () => {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/core/cli/tests/cli.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { afterEach, describe, expect, it, mock, spyOn } from 'bun:test'
import { log } from '@stacksjs/logging'
import { ExitCode } from '@stacksjs/types'
import { afterEach, describe, expect, it, mock, spyOn } from 'bun:test'
import { CAC } from 'cac'
import {
buddyOptions,
Expand Down
23 changes: 18 additions & 5 deletions storage/framework/core/components/stepper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"version": "0.64.6",
"description": "A modern stepper component.",
"author": "Chris Breuer",
"contributors": ["Chris Breuer <[email protected]>"],
"contributors": [
"Chris Breuer <[email protected]>"
],
"license": "MIT",
"funding": "https://github.com/sponsors/chrisbbreuer",
"homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/components/stepper#readme",
Expand All @@ -16,8 +18,15 @@
"bugs": {
"url": "https://github.com/stacksjs/stacks/issues"
},
"keywords": ["steppers", "components", "library", "stacks"],
"sideEffects": ["**/*.css"],
"keywords": [
"steppers",
"components",
"library",
"stacks"
],
"sideEffects": [
"**/*.css"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand All @@ -27,7 +36,11 @@
"import": "./dist/*"
}
},
"files": ["README.md", "dist", "src"],
"files": [
"README.md",
"dist",
"src"
],
"scripts": {
"dev": "bunx --bun vite",
"build": "bunx --bun vite build --mode lib",
Expand All @@ -48,7 +61,7 @@
"@types/clean-css": "^4.2.11",
"@vue/tsconfig": "^0.5.1",
"clean-css": "^5.3.3",
"unocss": "0.63.4",
"unocss": "0.61.0",
"unplugin-icons": "^0.19.3"
}
}
2 changes: 1 addition & 1 deletion storage/framework/core/database/src/migrations.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { $ } from 'bun'
import { log } from '@stacksjs/cli'
import { database } from '@stacksjs/config'
import { type Err, err, handleError, type Ok, ok, type Result } from '@stacksjs/error-handling'
import { path } from '@stacksjs/path'
import { fs, globSync } from '@stacksjs/storage'
import { $ } from 'bun'
import { FileMigrationProvider, type MigrationResult, Migrator } from 'kysely'
import { generateMysqlMigration, generatePostgresMigration, generateSqliteMigration, resetMysqlDatabase, resetPostgresDatabase, resetSqliteDatabase } from './drivers'
import { db } from './utils'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { italic } from '@stacksjs/cli'
import { afterAll, beforeAll, describe, expect, it, mock, spyOn } from 'bun:test'
import { italic } from '@stacksjs/cli'
import fs from 'fs-extra'
import { ErrorHandler, handleError } from '../src/handler'
import { rescue } from '../src/utils'
Expand Down
12 changes: 9 additions & 3 deletions storage/framework/core/lint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"version": "0.64.6",
"description": "The Stacks way to lint.",
"author": "Chris Breuer",
"contributors": ["Chris Breuer <[email protected]>"],
"contributors": [
"Chris Breuer <[email protected]>"
],
"license": "MIT",
"funding": "https://github.com/sponsors/chrisbbreuer",
"homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/lint#readme",
Expand Down Expand Up @@ -37,7 +39,11 @@
},
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": ["README.md", "dist", "src"],
"files": [
"README.md",
"dist",
"src"
],
"scripts": {
"build": "bun build.ts",
"typecheck": "bun tsc --noEmit",
Expand All @@ -51,7 +57,7 @@
"@stacksjs/eslint-config": "^3.7.3-stacks-1.5",
"@stylistic/eslint-plugin": "^2.9.0",
"@typescript-eslint/eslint-plugin": "^8.8.1",
"@unocss/eslint-plugin": "0.63.4",
"@unocss/eslint-plugin": "0.61.0",
"@vitest/eslint-plugin": "^1.1.7",
"eslint": "^9.12.0",
"eslint-config-flat-gitignore": "^0.3.0",
Expand Down
19 changes: 15 additions & 4 deletions storage/framework/core/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"version": "0.64.6",
"description": "The Stacks framework types.",
"author": "Chris Breuer",
"contributors": ["Chris Breuer <[email protected]>"],
"contributors": [
"Chris Breuer <[email protected]>"
],
"license": "MIT",
"funding": "https://github.com/sponsors/chrisbbreuer",
"homepage": "https://github.com/stacksjs/stacks/tree/main/stacks/types#readme",
Expand All @@ -16,7 +18,12 @@
"bugs": {
"url": "https://github.com/stacksjs/stacks/issues"
},
"keywords": ["types", "stacks", "framework", "typescript"],
"keywords": [
"types",
"stacks",
"framework",
"typescript"
],
"exports": {
".": {
"bun": "./src/index.ts",
Expand All @@ -27,7 +34,11 @@
},
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": ["README.md", "dist", "src"],
"files": [
"README.md",
"dist",
"src"
],
"scripts": {
"build": "bun build.ts",
"typecheck": "bun tsc --noEmit",
Expand All @@ -52,7 +63,7 @@
"meilisearch": "^0.44.1",
"neverthrow": "^8.0.0",
"ora": "^8.1.0",
"unocss": "0.63.4",
"unocss": "0.61.0",
"unplugin-auto-import": "^0.18.3",
"unplugin-vue-components": "^0.27.4",
"vite": "^5.4.8",
Expand Down
22 changes: 18 additions & 4 deletions storage/framework/core/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"version": "0.64.6",
"description": "The Stacks UI engine.",
"author": "Chris Breuer",
"contributors": ["Chris Breuer <[email protected]>"],
"contributors": [
"Chris Breuer <[email protected]>"
],
"license": "MIT",
"funding": "https://github.com/sponsors/chrisbbreuer",
"homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/ui#readme",
Expand All @@ -16,7 +18,15 @@
"bugs": {
"url": "https://github.com/stacksjs/stacks/issues"
},
"keywords": ["css", "atomic", "ui", "engine", "styles", "stacks", "unocss"],
"keywords": [
"css",
"atomic",
"ui",
"engine",
"styles",
"stacks",
"unocss"
],
"sideEffects": false,
"exports": {
".": {
Expand All @@ -37,7 +47,11 @@
},
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": ["README.md", "dist", "src"],
"files": [
"README.md",
"dist",
"src"
],
"scripts": {
"build": "bun build.ts",
"typecheck": "bun tsc --noEmit",
Expand All @@ -56,7 +70,7 @@
"@unhead/vue": "^1.11.7",
"pinia": "^2.2.4",
"unhead": "^1.11.7",
"unocss": "0.63.4",
"unocss": "0.61.0",
"unocss-preset-primitives": "0.0.2-beta.1",
"vite-plugin-vue-layouts": "^0.11.0",
"vue": "^3.5.11",
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/orm/src/tests/Models.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { UserModel } from '../models/User'
import { refreshDatabase } from '@stacksjs/testing'
import { beforeEach, describe, expect, it } from 'bun:test'
import { refreshDatabase } from '@stacksjs/testing'
import User from '../models/User'

beforeEach(async () => {
Expand Down
4 changes: 2 additions & 2 deletions storage/framework/views/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@stacksjs/config": "workspace:*",
"@stacksjs/server": "workspace:*",
"@unhead/vue": "^1.11.7",
"@unocss/reset": "0.63.4",
"@unocss/reset": "0.61.0",
"@vueuse/core": "^11.1.0",
"@vueuse/head": "^2.0.0",
"nprogress": "^0.2.0",
Expand All @@ -37,7 +37,7 @@
"markdown-it-shikiji": "^0.10.2",
"rollup": "^4.24.0",
"shikiji": "^0.10.2",
"unocss": "0.63.4",
"unocss": "0.61.0",
"unplugin-auto-import": "^0.18.3",
"unplugin-vue-components": "^0.27.4",
"unplugin-vue-markdown": "^0.26.2",
Expand Down

0 comments on commit e10acce

Please sign in to comment.