Skip to content

Commit

Permalink
Merge chore-use-monorepo-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain Lenzotti committed Jul 14, 2020
2 parents 6b1e6b1 + e6c1247 commit bf676ab
Show file tree
Hide file tree
Showing 19 changed files with 1,220 additions and 2,889 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@ language: node_js
cache: yarn

node_js:
- '12'
- '10'
- 14
- 12
- 10

script: yarn test && yarn travis:coveralls
script: yarn test && (yarn coveralls || true)

jobs:
include:
- stage: deploy
name: 'Deploy packages'
node_js: 12
if: (NOT type IN (pull_request)) AND (branch = production)
script: yarn semantic-release && yarn docs:publish
script: yarn release && yarn docs:publish && yarn examples:publish

branches:
except:
Expand Down
56 changes: 27 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,24 @@
"description": "A multi channel logger written in TypeScript.",
"private": true,
"scripts": {
"prepublishOnly": "gflow release post",
"gflow-release-pre": "",
"semantic-release": "semantic-release",
"semantic-release:dry-run": "semantic-release --dry-run",
"clean": "gulp clean:workspace",
"clean": "monorepo clean workspace",
"test": "yarn clean && yarn test:lint && yarn test:coverage",
"test:unit": "cross-env NODE_ENV=test mocha",
"test:coverage": "cross-env NODE_ENV=test nyc mocha",
"test:lint": "tslint --project tsconfig.json",
"test:lint:fix": "tslint --project tsconfig.json --fix",
"travis:deploy-once": "travis-deploy-once",
"travis:coveralls": "nyc report --reporter=text-lcov | coveralls",
"build": "lerna run build --stream && gulp repo:build",
"publish:dryRun": "yarn build && gulp repo:publishDryRun",
"docs:serve": "yarn api:build && yarn vuepress:serve ",
"docs:build": "yarn api:build && yarn vuepress:build ",
"docs:publish": "yarn docs:build && gulp docs:publish",
"coveralls": "nyc report --reporter=text-lcov | coveralls",
"build": "monorepo build",
"sync:packages": "monorepo sync packages",
"docs:serve": "yarn api:build && yarn vuepress:serve",
"docs:build": "yarn api:build && yarn vuepress:build",
"docs:publish": "yarn docs:build && monorepo publish ghpages",
"api:build": "lerna run build && ts-doc",
"vuepress:build": "cross-env NODE_ENV=production vuepress build docs",
"vuepress:serve": "vuepress dev docs",
"prettier": "prettier '{src,test}/**/*.ts' --write"
"prettier": "prettier '{src,test}/**/*.ts' --write",
"release": "semantic-release",
"release:dryRun": "semantic-release --dry-run"
},
"repository": {
"type": "git",
Expand All @@ -42,11 +39,12 @@
"bugs": {
"url": "https://github.com/TypedProject/logger/issues"
},
"homepage": "https://github.com/TypedProject//logger",
"homepage": "https://github.com/TypedProject/logger",
"dependencies": {
"lerna": "3.18.4"
},
"devDependencies": {
"@tsed/monorepo-utils": "1.8.3",
"@typedproject/ts-doc": "4.0.6",
"@types/chai": "^4.1.7",
"@types/chai-as-promised": "7.1.0",
Expand All @@ -61,37 +59,24 @@
"coveralls": "^3.0.3",
"cross-env": "6.0.3",
"execa": "3.3.0",
"fancy-log": "1.3.3",
"gflow": "^4.0.5",
"gulp": "4.0.2",
"gulp-clean": "0.4.0",
"gulp-exec": "4.0.0",
"gulp-json-editor": "2.2.1",
"gulp-load-plugins": "2.0.0",
"gulp-replace": "^1.0.0",
"gulp-sourcemaps": "^2.6.4",
"gulp-typescript": "^5.0.0",
"husky": "^4.2.5",
"lint-staged": "^8.1.0",
"mocha": "7.1.0",
"nyc": "^13.3.0",
"prettier": "^1.13.5",
"require-dir": "1.2.0",
"rimraf": "^2.6.3",
"semantic-release": "^15.13.18",
"sinon": "^7.2.7",
"sinon-chai": "^3.3.0",
"source-map-support": "0.5.16",
"travis-deploy-once": "^5.0.0",
"ts-node": "^8.0.3",
"tsconfig-paths": "3.9.0",
"tslint": "^5.13.1",
"typescript": "3.5.3",
"vue": "2.6.11",
"vuepress": "1.4.0",
"vue-analytics": "5.17.2",
"vue-template-compiler": "2.6.11",
"vuepress": "1.3.0",
"vuepress-theme-tsed": "2.6.0"
"vuepress-theme-tsed": "2.8.3"
},
"husky": {
"hooks": {
Expand All @@ -107,5 +92,18 @@
"packages": [
"packages/*"
]
},
"resolutions": {
"watchpack": "1.6.1"
},
"monorepo": {
"productionBranch": "production",
"npmAccess": "public",
"ghpages": {
"dir": "./docs/.vuepress/dist",
"url": "https://github.com/TypedProject/logger.git",
"branch": "gh-pages",
"cname": "logger.tsed.io"
}
}
}
16 changes: 8 additions & 8 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module.exports = {
branch: 'production',
verifyConditions: ['@semantic-release/github', '@semantic-release/npm'],
analyzeCommits: ['@semantic-release/commit-analyzer'],
branch: require('./package.json').monorepo.productionBranch,
verifyConditions: ["@semantic-release/github", "@semantic-release/npm", "@tsed/monorepo-utils/semantic-release"],
analyzeCommits: ["@semantic-release/commit-analyzer"],
verifyRelease: [],
generateNotes: ['@semantic-release/release-notes-generator'],
prepare: ['@semantic-release/npm', './tasks/semantic/repo.js', 'gflow/src/command/release'],
publish: ['./tasks/semantic/repo.js', '@semantic-release/github'],
success: ['@semantic-release/github', 'gflow/src/command/release', './tasks/semantic/repo.js'], // ,
fail: ['@semantic-release/github'],
generateNotes: ["@semantic-release/release-notes-generator"],
prepare: ["@semantic-release/npm", "@tsed/monorepo-utils/semantic-release"],
publish: ["@tsed/monorepo-utils/semantic-release", "@semantic-release/github"],
success: ["@semantic-release/github", "@tsed/monorepo-utils/semantic-release"],
fail: ["@semantic-release/github"],
npmPublish: false
};
32 changes: 0 additions & 32 deletions repo.config.js

This file was deleted.

27 changes: 0 additions & 27 deletions tasks/gulp/clean.js

This file was deleted.

59 changes: 0 additions & 59 deletions tasks/gulp/docs.js

This file was deleted.

Loading

0 comments on commit bf676ab

Please sign in to comment.