nx-library-starter:使用NX Monorepo设置的入门项目,以为Web创建新的Typescript库

时间:2021-05-25 23:55:16
【文件属性】:
文件名称:nx-library-starter:使用NX Monorepo设置的入门项目,以为Web创建新的Typescript库
文件大小:186KB
文件格式:ZIP
更新时间:2021-05-25 23:55:16
template node typescript rxjs starter-template RxJS Ninja模板库 该存储库是一个Github模板,用于使用UMD和ESM编译为Web生成Typescript库。 它使用 monorepo方法构建,并且设置为允许使用自己的公共API开发库,并进行编译以在任何ECMAScript环境(包括节点,框架或VanillaJS方法)中使用。 库设置 此存储库中包含-小型RxJS库,可导出fizzbuzz运算符和Observable fromFizzbuzz序列生成器。 为了进行设置,我使用了@nrwl/node来生成库: > nx g @nrwl/node:lib example-lib --directory=rxjs --publishable --importPath=@rxjs-ninja/example-lib 默认情况下,这使用CommonJS设置了一个节点兼容的库,但是这可能会导致现代Web框架出现问题。 在这里
【文件预览】:
nx-library-starter-main
----workspace.json(2KB)
----typedoc.json(324B)
----package.json(2KB)
----babel.config.json(62B)
----jest.preset.js(82B)
----tools()
--------tsconfig.tools.json(223B)
--------schematics()
----.eslintrc.json(739B)
----.github()
--------workflows()
--------scripts()
----.prettierrc(73B)
----.prettierignore(80B)
----jest.config.js(71B)
----LICENSE(1KB)
----package-lock.json(696KB)
----nx.json(597B)
----tsconfig.base.json(586B)
----.gitignore(510B)
----README.md(5KB)
----apps()
--------.gitkeep(0B)
----.editorconfig(245B)
----libs()
--------rxjs()
--------.gitkeep(0B)
----.vscode()
--------extensions.json(145B)

网友评论