File tree Expand file tree Collapse file tree 4 files changed +25
-23
lines changed Expand file tree Collapse file tree 4 files changed +25
-23
lines changed Original file line number Diff line number Diff line change 1
- import { resolve } from '@stacksjs/path'
2
- import { fs } from '@stacksjs/storage'
3
- import { kebabCase } from '@stacksjs/strings'
1
+ import { components , functions } from '@stacksjs/utils'
4
2
import git from './config/git'
5
3
6
- const ignore = [ 'readme-md' ]
7
-
8
- const components = fs
9
- . readdirSync ( resolve ( __dirname , './resources/components' ) )
10
- . map ( ( item ) => kebabCase ( item . replace ( / \. ( s t x | v u e ) / g, '' ) ) )
11
- . filter ( ( item ) => ! ignore . includes ( item ) )
12
-
13
- const functions = fs
14
- . readdirSync ( resolve ( __dirname , './resources/functions' ) )
15
- . map ( ( item ) => kebabCase ( item . replace ( / .t s / g, '' ) ) )
16
- . filter ( ( item ) => ! ignore . includes ( item ) )
17
-
18
4
const scopes = [ ...git . scopes , ...components , ...functions ]
19
5
const uniqueScopes = [ ...new Set ( scopes ) ]
20
6
Original file line number Diff line number Diff line change
1
+ import { resolve } from '@stacksjs/path'
2
+ import { fs } from '@stacksjs/storage'
3
+ import { kebabCase } from '@stacksjs/strings'
4
+
5
+ const ignore = [ 'readme-md' ]
6
+
7
+ export const components = fs
8
+ . readdirSync ( resolve ( __dirname , './resources/components' ) )
9
+ . map ( ( item ) => kebabCase ( item . replace ( / \. ( s t x | v u e ) / g, '' ) ) )
10
+ . filter ( ( item ) => ! ignore . includes ( item ) )
11
+
12
+ export const functions = fs
13
+ . readdirSync ( resolve ( __dirname , './resources/functions' ) )
14
+ . map ( ( item ) => kebabCase ( item . replace ( / .t s / g, '' ) ) )
15
+ . filter ( ( item ) => ! ignore . includes ( item ) )
Original file line number Diff line number Diff line change 39
39
"theme" : " light"
40
40
},
41
41
"extensionPack" : [
42
- " vue.volar" ,
43
- " biomejs.biome" ,
44
- " streetsidesoftware.code-spell-checker" ,
42
+ " amazonwebservices.aws-toolkit-vscode" ,
45
43
" antfu.unocss" ,
46
- " davidanson.vscode-markdownlint" ,
44
+ " antfu.goto-alias" ,
45
+ " biomejs.biome" ,
47
46
" christian-kohler.npm-intellisense" ,
47
+ " davidanson.vscode-markdownlint" ,
48
+ " foxundermoon.shell-format" ,
48
49
" mattpocock.ts-error-translator" ,
49
- " amazonwebservices.aws-toolkit-vscode" ,
50
- " antfu.goto-alias" ,
51
50
" mikestead.dotenv" ,
52
- " foxundermoon.shell-format" ,
53
51
" mylesmurphy.prettify-ts" ,
52
+ " nhoizey.gremlins" ,
54
53
" Orta.vscode-twoslash-queries" ,
55
- " nhoizey.gremlins"
54
+ " streetsidesoftware.code-spell-checker" ,
55
+ " vitest.explorer" ,
56
+ " vue.volar"
56
57
],
57
58
"devDependencies" : {
58
59
"@vscode/vsce" : " ^3.0.0"
You can’t perform that action at this time.
0 commit comments