mirror of
https://github.com/valitydev/fe-core.git
synced 2024-11-06 02:25:18 +00:00
FRONTEND-509: Select progress util (#9)
This commit is contained in:
parent
165e85442b
commit
979fa75767
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@ -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:
|
||||
|
8
.github/workflows/test.yaml
vendored
8
.github/workflows/test.yaml
vendored
@ -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
|
@ -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
2
.husky/pre-push
Executable file → Normal file
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
npm run versionup
|
||||
npm run versionup
|
2
.npmrc
2
.npmrc
@ -1 +1 @@
|
||||
@rbkmoney:registry=https://npm.pkg.github.com/
|
||||
@rbkmoney:registry=https://npm.pkg.github.com/
|
28
README.md
28
README.md
@ -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**
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"npmClient": "npm",
|
||||
"useWorkspaces": true,
|
||||
"packages": ["packages/*"],
|
||||
"version": "independent",
|
||||
"command": {
|
||||
|
4518
package-lock.json
generated
4518
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -1,5 +1,10 @@
|
||||
# Utils
|
||||
|
||||
For
|
||||
|
||||
- Angular
|
||||
- RxJS
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
1
packages/utils/src/angular/index.ts
Normal file
1
packages/utils/src/angular/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from './component-changes/component-changes';
|
@ -1 +0,0 @@
|
||||
export * from './component-changes';
|
@ -1 +1,2 @@
|
||||
export * from './component-changes';
|
||||
export * from './angular';
|
||||
export * from './operators';
|
||||
|
1
packages/utils/src/operators/index.ts
Normal file
1
packages/utils/src/operators/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from './progress/progress';
|
Loading…
Reference in New Issue
Block a user