feat: init @idraw/kernal module

This commit is contained in:
chenshenhai 2021-09-15 15:21:34 +08:00
parent 534215ec0c
commit b092c53e11
7 changed files with 60 additions and 0 deletions

View file

@ -3,6 +3,7 @@
"packages/types",
"packages/util",
"packages/board",
"packages/kernal",
"packages/core",
"packages/idraw"
],

View file

@ -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)

View file

@ -0,0 +1,7 @@
{
"extends": "../../api-extractor.json",
"mainEntryPointFilePath": "./dist/packages/<unscopedPackageName>/src/index.d.ts",
"dtsRollup": {
"publicTrimmedFilePath": "./dist/index.d.ts"
}
}

View file

@ -0,0 +1,5 @@
<html>
<body>
Hello World
</body>
</html>

View file

@ -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"
}
}

View file

@ -0,0 +1,5 @@
class Kernal {
}
export default Kernal;

View file

@ -7,6 +7,10 @@ const packages = [
dirName: 'board',
globalName: 'iDrawBoard',
},
{
dirName: 'kernal',
globalName: 'iDrawKernal',
},
{
dirName: 'core',
globalName: 'iDrawCore',