@aaccurso/data-structures 中文文档教程
Data Structures
这个库的灵感来自 作为 JavaScript 开发人员应了解的数据结构。
Local Development
以下是您可能会发现有用的命令列表。
npm start
or yarn start
在开发/观察模式下运行项目。 您的项目将根据更改重建。 TSDX 有一个特殊的记录器,为您提供方便。 错误消息被漂亮地打印和格式化以兼容 VS Code 的问题选项卡。
如果您进行编辑,您的库将被重建。
npm run build
or yarn build
将包捆绑到 dist
文件夹。 该包经过优化并与 Rollup 捆绑成多种格式(CommonJS、UMD 和 ES 模块)。
npm test
or yarn test
以交互模式运行测试观察器 (Jest) . 默认情况下,运行与自上次提交以来更改的文件相关的测试。
Data Structures
This library was inspired by Data Structures you should know as a JavaScript developer.
Local Development
Below is a list of commands you will probably find useful.
npm start
or yarn start
Runs the project in development/watch mode. Your project will be rebuilt upon changes. TSDX has a special logger for you convenience. Error messages are pretty printed and formatted for compatibility VS Code's Problems tab.
Your library will be rebuilt if you make edits.
npm run build
or yarn build
Bundles the package to the dist
folder. The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).
npm test
or yarn test
Runs the test watcher (Jest) in an interactive mode. By default, runs tests related to files changed since the last commit.