Skip to content

Commit ad56aef

Browse files
committed
feat: init react package
1 parent 64d295b commit ad56aef

File tree

6 files changed

+62
-0
lines changed

6 files changed

+62
-0
lines changed

packages/react/package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "@replexica/react",
3+
"version": "0.0.0",
4+
"description": "",
5+
"main": "build/index.js",
6+
"types": "build/index.d.ts",
7+
"scripts": {
8+
"dev": "tsc -w",
9+
"build": "tsc",
10+
"test": "vitest"
11+
},
12+
"keywords": [],
13+
"author": "",
14+
"license": "ISC",
15+
"dependencies": {
16+
"typescript": "^5.4.3",
17+
"vitest": "^1.4.0"
18+
}
19+
}

packages/react/src/index.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { describe, it, expect } from 'vitest';
2+
3+
describe('@replexica/react', () => {
4+
it('should work', () => {
5+
expect(true).toBe(true);
6+
});
7+
});

packages/react/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {};

packages/react/tsconfig.base.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"compilerOptions": {
3+
"declaration": true,
4+
"declarationMap": true,
5+
"sourceMap": true,
6+
"rootDir": "src",
7+
"outDir": "build",
8+
"strict": true,
9+
"esModuleInterop": true,
10+
"allowSyntheticDefaultImports": true,
11+
"skipLibCheck": true,
12+
"jsx": "react-jsx",
13+
"moduleResolution": "Node",
14+
"module": "ESNext",
15+
"target": "ESNext"
16+
}
17+
}

packages/react/tsconfig.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.base.json",
3+
"include": [
4+
"src/**/*.ts"
5+
],
6+
"exclude": [
7+
"src/**/*.spec.ts"
8+
]
9+
}

packages/react/tsconfig.test.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.base.json",
3+
"include": [
4+
"src/**/*.ts"
5+
],
6+
"compilerOptions": {
7+
"noEmit": true
8+
}
9+
}

0 commit comments

Comments
 (0)