# ngx-tethys **Repository Path**: yazhou-com/ngx-tethys ## Basic Information - **Project Name**: ngx-tethys - **Description**: Fast and reliable Worktile Design components in Angular - **Primary Language**: TypeScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-16 - **Last Updated**: 2023-08-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ngx-tethys [![CircleCI](https://circleci.com/gh/atinc/ngx-tethys.svg?style=shield)](https://circleci.com/gh/atinc/ngx-tethys) >An UI components based on Worktile Design and Angular. ## Notes: **This repo is only public, it's a long way from the open source, not recommended in production environment. we do not promise that there will be no breaking changes, use only in worktile.** # Getting Started ## Installation Install ngx-tethys from npm ``` npm install ngx-tethys --save ``` ## Usage 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 { } ``` ## Development ``` $ git clone git@github.com:atinc/ngx-tethys.git $ cd ngx-tethys $ npm install $ npm run start ``` ## Release & Publish 1. Run `npm run release` to release new version, this command will does the following: - Checkout to `master` and identifies current version and latest tag. - Prompts for a new version to select. - Create a release branch as `release-v1.0.0` - Modifies package metadata (package.json, version.ts) to reflect new release and generate changelog - Commits those changes to release branch. - Pushes to the git remote. You can run `npm run release -- [patch|minor|major|2.0.0]` to skip the version selection prompt and increment the version by that keyword or specify version. 1. Submit pull request from release branch to master 1. Code review & merge pull request for release 1. Run `npm run pub` to pub lib to npm, this command will does the following: - Fetch latest code and checkout to `master` - Create tag for new version - Pushes tags to git remote - Auto run `npm run build` which build source output `built` folder - Auto switch `built` folder and run `npm publish` to publish lib to npm `npm run release -- --dry-run` or `npm run pub -- --dry-run` running with the flag `--dry-run` allows you to see what commands would be run, without committing to git or updating files. (意思就是打印一下日志让你看看做了哪些步骤,但是并不会真的执行脚本,你可以放心的执行) ## Notes 1. Don't use `barrel index` (should directly import specify component in module, don't import `index.ts`) 1. Should exports component module in `public-api.ts`