Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
language: node_js
node_js:
- '10'

before_install:
- npm install -g yarn
- '14'

before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
Expand All @@ -26,4 +23,4 @@ deploy:
provider: script
skip_cleanup: true
script:
- yarn release
- yarn release
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# blank-ts-monorepo
Template mono repository for TS OSS projects
# @qiwi/semrel-toolkit-monorepo
Semantic release tools, plugins and configs for QIWI OSS projects

* [@qiwi/semrel-toolkit](./packages/toolkit/README.md)
* [@qiwi/semrel-config](./packages/config/README.md)
* [@qiwi/semrel-config-monorepo](./packages/config-monorepo/README.md)
5 changes: 2 additions & 3 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"collectCoverage": true,
"projects": [
"<rootDir>/packages/common/jest.config.json",
"<rootDir>/packages/facade/jest.config.json",
"<rootDir>/packages/plugin/jest.config.json"
"<rootDir>/packages/config/jest.config.json",
"<rootDir>/packages/config-monorepo/jest.config.json"
]
}
18 changes: 7 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"name": "blank-ts-monorepo",
"name": "@qiwi/semrel-toolkit-monorepo",
"version": "0.0.0",
"description": "Blank TS monorepo",
"main": "target/es5/index.ts",
"description": "Semantic release tools, plugins and configs for QIWI OSS projects",
"workspaces": [
"packages/*"
],
"private": true,
"scripts": {
"clean": "lerna clean --yes && lerna run clean",
"prebuild": "tsc -b packages/facade/tsconfig.es5.json",
"build": "yarn clean && yarn prebuild && lerna run build --stream --concurrency 2",
"build": "yarn clean && lerna run build --stream --concurrency 2",
"bootstrap": "lerna bootstrap",
"jest": "jest",
"test:report": "yarn test && yarn coveralls:push",
Expand All @@ -23,17 +21,15 @@
"release": "multi-semantic-release"
},
"devDependencies": {
"@qiwi/multi-semantic-release": "^3.8.4",
"@types/jest": "^26.0.14",
"@types/node": "^14.11.2",
"@swissquote/crafty-preset-jest": "^1.13.7",
"coveralls": "^3.1.0",
"find-git-root": "^1.0.4",
"jest": "^26.4.2",
"jest": "^26.6.1",
"lerna": "^3.22.1",
"snazzy": "^8.0.0"
"snazzy": "^9.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/antongolub/blank-ts-monorepo.git"
"url": "git+https://github.com/qiwi/semantic-release-toolkit.git"
}
}
17 changes: 0 additions & 17 deletions packages/common/.releaserc

This file was deleted.

59 changes: 0 additions & 59 deletions packages/common/package.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/common/src/main/ts/index.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/common/src/test/ts/index.ts

This file was deleted.

13 changes: 0 additions & 13 deletions packages/common/tsconfig.es5.json

This file was deleted.

13 changes: 0 additions & 13 deletions packages/common/tsconfig.es6.json

This file was deleted.

16 changes: 0 additions & 16 deletions packages/common/tsconfig.json

This file was deleted.

9 changes: 0 additions & 9 deletions packages/common/tsconfig.test.json

This file was deleted.

