Skip to content

Commit 956ec1f

Browse files
committed
Migrate to Rslib
1 parent 5577ef7 commit 956ec1f

File tree

26 files changed

+1265
-403
lines changed

26 files changed

+1265
-403
lines changed

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export default [
1717
'__TEST__',
1818
'**/dist/',
1919
'**/e2e-report/',
20+
'**/coverage/',
2021
'**/webpack.config.js',
2122
'**/postcss.config.js',
2223
'**/tailwind.config.js',

examples/data.d.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import {type Template} from './types'
2+
declare const DEFAULT_TEMPLATE: Template
3+
declare const JS_TEMPLATES: Template[]
4+
declare const WASM_TEMPLATES: Template[]
5+
declare const TS_TEMPLATES: Template[]
6+
declare const CUSTOM_TEMPLATES: Template[]
7+
declare const FRAMEWORK_TEMPLATES: Template[]
8+
declare const CONFIG_TEMPLATES: Template[]
9+
declare const ALL_TEMPLATES: Template[]
10+
declare const ALL_TEMPLATES_BUT_DEFAULT: Template[]
11+
declare const SUPPORTED_BROWSERS: string[]
12+
export {
13+
SUPPORTED_BROWSERS,
14+
DEFAULT_TEMPLATE,
15+
JS_TEMPLATES,
16+
WASM_TEMPLATES,
17+
TS_TEMPLATES,
18+
CUSTOM_TEMPLATES,
19+
FRAMEWORK_TEMPLATES,
20+
CONFIG_TEMPLATES,
21+
ALL_TEMPLATES,
22+
ALL_TEMPLATES_BUT_DEFAULT
23+
}

examples/types.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
export type UIContext = 'sidebar' | 'newTab' | 'content' | 'action' | 'devTools'
2+
export type ConfigFiles =
3+
| 'postcss.config.js'
4+
| 'tailwind.config.js'
5+
| 'tsconfig.json'
6+
| '.stylelintrc.json'
7+
| 'extension.config.js'
8+
| 'babel.config.json'
9+
| '.prettierrc'
10+
| 'eslint.config.mjs'
11+
export interface Template {
12+
name: string
13+
uiContext: UIContext[] | undefined
14+
uiFramework: 'react' | 'preact' | 'vue' | 'svelte' | undefined
15+
css: 'css' | 'sass' | 'less' | 'stylus'
16+
hasBackground: boolean
17+
hasEnv: boolean
18+
configFiles: ConfigFiles[] | undefined
19+
}

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"changeset": "changeset",
1313
"compile": "dotenv -- turbo run compile",
1414
"cleanInstall": "pnpm clean && rm -rf pnpm-lock.yaml && pnpm install && pnpm compile && pnpm format && pnpm lint && pnpm types",
15-
"extension": "dotenv -- ts-node ./programs/cli/dist/cli.js",
15+
"extension": "dotenv -- node ./programs/cli/dist/cli.js",
1616
"format": "prettier --write \"**/*.{ts,tsx,md,js,json}\"",
1717
"lint": "eslint .",
1818
"release": "dotenv -- turbo run compile && changeset publish",
@@ -40,8 +40,6 @@
4040
"eslint": "^9.16.0",
4141
"globals": "^15.13.0",
4242
"prettier": "^3.4.2",
43-
"ts-node": "^10.9.2",
44-
"tsup": "^8.3.5",
4543
"turbo": "^2.3.3",
4644
"typescript": "5.7.2"
4745
}

0 commit comments

Comments
 (0)