mirror of
https://github.com/idrawjs/idraw
synced 2026-05-23 17:48:23 +00:00
feat: init @idraw/kernal module
This commit is contained in:
parent
534215ec0c
commit
b092c53e11
7 changed files with 60 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
|||
"packages/types",
|
||||
"packages/util",
|
||||
"packages/board",
|
||||
"packages/kernal",
|
||||
"packages/core",
|
||||
"packages/idraw"
|
||||
],
|
||||
|
|
|
|||
3
packages/kernal/README.md
Normal file
3
packages/kernal/README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# @idraw/kernal
|
||||
|
||||
[](https://github.com/idrawjs/idraw/actions/workflows/node.js.yml)
|
||||
7
packages/kernal/api-extractor.json
Normal file
7
packages/kernal/api-extractor.json
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"extends": "../../api-extractor.json",
|
||||
"mainEntryPointFilePath": "./dist/packages/<unscopedPackageName>/src/index.d.ts",
|
||||
"dtsRollup": {
|
||||
"publicTrimmedFilePath": "./dist/index.d.ts"
|
||||
}
|
||||
}
|
||||
5
packages/kernal/examples/index.html
Normal file
5
packages/kernal/examples/index.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<html>
|
||||
<body>
|
||||
Hello World
|
||||
</body>
|
||||
</html>
|
||||
35
packages/kernal/package.json
Normal file
35
packages/kernal/package.json
Normal 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"
|
||||
}
|
||||
}
|
||||
5
packages/kernal/src/index.ts
Normal file
5
packages/kernal/src/index.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class Kernal {
|
||||
|
||||
}
|
||||
|
||||
export default Kernal;
|
||||
|
|
@ -7,6 +7,10 @@ const packages = [
|
|||
dirName: 'board',
|
||||
globalName: 'iDrawBoard',
|
||||
},
|
||||
{
|
||||
dirName: 'kernal',
|
||||
globalName: 'iDrawKernal',
|
||||
},
|
||||
{
|
||||
dirName: 'core',
|
||||
globalName: 'iDrawCore',
|
||||
|
|
|
|||
Loading…
Reference in a new issue