@acta/router 中文文档教程
Router @acta/router
一个用 TypeScript 构建的简单命令式路由器,用于节点和浏览器。
Table of Contents
Declaring a route
Dev scripts
脚本:
npm run dev
to dev (build, test and watch)npm run build
to build the production versionnpm run release
to release a new version. Relies on release-it for deployments.
要使用其他应用程序或包中的包在本地进行开发,请使用符号链接:npm link /the/absolute/path/url
。
发布:npm publish --access=public
。
Router @acta/router
A simple imperative router build in TypeScript for node and the browser.
Table of Contents
Declaring a route
Dev scripts
Scripts :
npm run dev
to dev (build, test and watch)npm run build
to build the production versionnpm run release
to release a new version. Relies on release-it for deployments.
To develop in local using the package from another application or package, go for a symlink: npm link /the/absolute/path/url
.
To publish: npm publish --access=public
.