Skip to content

Commit

Permalink
feat: Add initial package and tsconfig for components and core
Browse files Browse the repository at this point in the history
  • Loading branch information
Marinerer committed Dec 20, 2024
1 parent c860500 commit 5deba6b
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 0 deletions.
33 changes: 33 additions & 0 deletions lib/components/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "components",
"private": true,
"version": "0.0.0",
"main": "dist/vue.js",
"types": "dist/vue.d.ts",
"scripts": {
"build": "node ../../scripts/build.mjs"
},
"buildOptions": [
{
"input": "src/vue.ts",
"filename": "dist/vue",
"name": "VueUnity",
"dts": false,
"external": [
"vue-demi",
"vue"
],
"globals": {
"vue": "Vue",
"vue-demi": "VueDemi"
}
}
],
"dependencies": {
"unity-webgl": "workspace:^",
"vue-demi": "latest"
},
"devDependencies": {
"vue": "^3.5.13"
}
}
11 changes: 11 additions & 0 deletions lib/components/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"declaration": true,
"declarationDir": "dist",
"baseUrl": ".",
"outDir": "dist"
},
"include": ["src/*"],
"exclude": ["node_modules", "**/*.test.ts"]
}
74 changes: 74 additions & 0 deletions lib/core/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"name": "unity-webgl",
"version": "4.0.0-beta.1",
"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.",
"main": "dist/index.js",
"module": "dist/index.mjs",
"unpkg": "dist/index.min.js",
"jsdelivr": "dist/index.min.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"module": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./vue": {
"types": "./dist/vue.d.ts",
"import": "./dist/vue.mjs",
"module": "./dist/vue.mjs",
"require": "./dist/vue.js"
},
"./*": "./*"
},
"files": [
"dist"
],
"scripts": {
"build": "node ../../scripts/build.mjs"
},
"buildOptions": {
"input": "src/index.ts",
"filename": "dist/index",
"name": "UnityWebgl",
"dts": true
},
"sideEffects": false,
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"keywords": [
"unity webgl",
"unity",
"webGL",
"unity3d",
"unity3d webgl",
"unity player",
"unity3d player",
"vue unity"
],
"author": "Mariner <mengqing723@gmail.com>",
"license": "Apache-2.0",
"homepage": "https://github.com/Marinerer/unity-webgl",
"repository": {
"type": "git",
"url": "git+https://github.com/Marinerer/unity-webgl.git"
},
"bugs": {
"url": "https://github.com/Marinerer/jotter/issues"
},
"peerDependencies": {
"@vue/composition-api": "^1.7.2",
"vue": "^2.0.0 || >=3.0.0"
},
"peerDependenciesMeta": {
"@vue/composition-api": {
"optional": true
}
},
"dependencies": {
"vue-demi": "latest"
}
}
10 changes: 10 additions & 0 deletions lib/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"declaration": false,
"baseUrl": ".",
"outDir": "dist"
},
"include": ["src/*", "*.d.ts"],
"exclude": ["node_modules", "**/*.test.ts"]
}

0 comments on commit 5deba6b

Please sign in to comment.