FRONTEND-509: Select progress util (#9)

This commit is contained in:
Rinat Arsaev 2021-04-15 13:43:34 +03:00 committed by GitHub
parent 165e85442b
commit 979fa75767
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 1090 additions and 3513 deletions

View File

@ -24,7 +24,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install
run: npm ci
run: npx lerna bootstrap
- name: Create Release
run: npm run release
env:

View File

@ -25,8 +25,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install
run: npm ci
- name: Test
run: npm run test
run: npx lerna bootstrap
- name: Build
run: npm run build
run: npm run build
- name: Test
run: npm run test

View File

@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx commitlint --edit ${HUSKY_GIT_PARAMS}
npx commitlint --edit ${HUSKY_GIT_PARAMS}

2
.husky/pre-push Executable file → Normal file
View File

@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm run versionup
npm run versionup

2
.npmrc
View File

@ -1 +1 @@
@rbkmoney:registry=https://npm.pkg.github.com/
@rbkmoney:registry=https://npm.pkg.github.com/

View File

@ -1,6 +1,6 @@
# Frontend Libs Monorepo
- [NPM Workspaces](https://docs.npmjs.com/cli/v7/using-npm/workspaces)
- NPM >7 ([Workspaces](https://docs.npmjs.com/cli/v7/using-npm/workspaces))
- [Lerna](https://github.com/lerna/lerna)
- CommitLint
@ -24,15 +24,22 @@
## Contributing
### Linking
### Installation
```sh
npm link '<PATH>/fe-core/packages/<PACKAGE_DIR>'
```shell
npx lerna bootstrap
```
### Deps management
- [Add](https://github.com/lerna/lerna/tree/main/commands/add)
```shell
lerna add <package>[@version] [--dev] [--exact] [--peer]
```
### Versioning & GIT Commits
The project uses [ConventionalCommits](https://www.conventionalcommits.org/)
[ConventionalCommits](https://www.conventionalcommits.org/)
- **fix:** a commit of the type fix patches a bug in your codebase (this correlates with PATCH in Semantic Versioning).
- **feat:** a commit of the type feat introduces a new feature to the codebase (this correlates with MINOR in Semantic Versioning).
@ -40,6 +47,17 @@ The project uses [ConventionalCommits](https://www.conventionalcommits.org/)
- types other than fix: and feat: are allowed, for example @commitlint/config-conventional (based on the the Angular convention) recommends build:, chore:, ci:, docs:, style:, refactor:, perf:, test:, and others.
- footers other than BREAKING CHANGE: <description> may be provided and follow a convention similar to git trailer format.
### Development
Linking to the project that needs
```sh
npm link '<PATH>/fe-core/packages/<PACKAGE_DIR>'
# Example:
# npm link '../fe-core/packages/utils'
```
### Publish
**is now performed automatically on CI**

View File

@ -1,5 +1,5 @@
{
"npmClient": "npm",
"useWorkspaces": true,
"packages": ["packages/*"],
"version": "independent",
"command": {

4518
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,7 @@
"private": true,
"scripts": {
"prepare": "husky install",
"bootstrap": "lerna bootstrap",
"build": "lerna run build",
"test": "lerna run test",
"versionup": "lerna version --no-commit-hooks --conventional-prerelease --no-push --no-changelog --preid pr --yes",

View File

@ -1,10 +1,13 @@
{
"name": "@rbkmoney/partial-fetcher",
"version": "0.2.0",
"version": "0.3.0-pr.22",
"description": "Partial Fetcher",
"author": "rbkmoney",
"main": "lib/index.js",
"types": "lib/index.d.js",
"main": "lib/index",
"types": "lib/index",
"files": [
"lib"
],
"scripts": {
"build": "npm run clean & tsc -p tsconfig.json",
"clean": "shx rm -rf lib",
@ -17,8 +20,11 @@
"publishConfig": {
"registry": "https://npm.pkg.github.com/@rbkmoney"
},
"optionalDependencies": {
"peerDependencies": {
"@ngneat/until-destroy": "^8.0.0",
"rxjs": "^6.0.0"
},
"dependencies": {
"@rbkmoney/utils": "^0.3.0-pr.22"
}
}

View File

@ -12,13 +12,13 @@ import {
switchMap,
tap,
} from 'rxjs/operators';
import { progress } from '@rbkmoney/utils';
import { FetchAction } from './fetch-action';
import { FetchFn } from './fetch-fn';
import { FetchResult } from './fetch-result';
import { scanAction, scanFetchResult } from './operators';
import { SHARE_REPLAY_CONF } from './utils/share-replay-conf';
import { progress } from './utils/progress';
// TODO: make free of subscription & UntilDestroy
// TODO: share public props together

View File

@ -1,5 +1,10 @@
# Utils
For
- Angular
- RxJS
## Installation
```sh

View File

@ -1,10 +1,13 @@
{
"name": "@rbkmoney/utils",
"version": "0.2.0",
"version": "0.3.0-pr.22",
"description": "Utils",
"author": "rbkmoney",
"main": "lib/index.js",
"types": "lib/index.d.js",
"main": "lib/index",
"types": "lib/index",
"files": [
"lib"
],
"scripts": {
"build": "npm run clean & tsc -p tsconfig.json",
"clean": "shx rm -rf lib"
@ -16,7 +19,7 @@
"publishConfig": {
"registry": "https://npm.pkg.github.com/@rbkmoney"
},
"optionalDependencies": {
"peerDependencies": {
"@angular/core": "^11.0.0"
}
}

View File

@ -0,0 +1 @@
export * from './component-changes/component-changes';

View File

@ -1 +0,0 @@
export * from './component-changes';

View File

@ -1 +1,2 @@
export * from './component-changes';
export * from './angular';
export * from './operators';

View File

@ -0,0 +1 @@
export * from './progress/progress';