15 changes: 0 additions & 15 deletions packages/common/typedoc.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ module.exports = {
extends: [
'eslint-config-qiwi',
'prettier',
'prettier/@typescript-eslint',
],
};
1 change: 1 addition & 0 deletions packages/config-monorepo/.releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('./target/es5')
23 changes: 23 additions & 0 deletions packages/config-monorepo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# @qiwi/semrel-config-monorepo
Shared QIWI OSS config for [multi-semantic-release](https://github.com/qiwi/multi-semantic-release)
What's inside:
* [@qiwi/semantic-release-gh-pages-plugin](https://github.com/qiwi/semantic-release-gh-pages-plugin)
* [@semantic-release/commit-analyzer](https://github.com/semantic-release/commit-analyzer)
* [@semantic-release/release-notes-generator](https://github.com/semantic-release/release-notes-generator)
* [@semantic-release/changelog](https://github.com/semantic-release/changelog)
* [@semantic-release/npm](https://github.com/semantic-release/npm)
* [@semantic-release/github](https://github.com/semantic-release/github)
* [@semantic-release/git](https://github.com/semantic-release/git)

## Install
```shell script
yarn add @qiwi/semrel-config-monorepo
```

## Usage
Inject this shared config in any way supported by [**msr** configuration flow](https://github.com/dhoulb/multi-semantic-release#configuration).
```json
{
"extends": "@qiwi/semrel-config--monorepo"
}
```
Original file line number Diff line number Diff line change
@@ -1,34 +1,23 @@
{
"testEnvironment": "node",
"transform": {
"^.+\\.tsx?$": "ts-jest",
"^.+\\.jsx?$": "@swissquote/crafty-preset-jest/src/esm-transformer"
},
"collectCoverage": true,
"coveragePathIgnorePatterns": [
],
"collectCoverageFrom": [
"<rootDir>/src/main/**/*.(j|t)s"
"<rootDir>/src/main/**/*.js"
],
"testMatch": [
"<rootDir>/src/test/js/*.js",
"<rootDir>/src/test/ts/*.ts"
"<rootDir>/src/test/js/*.js"
],
"testPathIgnorePatterns": [
"/node_modules/"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"preset": "ts-jest",
"globals": {
"ts-jest": {
"tsConfig": "<rootDir>/tsconfig.test.json"
}
}
]
}
50 changes: 50 additions & 0 deletions packages/config-monorepo/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"name": "@qiwi/semrel-config-monorepo",
"version": "0.0.0",
"private": false,
"publishConfig": {
"access": "public"
},
"description": "QIWI shared semrel config for monorepos",
"keywords": [],
"main": "target/es5/index.js",
"source": "target/es5/index.js",
"files": [
"README.md",
"CHANGELOG.md",
"target"
],
"scripts": {
"test": "yarn lint && yarn test:spec",
"jest": "jest -w=1 --config=jest.config.json",
"lint": "eslint src/**/*.ts",
"lint:fix": "yarn lint --fix",
"clean": "rimraf target",
"build": "yarn build:es5",
"build:es5": "mkdir -p target/es5/ && cp -r src/main/js/ target/es5/",
"postupdate": "yarn && yarn build && yarn test",
"format": "prettier --write 'src/**/*.ts'"
},
"dependencies": {
"@qiwi/semantic-release-gh-pages-plugin": "^5.0.1",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"@semantic-release/github": "^7.1.1",
"@semantic-release/npm": "^7.0.6",
"@semantic-release/release-notes-generator": "^9.0.1"
},
"devDependencies": {},
"peerDependencies": {},
"optionalDependencies": {},
"repository": {
"type": "git",
"url": "git+https://github.com/qiwi/semantic-release-toolkit.git"
},
"author": "Anton Golub <mailbox@antongolub.ru>",
"license": "MIT",
"bugs": {
"url": "https://github.com/qiwi/semantic-release-toolkit/issues"
},
"homepage": "https://github.com/qiwi/semantic-release-toolkit/#readme"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
module.exports = {
"branch": "master",
"plugins": [
"@semantic-release/commit-analyzer",
Expand Down
7 changes: 7 additions & 0 deletions packages/config-monorepo/src/test/js/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import config from '../../main/js'

describe('@qiwi/semrel-config-monorepo', () => {
it('is not empty', () => {
expect(config).not.toBeUndefined()
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ module.exports = {
extends: [
'eslint-config-qiwi',
'prettier',
'prettier/@typescript-eslint',
],
};
1 change: 1 addition & 0 deletions packages/config/.releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../config-monorepo/target/es5')
Loading