注:开发过程中,底层包有时候不能满足当前需求,需要开发同事基于当前引擎包二次开发; 由于底层包开发时通过typeScript开发,所以如何让非TS项目开发引入开发尤为重要; (不需要二次拓展的忽略此模块)
npm install -g typescript
{
"compilerOptions": {
"target": "es6",
"module": "es2015",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"lib": [
"dom",
"es5",
"es2015",
"es2015.promise"
],
"strict": true
},
"include": [
"src/**/*.ts",
],
"exclude": [
"node_modules"
]
}
tsc -w