Skip to content

Commit cce72b9

Browse files
committed
chore: wip
1 parent 4941bc9 commit cce72b9

File tree

154 files changed

+1124
-930
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+1124
-930
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3838

3939
- name: Publish framework to npm
40-
run: pnpm --filter './.stacks' --filter './.stacks/core/**' --filter './.stacks/vscode' publish --access public --no-git-checks
40+
run: pnpm --filter './.stacks' --filter './.stacks/config' --filter './.stacks/core/**' --filter './.stacks/vscode' publish --access public --no-git-checks
4141
env:
4242
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4343

.npmrc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
11
ignore-workspace-root-check=true
22
shamefully-hoist=true
3-
auto-install-peers=true
4-
dedupe-peer-dependents=true
5-
use-lockfile-v6=true
6-
save-workspace-protocol=rolling
7-
resolve-peers-from-workspace-root=true

.stacks/config/build.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ export default defineBuildConfig({
77
declaration: true,
88
clean: true,
99
externals: [
10+
'@stacksjs/path',
11+
'@rollup/pluginutils',
12+
'@stacksjs/utils',
13+
'vue',
14+
'@mdit-vue/types',
15+
'@mdit-vue/plugin-component',
16+
'@mdit-vue/plugin-frontmatter',
17+
'@types/markdown-it-link-attributes',
1018
'@stacksjs/utils',
1119
'@stacksjs/path',
1220
'@stacksjs/types',

.stacks/config/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@
4242
"@stacksjs/utils": "workspace:*"
4343
},
4444
"devDependencies": {
45-
"@stacksjs/testing": "workspace:*",
46-
"mkdist": "^1.1.2",
47-
"typescript": "^5.0.2",
48-
"unbuild": "^1.1.2"
45+
"@stacksjs/development": "workspace:*"
4946
}
5047
}

.stacks/core/actions/build.config.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { defineBuildConfig } from 'unbuild'
2+
3+
export default defineBuildConfig({
4+
entries: [
5+
{
6+
builder: 'mkdist',
7+
input: './src/',
8+
outDir: './dist/',
9+
},
10+
],
11+
12+
declaration: true,
13+
})

.stacks/core/actions/package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
"README.md"
4040
],
4141
"scripts": {
42-
"build": "mkdist -d",
43-
"dev": "mkdist -d",
42+
"build": "unbuild",
43+
"dev": "unbuild --stub",
4444
"prepublishOnly": "pnpm run build",
4545
"typecheck": "tsc --noEmit"
4646
},
@@ -63,8 +63,6 @@
6363
"esno": "^0.16.3"
6464
},
6565
"devDependencies": {
66-
"@stacksjs/testing": "workspace:*",
67-
"mkdist": "^1.1.2",
68-
"typescript": "^5.0.2"
66+
"@stacksjs/development": "workspace:*"
6967
}
7068
}

.stacks/core/actions/src/build/core.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ import { frameworkPath } from '@stacksjs/path'
22
import { runCommands } from '@stacksjs/cli'
33

44
await runCommands([
5-
'pnpm --filter ./core/** --filter=!./core/config --filter=!./core/x-ray --filter=!./core/buddy build', // command to build the core packages, excluding the config & x-ray package
6-
'pnpm --filter ./core/config build', // command to build the config package
5+
'pnpm --filter ./core/** --filter=!./config --filter=!./core/x-ray --filter=!./core/buddy build', // command to build the core packages, excluding the config & x-ray package
6+
'pnpm --filter ./config build', // command to build the config package
77
], { verbose: true, cwd: frameworkPath(), shell: true })

.stacks/core/actions/src/generate/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { Action, NpmScript } from '@stacksjs/types'
44
import type { GeneratorOptions } from '@stacksjs/types'
55
import { runNpmScript } from '@stacksjs/utils'
66
import { runCommand } from '@stacksjs/cli'
7-
import { database } from '@stacksjs/config'
87
import { frameworkPath } from '@stacksjs/path'
8+
import { database } from '../../../../config/src'
99
import { runAction } from '../helpers'
1010

1111
export async function invoke(options?: GeneratorOptions) {

.stacks/core/actions/src/update.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { intro, log, outro, prompts, runCommand, spawn } from '@stacksjs/cli'
22
import storage from '@stacksjs/storage'
3-
import { loop } from '@stacksjs/utils'
4-
import { determineDebugMode } from '@stacksjs/config'
3+
import { determineDebugMode, loop } from '@stacksjs/utils'
54
import { frameworkPath, projectPath } from '@stacksjs/path'
65
import type { UpdateOptions } from '@stacksjs/types'
76
import { ExitCode, NpmScript } from '@stacksjs/types'

.stacks/core/ai/build.config.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { defineBuildConfig } from 'unbuild'
2+
3+
export default defineBuildConfig({
4+
entries: [
5+
{
6+
builder: 'mkdist',
7+
input: './src/',
8+
outDir: './dist/',
9+
},
10+
],
11+
12+
declaration: true,
13+
})

0 commit comments

Comments
 (0)