Skip to content

Commit

Permalink
feat: update rxjs to v7
Browse files Browse the repository at this point in the history
BREAKING CHANGE: update rxjs to v7
  • Loading branch information
Кацуба Игорь Сергеевич authored and IKatsuba committed Sep 4, 2022
1 parent d26bd79 commit 4508d9c
Show file tree
Hide file tree
Showing 42 changed files with 31,497 additions and 10,704 deletions.
3 changes: 1 addition & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint"
"prettier"
],
"rules": {
"@typescript-eslint/explicit-member-accessibility": "off",
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,10 @@ on:
push:
branches:
- master
- next
- beta
pull_request:
# The branches below must be a subset of the branches above
branches:
- master
- next
- beta
schedule:
- cron: '44 17 * * 0'

Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 'pvm update'

on:
push:
branches:
- 'master'

env:
PVM_LL: silly


jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 100
- name: Use Node.js 16.x
uses: actions/[email protected]
with:
node-version: 16.x
- run: npm ci
- run: npm run build
- run: npm exec pvm update
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
81 changes: 29 additions & 52 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,76 +4,53 @@ on:
pull_request:
branches:
- master
- next
- beta
env:
PVM_LL: silly

jobs:
mark-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 100
ref: ${{ github.event.pull_request.head.sha }}
- name: Use Node.js 16.x
uses: actions/[email protected]
with:
node-version: 16.x
- run: npm ci
- run: npm run build
- run: npm exec pvm mark-pr
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Use Node.js 12.x
- name: Use Node.js 16.x
uses: actions/[email protected]
with:
node-version: 12.x
- name: NX Cache
uses: actions/[email protected]
with:
path: ./.cache
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install
run: |
npm ci
env:
CI: true
- name: Build
run: |
npm run build
env:
CI: true
node-version: 16.x
- run: npm ci
- run: npm run build
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Use Node.js 12.x
- name: Use Node.js 16.x
uses: actions/[email protected]
with:
node-version: 12.x
- name: NX Cache
uses: actions/[email protected]
with:
path: ./.cache
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install
run: |
npm ci
env:
CI: true
- name: Lint
run: |
npm run lint
env:
CI: true
- run: npm ci
- run: npm run lint
test:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Use Node.js 12.x
- name: Use Node.js 16.x
uses: actions/[email protected]
with:
node-version: 12.x
- name: NX Cache
uses: actions/[email protected]
with:
path: ./.cache
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install
run: |
npm ci
env:
CI: true
- name: Test
run: |
npm test
env:
CI: true
node-version: 16.x
- run: npm ci
- run: npm test
43 changes: 15 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,27 @@
name: Release
name: 'release'

on:
push:
branches:
- master
- next
- beta
tags:
- v[0-9]+.[0-9]+.[0-9]+

env:
PVM_LL: silly

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Use Node.js 12.x
uses: actions/[email protected]
- uses: actions/checkout@v2
with:
node-version: 12.x
- name: NX Cache
uses: actions/cache@v2.1.6
fetch-depth: 150
- name: Use Node.js 16.x
uses: actions/setup-node@v2.1.5
with:
path: ./.cache
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: npm install
run: |
npm ci
env:
CI: true
- name: Build
run: |
npm run build
env:
CI: true
- name: Release
run: |
npm run release
node-version: 16.x
- run: npm ci
- run: npm run build
- run: npm exec pvm publish
env:
CI: true
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
30 changes: 30 additions & 0 deletions .pvm.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[versioning]
unified = ['/libs/*']
source = 'tag'
include_root = false

[publish.path_mapping]
'libs' = 'dist/libs'

[changelog]
front_matter = """
id: index
title: Change Log"""

[mark_pr]
analyze_update = false
packages_as_labels = false
packages_table = true
packages_graph = false
attach_changelog = true

[publish]
registry = 'https://registry.npmjs.org'
cli_args = '--access public'

[update]
default_release_type = 'patch'
commit_via_platform = false
retry_via_platform_if_failed_via_vcs = false
include_root = false
dependants_release_type = 'as-dep'
2 changes: 1 addition & 1 deletion jest.config.js → jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const { getJestProjects } = require('@nrwl/jest');

module.exports = { projects: getJestProjects() };
export default { projects: getJestProjects() };
2 changes: 1 addition & 1 deletion jest.preset.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const nxPreset = require('@nrwl/jest/preset');
const nxPreset = require('@nrwl/jest/preset').default;

module.exports = { ...nxPreset };
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
/* eslint-disable */
export default {
displayName: 'child-process',
preset: '../../jest.preset.js',
globals: {
Expand Down
3 changes: 2 additions & 1 deletion libs/child-process/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@rxnode/child_process",
"version": "0.0.0-stub",
"initialVersion": "1.0.0",
"license": "MIT",
"keywords": [
"rxjs",
Expand All @@ -23,7 +24,7 @@
},
"homepage": "https://github.com/IKatsuba/rxnode#readme",
"peerDependencies": {
"rxjs": "6.6.3",
"rxjs": ">= 7.0.0 < 8.0.0",
"@rxnode/core": "0.0.0-stub"
}
}
45 changes: 45 additions & 0 deletions libs/child-process/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"sourceRoot": "libs/child-process/src",
"projectType": "library",
"generators": {},
"targets": {
"lint": {
"executor": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": ["libs/child-process/**/*.ts"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"options": {
"jestConfig": "libs/child-process/jest.config.ts",
"passWithNoTests": true
},
"outputs": ["coverage/libs/child-process"]
},
"build": {
"executor": "@nrwl/js:tsc",
"options": {
"outputPath": "dist/libs/child-process",
"tsConfig": "libs/child-process/tsconfig.lib.json",
"packageJson": "libs/child-process/package.json",
"main": "libs/child-process/src/index.ts",
"assets": [
"libs/child-process/*.md",
"libs/child-process.md",
"libs/child-process/.npmignore"
]
},
"outputs": ["{options.outputPath}"]
},
"release": {
"executor": "@ng-builders/semrel:release",
"options": {
"npm": {
"pkgRoot": "./dist/libs/child-process"
}
}
}
},
"tags": []
}
2 changes: 1 addition & 1 deletion libs/child-process/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"declaration": true,
"types": ["node"]
},
"exclude": ["**/*.spec.ts"],
"exclude": ["**/*.spec.ts", "**/*.test.ts", "jest.config.ts"],
"include": ["**/*.ts"]
}
7 changes: 6 additions & 1 deletion libs/child-process/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@
},
"include": [
"**/*.spec.ts",
"**/*.test.ts",
"**/*.spec.tsx",
"**/*.test.tsx",
"**/*.spec.js",
"**/*.test.js",
"**/*.spec.jsx",
"**/*.d.ts"
"**/*.test.jsx",
"**/*.d.ts",
"jest.config.ts"
]
}
3 changes: 2 additions & 1 deletion libs/core/jest.config.js → libs/core/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
/* eslint-disable */
export default {
displayName: 'core',
preset: '../../jest.preset.js',
globals: {
Expand Down
3 changes: 2 additions & 1 deletion libs/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@rxnode/core",
"version": "0.0.0-stub",
"initialVersion": "1.0.0",
"license": "MIT",
"keywords": [
"rxjs",
Expand All @@ -22,6 +23,6 @@
},
"homepage": "https://github.com/IKatsuba/rxnode#readme",
"peerDependencies": {
"rxjs": "6.6.3"
"rxjs": ">= 7.0.0 < 8.0.0"
}
}
Loading

0 comments on commit 4508d9c

Please sign in to comment.