Skip to content

Commit 90c76a3

Browse files
committed
chore: wip
1 parent 10fa860 commit 90c76a3

File tree

5 files changed

+160
-35
lines changed

5 files changed

+160
-35
lines changed

bun.lockb

19.8 KB
Binary file not shown.

storage/framework/core/storage/build.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,6 @@ const result = await Bun.build({
1010
outdir: './dist',
1111
format: 'esm',
1212
target: 'bun',
13-
sourcemap: 'linked',
14-
minify: true,
15-
16-
external: [
17-
'@stacksjs/cli',
18-
'@stacksjs/config',
19-
'@stacksjs/env',
20-
'@stacksjs/error-handling',
21-
'@stacksjs/types',
22-
'@stacksjs/strings',
23-
'@stacksjs/logging',
24-
'@stacksjs/path',
25-
'@stacksjs/error-handling',
26-
'@stacksjs/whois',
27-
'@stacksjs/arrays',
28-
'bun',
29-
],
3013
plugins: [
3114
dts({
3215
root: './src',

storage/framework/core/storage/package.json

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"version": "0.65.1",
55
"description": "The Stacks file system.",
66
"author": "Chris Breuer",
7-
"contributors": ["Chris Breuer <chris@stacksjs.org>"],
7+
"contributors": [
8+
"Chris Breuer <chris@stacksjs.org>"
9+
],
810
"license": "MIT",
911
"funding": "https://github.com/sponsors/chrisbbreuer",
1012
"homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/storage#readme",
@@ -29,16 +31,17 @@
2931
"stacks"
3032
],
3133
".": {
32-
"bun": "./src/index.ts",
3334
"import": "./dist/index.js"
3435
},
3536
"./*": {
36-
"bun": "./src/*",
3737
"import": "./dist/*"
3838
},
3939
"module": "dist/index.js",
4040
"types": "dist/index.d.ts",
41-
"files": ["README.md", "dist", "src"],
41+
"files": [
42+
"README.md",
43+
"dist"
44+
],
4245
"scripts": {
4346
"build": "bun build.ts",
4447
"typecheck": "bun tsc --noEmit",
@@ -53,10 +56,14 @@
5356
"@types/archiver": "^6.0.2",
5457
"archiver": "^7.0.1",
5558
"fs-extra": "^11.2.0",
56-
"tinyglobby": "^0.2.9",
57-
"unstorage": "^1.12.0"
59+
"tinyglobby": "^0.2.9"
5860
},
5961
"devDependencies": {
62+
"@aws-sdk/client-s3": "^3.670.0",
63+
"@flystorage/aws-s3": "^0.1.5",
64+
"@flystorage/file-storage": "^0.1.5",
65+
"@flystorage/in-memory": "^0.1.4",
66+
"@flystorage/local-fs": "^0.1.7",
6067
"@stacksjs/development": "workspace:*"
6168
}
6269
}
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
// import type { NestedStackProps } from 'aws-cdk-lib'
2-
import { NestedStack } from 'aws-cdk-lib'
3-
// import type { Construct } from 'constructs'
1+
import { S3Client } from '@aws-sdk/client-s3'
2+
import { AwsS3StorageAdapter } from '@flystorage/aws-s3'
3+
import { FileStorage } from '@flystorage/file-storage'
44

5-
export class StorageStack extends NestedStack {
6-
// constructor(scope: Construct, id: string, props?: NestedStackProps) {
7-
// super(scope, id, props)
8-
// if (!storage.name)
9-
// throw new Error('./config storage.name is not defined')
10-
// new s3.Bucket(this, storage.name)
11-
// }
12-
}
5+
const client = new S3Client()
6+
const adapter = new AwsS3StorageAdapter(client, {
7+
bucket: '{your-bucket-name}',
8+
prefix: '{optional-path-prefix}',
9+
})
10+
11+
export const storage: FileStorage = new FileStorage(adapter)

storage/framework/ide/zed/.zed/settings.json

Lines changed: 137 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,143 @@
11
// For a full list of overridable settings, and general information on folder-specific settings,
22
// see the documentation: https://zed.dev/docs/configuring-zed#settings-files
33
{
4-
"format_on_save": "on",
4+
"languages": {
5+
"JavaScript": {
6+
"formatter": {
7+
"code_actions": {
8+
"source.fixAll.eslint": true
9+
}
10+
}
11+
},
12+
"TypeScript": {
13+
"formatter": {
14+
"code_actions": {
15+
"source.fixAll.eslint": true
16+
}
17+
}
18+
},
19+
"Vue.js": {
20+
"formatter": {
21+
"code_actions": {
22+
"source.fixAll.eslint": true
23+
}
24+
}
25+
},
26+
"HTML": {
27+
"formatter": {
28+
"code_actions": {
29+
"source.fixAll.eslint": true
30+
}
31+
}
32+
},
33+
"CSS": {
34+
"formatter": {
35+
"code_actions": {
36+
"source.fixAll.eslint": true
37+
}
38+
}
39+
},
40+
"Markdown": {
41+
"formatter": {
42+
"code_actions": {
43+
"source.fixAll.eslint": true
44+
}
45+
}
46+
},
47+
"JSON": {
48+
"formatter": {
49+
"code_actions": {
50+
"source.fixAll.eslint": true
51+
}
52+
}
53+
},
54+
"JSONC": {
55+
"formatter": {
56+
"code_actions": {
57+
"source.fixAll.eslint": true
58+
}
59+
}
60+
},
61+
"YAML": {
62+
"formatter": {
63+
"code_actions": {
64+
"source.fixAll.eslint": true
65+
}
66+
}
67+
},
68+
"XML": {
69+
"formatter": {
70+
"code_actions": {
71+
"source.fixAll.eslint": true
72+
}
73+
}
74+
},
75+
"TOML": {
76+
"formatter": {
77+
"code_actions": {
78+
"source.fixAll.eslint": true
79+
}
80+
}
81+
}
82+
},
83+
"lsp": {
84+
"eslint": {
85+
"settings": {
86+
"rulesCustomizations": [
87+
{
88+
"rule": "style/*",
89+
"severity": "off",
90+
"fixable": true
91+
},
92+
{
93+
"rule": "format/*",
94+
"severity": "off",
95+
"fixable": true
96+
},
97+
{
98+
"rule": "*-indent",
99+
"severity": "off",
100+
"fixable": true
101+
},
102+
{
103+
"rule": "*-spacing",
104+
"severity": "off",
105+
"fixable": true
106+
},
107+
{
108+
"rule": "*-spaces",
109+
"severity": "off",
110+
"fixable": true
111+
},
112+
{
113+
"rule": "*-order",
114+
"severity": "off",
115+
"fixable": true
116+
},
117+
{
118+
"rule": "*-dangle",
119+
"severity": "off",
120+
"fixable": true
121+
},
122+
{
123+
"rule": "*-newline",
124+
"severity": "off",
125+
"fixable": true
126+
},
127+
{
128+
"rule": "*quotes",
129+
"severity": "off",
130+
"fixable": true
131+
},
132+
{
133+
"rule": "*semi",
134+
"severity": "off",
135+
"fixable": true
136+
}
137+
]
138+
}
139+
}
140+
},
5141
"file_types": {
6142
"JavaScript": [
7143
"buddy"

0 commit comments

Comments
 (0)