Skip to content

Commit 23b2868

Browse files
committed
feat: add TypeScript configuration and Vite setup for editor stacks
- Created tsconfig.json for TypeScript compiler options and project structure. - Added tsconfig.node.json for Node-specific TypeScript settings. - Implemented vite.config.ts to configure Vite with React, YAML support, and CSS handling. - Included plugins for type definitions and CSS scoping in the build process.
1 parent da57274 commit 23b2868

File tree

5 files changed

+2673
-0
lines changed

5 files changed

+2673
-0
lines changed

editor-stacks/package.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"name": "editor-stacks",
3+
"version": "0.0.1",
4+
"description": "",
5+
"type": "module",
6+
"files": [
7+
"dist",
8+
"README.md"
9+
],
10+
"main": "./dist/editor-stacks.umd.js",
11+
"module": "./dist/editor-stacks.es.js",
12+
"types": "./dist/editor-stacks.d.ts",
13+
"exports": {
14+
".": {
15+
"import": "./dist/editor-stacks.es.js",
16+
"require": "./dist/editor-stacks.umd.js"
17+
}
18+
},
19+
"scripts": {
20+
"dev": "vite build --mode development --watch",
21+
"build": "tsc && vite build",
22+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
23+
},
24+
"peerDependencies": {
25+
"react": "^18.2.0",
26+
"react-bootstrap": "^2.10.0",
27+
"react-dom": "^18.2.0",
28+
"react-i18next": "^11.18.3"
29+
},
30+
"devDependencies": {
31+
"@modyfi/vite-plugin-yaml": "^1.1.0",
32+
"@typescript-eslint/eslint-plugin": "^6.0.0",
33+
"@typescript-eslint/parser": "^6.0.0",
34+
"@vitejs/plugin-react-swc": "^3.3.2",
35+
"eslint": "^8.45.0",
36+
"eslint-plugin-react-hooks": "^4.6.0",
37+
"eslint-plugin-react-refresh": "^0.4.3",
38+
"typescript": "^5.0.2",
39+
"vite": "^4.4.5",
40+
"vite-plugin-css-injected-by-js": "^3.5.2",
41+
"vite-plugin-dts": "^3.9.1",
42+
"postcss": "^8.4.47",
43+
"postcss-prefix-selector": "^1.16.0"
44+
},
45+
"dependencies": {
46+
"@stackoverflow/stacks": "^2.8.6",
47+
"@stackoverflow/stacks-editor": "^0.15.3"
48+
}
49+
}

0 commit comments

Comments
 (0)