Skip to content

Commit 5deba6b

Browse files
committed
feat: Add initial package and tsconfig for components and core
1 parent c860500 commit 5deba6b

File tree

4 files changed

+128
-0
lines changed

4 files changed

+128
-0
lines changed

lib/components/package.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "components",
3+
"private": true,
4+
"version": "0.0.0",
5+
"main": "dist/vue.js",
6+
"types": "dist/vue.d.ts",
7+
"scripts": {
8+
"build": "node ../../scripts/build.mjs"
9+
},
10+
"buildOptions": [
11+
{
12+
"input": "src/vue.ts",
13+
"filename": "dist/vue",
14+
"name": "VueUnity",
15+
"dts": false,
16+
"external": [
17+
"vue-demi",
18+
"vue"
19+
],
20+
"globals": {
21+
"vue": "Vue",
22+
"vue-demi": "VueDemi"
23+
}
24+
}
25+
],
26+
"dependencies": {
27+
"unity-webgl": "workspace:^",
28+
"vue-demi": "latest"
29+
},
30+
"devDependencies": {
31+
"vue": "^3.5.13"
32+
}
33+
}

lib/components/tsconfig.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"declaration": true,
5+
"declarationDir": "dist",
6+
"baseUrl": ".",
7+
"outDir": "dist"
8+
},
9+
"include": ["src/*"],
10+
"exclude": ["node_modules", "**/*.test.ts"]
11+
}

lib/core/package.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"name": "unity-webgl",
3+
"version": "4.0.0-beta.1",
4+
"description": "Unity-Webgl provides an easy solution for embedding Unity WebGL builds in your webApp or Vue.js project, with two-way communication between your webApp and Unity application with advanced API's.",
5+
"main": "dist/index.js",
6+
"module": "dist/index.mjs",
7+
"unpkg": "dist/index.min.js",
8+
"jsdelivr": "dist/index.min.js",
9+
"types": "dist/index.d.ts",
10+
"exports": {
11+
".": {
12+
"types": "./dist/index.d.ts",
13+
"import": "./dist/index.mjs",
14+
"module": "./dist/index.mjs",
15+
"require": "./dist/index.js"
16+
},
17+
"./vue": {
18+
"types": "./dist/vue.d.ts",
19+
"import": "./dist/vue.mjs",
20+
"module": "./dist/vue.mjs",
21+
"require": "./dist/vue.js"
22+
},
23+
"./*": "./*"
24+
},
25+
"files": [
26+
"dist"
27+
],
28+
"scripts": {
29+
"build": "node ../../scripts/build.mjs"
30+
},
31+
"buildOptions": {
32+
"input": "src/index.ts",
33+
"filename": "dist/index",
34+
"name": "UnityWebgl",
35+
"dts": true
36+
},
37+
"sideEffects": false,
38+
"publishConfig": {
39+
"access": "public",
40+
"registry": "https://registry.npmjs.org/"
41+
},
42+
"keywords": [
43+
"unity webgl",
44+
"unity",
45+
"webGL",
46+
"unity3d",
47+
"unity3d webgl",
48+
"unity player",
49+
"unity3d player",
50+
"vue unity"
51+
],
52+
"author": "Mariner <mengqing723@gmail.com>",
53+
"license": "Apache-2.0",
54+
"homepage": "https://github.com/Marinerer/unity-webgl",
55+
"repository": {
56+
"type": "git",
57+
"url": "git+https://github.com/Marinerer/unity-webgl.git"
58+
},
59+
"bugs": {
60+
"url": "https://github.com/Marinerer/jotter/issues"
61+
},
62+
"peerDependencies": {
63+
"@vue/composition-api": "^1.7.2",
64+
"vue": "^2.0.0 || >=3.0.0"
65+
},
66+
"peerDependenciesMeta": {
67+
"@vue/composition-api": {
68+
"optional": true
69+
}
70+
},
71+
"dependencies": {
72+
"vue-demi": "latest"
73+
}
74+
}

lib/core/tsconfig.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"declaration": false,
5+
"baseUrl": ".",
6+
"outDir": "dist"
7+
},
8+
"include": ["src/*", "*.d.ts"],
9+
"exclude": ["node_modules", "**/*.test.ts"]
10+
}

0 commit comments

Comments
 (0)