diff --git a/lerna.json b/lerna.json index ce8accb..89672d0 100644 --- a/lerna.json +++ b/lerna.json @@ -3,6 +3,7 @@ "packages/types", "packages/util", "packages/board", + "packages/kernal", "packages/core", "packages/idraw" ], diff --git a/packages/kernal/README.md b/packages/kernal/README.md new file mode 100644 index 0000000..ef7fac7 --- /dev/null +++ b/packages/kernal/README.md @@ -0,0 +1,3 @@ +# @idraw/kernal + +[![Node.js CI](https://github.com/idrawjs/idraw/actions/workflows/node.js.yml/badge.svg?branch=main)](https://github.com/idrawjs/idraw/actions/workflows/node.js.yml) \ No newline at end of file diff --git a/packages/kernal/api-extractor.json b/packages/kernal/api-extractor.json new file mode 100644 index 0000000..7ae8eca --- /dev/null +++ b/packages/kernal/api-extractor.json @@ -0,0 +1,7 @@ +{ + "extends": "../../api-extractor.json", + "mainEntryPointFilePath": "./dist/packages//src/index.d.ts", + "dtsRollup": { + "publicTrimmedFilePath": "./dist/index.d.ts" + } +} \ No newline at end of file diff --git a/packages/kernal/examples/index.html b/packages/kernal/examples/index.html new file mode 100644 index 0000000..b7c66aa --- /dev/null +++ b/packages/kernal/examples/index.html @@ -0,0 +1,5 @@ + + + Hello World + + \ No newline at end of file diff --git a/packages/kernal/package.json b/packages/kernal/package.json new file mode 100644 index 0000000..c23f9e6 --- /dev/null +++ b/packages/kernal/package.json @@ -0,0 +1,35 @@ +{ + "name": "@idraw/kernal", + "version": "0.2.0-alpha.2", + "description": "", + "main": "dist/index.cjs.js", + "module": "dist/index.es.js", + "unpkg": "dist/index.global.js", + "types": "dist/index.d.ts", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "files": [ + "dist" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/idrawjs/idraw.git" + }, + "bugs": { + "url": "https://github.com/idrawjs/idraw/issues" + }, + "homepage": "https://github.com/idrawjs/idraw#readme", + "author": "chenshenhai", + "license": "MIT", + "devDependencies": { + "@idraw/types": "^0.2.0-alpha.2" + }, + "dependencies": { + "@idraw/board": "^0.2.0-alpha.2", + "@idraw/util": "^0.2.0-alpha.2" + }, + "publishConfig": { + "access": "public" + } +} diff --git a/packages/kernal/src/index.ts b/packages/kernal/src/index.ts new file mode 100644 index 0000000..cdd05a4 --- /dev/null +++ b/packages/kernal/src/index.ts @@ -0,0 +1,5 @@ +class Kernal { + +} + +export default Kernal; \ No newline at end of file diff --git a/scripts/config.js b/scripts/config.js index 03d39d5..02088cb 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -7,6 +7,10 @@ const packages = [ dirName: 'board', globalName: 'iDrawBoard', }, + { + dirName: 'kernal', + globalName: 'iDrawKernal', + }, { dirName: 'core', globalName: 'iDrawCore',