An UI components based on Worktile Design and Angular.
Install ngx-tethys from npm
npm install ngx-tethys --save
https://atinc.github.io/ngx-tethys
Import root module into every module (e.g. AppModule
) where you want to use the components, directives, and services.
import { NgxTethysModule } from 'ngx-tethys';
@NgModule({
imports: [ NgxTethysModule ]
})
export class AppModule {
}
You can freely import the specified feature modules.
import { ThyButtonModule } from 'ngx-tethys/button';
import { ThyLayoutModule } from 'ngx-tethys/layout';
@NgModule({
imports: [ ThyButtonModule, ThyLayoutModule ]
})
export class AppModule {
}
$ git clone [email protected]:worktile/ngx-tethys.git
$ cd ngx-tethys
$ npm install
$ npm run start
- 获取主仓储
ngx-tethys
最新代码(如果是自己fork的项目,需要fetch
远程仓储并且合并到本地分支 ) - 执行
npm run release
输入新的版本号(release
命令会根据tag自动生成changelog
, 并且自动生成新的版本对应的分支) - 提交
Pull Request
到主仓储ngx-tethys
master
分支,测试通过后合并Pull Request
,并且删除临时分支 - 本地切换到主仓储
ngx-tethys/master
分支,(如果是自己fork项目,则git checkout upstream/master
) - 本地执行
git pull
orgit fetch upstream
同步远程更新 - 执行
npm run pub
发布新版本 - 在主仓储添加当前版本对应的新的
tag
- 不建议使用
barrel index
(开发新的组件模块时,最外层的module
最好直接引用组件,不要通过index
导出,再进行引用) - 新增加组件模块,需要在
public-api.ts
文件中导出