Skip to content

Commit

Permalink
refactor: run generator on project
Browse files Browse the repository at this point in the history
  • Loading branch information
hassankhan committed Nov 4, 2018
1 parent 1239dd8 commit 33fb6b7
Show file tree
Hide file tree
Showing 19 changed files with 349 additions and 174 deletions.
2 changes: 1 addition & 1 deletion .czrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "@commitlint/prompt"
"path": "@endemolshinegroup/cz-github"
}
2 changes: 0 additions & 2 deletions .github/ISSUE_TEMPLATE/documentation_improvement.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ about: Create an issue for improving the documentation

## Description

***Package***:

<!--
1. Any information here is helpful, such as misleading or ambiguous text
-->
Expand Down
78 changes: 78 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# These settings are synced to GitHub by https://probot.github.io/apps/settings/

repository:

# Either `true` to make the repository private, or `false` to make it public.
private: false

# Either `true` to enable issues for this repository, `false` to disable them.
has_issues: true

# Either `true` to enable projects for this repository, or `false` to disable them.
# If projects are disabled for the organization, passing `true` will cause an API error.
has_projects: false

# Either `true` to enable the wiki for this repository, `false` to disable it.
has_wiki: false

# Either `true` to enable downloads for this repository, `false` to disable them.
has_downloads: true

# Updates the default branch for this repository.
default_branch: develop

# Either `true` to allow squash-merging pull requests, or `false` to prevent
# squash-merging.
allow_squash_merge: false

# Either `true` to allow merging pull requests with a merge commit, or `false`
# to prevent merging pull requests with merge commits.
allow_merge_commit: false

# Either `true` to allow rebase-merging pull requests, or `false` to prevent
# rebase-merging.
allow_rebase_merge: true

branches:
# https://developer.github.com/v3/repos/branches/#update-branch-protection
- name: master
protection:
required_pull_request_reviews:
required_approving_review_count: 1
dismiss_stale_reviews: true
require_code_owner_reviews: true
dismissal_restrictions:
users: [ esg-bot ]
teams: [ open-source ]
required_status_checks:
strict: true
contexts: [
codeclimate/diff-coverage,
codecov/project,
continuous-integration/travis-ci,
]
enforce_admins: false
restrictions:
users: [ esg-bot ]
teams: [ open-source ]
# https://developer.github.com/v3/repos/branches/#update-branch-protection
- name: develop
protection:
required_pull_request_reviews:
required_approving_review_count: 1
dismiss_stale_reviews: true
require_code_owner_reviews: true
dismissal_restrictions:
users: [ esg-bot ]
teams: [ open-source ]
required_status_checks:
strict: true
contexts: [
codeclimate/diff-coverage,
codecov/project,
continuous-integration/travis-ci,
]
enforce_admins: false
restrictions:
users: [ esg-bot ]
teams: [ open-source ]
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ compiled

# Outputs
dist
**/docs
**/docs/api

# Dependency directories
node_modules
Expand Down
1 change: 1 addition & 0 deletions .mdlrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rules "~MD002"
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
coverage/
src/
!dist/*
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
access=public
13 changes: 10 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,19 @@ before_install:
- npm i -g yarn

script:
- yarn lint
- yarn build
- yarn test

# Environment variables marked with `secure` should be securely encrypted as described at:
# https://docs.travis-ci.com/user/environment-variables/#encrypting-environment-variables

notifications:
slack:
secure: QvyOTfC4PPIaQWfPJS5IgKcV2GjEUIF3oleLPS7Iy8iblvzPTax8Bs4NfTKt9k1aVmLGyqKnrs8MDparQeWMkJ/B6k1l4CWWSelLI/GTc0Z63jKTTNVTGfyPAfJbNeApwND45eeG08582Bs3a+w7XS5DNvuvKfDPd5Fh6iKXzIGm3o1WBBxQPHcjsexPcs8QBnD1O0x6STmK4TkgDhGQPbH9EXpM+inxcIYvTgrmb2YklBAomJLTeaHCImtxtTpPffOSVCMOWFtd/zyRbuPxlyS7jMHoVbBX4HQ+pzmOzlsMBGTLfMJE8Wg3no9wRHOdqyMFDOlRu2jEydJ7RwdVCLkYzZu2d19WRKCur2BcLmJVuVE576NUctoAWJmmYQ0dSQtB8hgMoCNe3c4HcdPkiRD7yFhOgg0TckSwLA51+vrRYY0oK2cvCKpS9qEvEowa3VwLTFB3tDBsiHZYvdQMWY2/CfRxxWOpyJ4VluJACSShQqQHIDfGpRnFt5itqCl+MBk4n/oFi8gAyfgJeJBLsMSUlgonEVtxMucEeqoI9m3cfr1R118MGtcFk8oDADBLfMEdaMfFWDytiHzfWNbdpbNzbUK0vEcrjvHarEVLJElG6w7QlEaN4i/TFs1O4FL6+XemgXnPJMxzFvgCvzfFgtkRIprMqeVkqFrAOXEFeOw=
rooms:
- secure: QvyOTfC4PPIaQWfPJS5IgKcV2GjEUIF3oleLPS7Iy8iblvzPTax8Bs4NfTKt9k1aVmLGyqKnrs8MDparQeWMkJ/B6k1l4CWWSelLI/GTc0Z63jKTTNVTGfyPAfJbNeApwND45eeG08582Bs3a+w7XS5DNvuvKfDPd5Fh6iKXzIGm3o1WBBxQPHcjsexPcs8QBnD1O0x6STmK4TkgDhGQPbH9EXpM+inxcIYvTgrmb2YklBAomJLTeaHCImtxtTpPffOSVCMOWFtd/zyRbuPxlyS7jMHoVbBX4HQ+pzmOzlsMBGTLfMJE8Wg3no9wRHOdqyMFDOlRu2jEydJ7RwdVCLkYzZu2d19WRKCur2BcLmJVuVE576NUctoAWJmmYQ0dSQtB8hgMoCNe3c4HcdPkiRD7yFhOgg0TckSwLA51+vrRYY0oK2cvCKpS9qEvEowa3VwLTFB3tDBsiHZYvdQMWY2/CfRxxWOpyJ4VluJACSShQqQHIDfGpRnFt5itqCl+MBk4n/oFi8gAyfgJeJBLsMSUlgonEVtxMucEeqoI9m3cfr1R118MGtcFk8oDADBLfMEdaMfFWDytiHzfWNbdpbNzbUK0vEcrjvHarEVLJElG6w7QlEaN4i/TFs1O4FL6+XemgXnPJMxzFvgCvzfFgtkRIprMqeVkqFrAOXEFeOw=
on_success: change
on_failure: always

env:
global:
Expand All @@ -24,9 +31,9 @@ env:
- secure: 2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P86tw6P5rS2JV5A9/WnJNSdFukfIWGnWsER+XywZCrGTET6gO8p9NaSNkUBg60QfAN8rCMZdV1l6uDIQPWLaA87oaBHfVP79A+95WsOpV7F8GGqQAsgDjxq23VWbm37kpX4OIn7qAqQpG8Vm426PkZObgS6f6la/+FwTq2jUz+OchDXSrkuKQ81BCZsvShBuitYYY9+L0jKGWZRRCZCNW9TPHjKcM77mENAa/HiV3mOOzmlRVe2Z2MktWYBpb1Y8igrZ0glsS0KCtlt6tnGlEeXIOrRhjSErU=
- secure: wkxCjmDPjoMlrUKgHLtHWULH5VFga++oHMgZmmyGlllIh0sTMAnlDnFTg+zgcXPOujTGg9Lqswv9Zhxwqc9ulKorr/PIn0DmRINAy5iOeJgRsv5A8EuII/suOxE8i7lfCc7vR+Dij+lmZZqUzurbQduy/+2Ofit63Xx6p1ixcB4bwOfRcK55fGByhKrAIeYhivN4NrlnBsXRvg0S13q+AO2hIeRZfQHvZ63Vb5A8g4ybSisHZEd89UgtxmUGX8hcuTWjJhHotpXVWpMNvrq3BTHPlTtDKvfaPmxqahYrPVZdWZ4Fu1j9Yd251E7ctifuhZn02FZwiH+NJVaKAYHe0JYXzgML7hDav7/RaPlolvwx6IM69F9qrmTcKuWBA8mLn7+3htXSAe/wttQl3gwzdweDv6i4vLXqctqSyugYDGz38KY9AXpMazADrDyKNQeX+gkAJFfc2S7RMDUTsYSVyq9Kr7Ny5wKv0XZ/gwL9/vp9ns2SbUX2Wl/c6MxrxRDmIqqAg5sgVbDvsbVBmcOF0uGUokJdymLLx3BrBFEadhH/ic7vNBx+ATevX/1TxtjipIHXV8bX3jwsqBJCxoPBNUkITXeo05q4ATBcdWNCxjR3ZRM70TfKVemHzERM4cu5qlnhOU6t0cLhZkq008cc98mQ1533mIyC8nezZUkC6LM=
- export GIT_AUTHOR_NAME="EndemolShineGroupUser"
- export GIT_AUTHOR_NAME="esg-bot"
- export GIT_AUTHOR_EMAIL="[email protected]"
- export GIT_COMMITTER_NAME="EndemolShineGroupUser"
- export GIT_COMMITTER_NAME="esg-bot"
- export GIT_COMMITTER_EMAIL="[email protected]"

jobs:
Expand Down
5 changes: 5 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# These users are the default owners for everything in
# the repo. Unless a later match takes precedence,
# these users will be requested for review when someone
# opens a pull request.
* @EndemolShineGroup/open-source
2 changes: 0 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ will be deployed as soon as possible.

**Happy coding**!

[link-lerna]: https://lernajs.io/
[link-yarn-workspaces]: https://yarnpkg.com/blog/2017/08/02/introducing-workspaces/
[link-tslint]: https://palantir.github.io/tslint/
[link-prettier]: https://prettier.io/
[link-typescript]: https://www.typescriptlang.org/
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @endemolshinegroup/github-backup-cli
![Banner][icon-banner]

[![MIT Licensed][icon-license]][link-license]
[![NPM Version][icon-npm]][link-npm]
Expand Down Expand Up @@ -40,6 +40,8 @@ export GH_TOKEN=123
docker run -it -e "GH_TOKEN=${GH_TOKEN}" github-backup
```

[icon-banner]: docs/assets/banner.png

[icon-license]: https://img.shields.io/github/license/EndemolShineGroup/github-backup-cli.svg?longCache=true&style=flat-square
[link-license]: LICENSE
[icon-npm]: https://img.shields.io/npm/v/@endemolshinegroup/github-backup-cli.svg?longCache=true&style=flat-square
Expand Down
3 changes: 3 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coverage:
status:
patch: false
Binary file added docs/assets/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added docs/content/.gitkeep
Empty file.
4 changes: 2 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const preset = require('ts-jest').jestPreset;

module.exports = {
preset: 'ts-jest',
collectCoverage: true,
collectCoverage: false,
coveragePathIgnorePatterns: [
'/node_modules/',
'/tests/',
Expand Down Expand Up @@ -33,4 +33,4 @@ module.exports = {
transformIgnorePatterns: [
'<rootDir>/node_modules/',
],
};
};
22 changes: 10 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,30 @@
"yarn": ">=1.3.0"
},
"scripts": {
"commit": "git-cz",
"build": "rimraf dist/ && tsc",
"pretest": "rimraf coverage/",
"test": "jest --no-cache --coverage",
"prebuild": "rimraf dist/",
"build": "tsc",
"build:docker": "docker build -t github-backup-cli . ",
"build:docs": "rimraf docs/api && typedoc --out docs/api --target es6 --theme minimal --mode file src",
"build:watch": "tsc --watch",
"lint": "tslint -p tsconfig.json -t codeFrame 'src/**/*.ts' -e 'src/**/*.spec.ts'",
"semantic-release": "semantic-release",
"run:docker": "docker run -it -e \"GH_TOKEN=${GH_TOKEN}\" github-backup-cli",
"pretest": "rimraf coverage/",
"test": "jest --no-cache",
"semantic-release": "semantic-release"
"commit": "git-cz",
"lint": "tslint -p tsconfig.json -t codeFrame 'src/**/*.ts' -e 'src/**/*.spec.ts'"
},
"dependencies": {
"@octokit/rest": "^15.13.0",
"aws-sdk": "^2.329.0",
"debug": "^4.0.1",
"promisify-child-process": "^2.1.0",
"rimraf": "^2",
"tslib": "^1.9.3",
"yargs": "^12.0.2"
},
"devDependencies": {
"@commitlint/cli": "^7",
"@commitlint/config-conventional": "^7",
"@commitlint/prompt": "^7",
"@endemolshinegroup/cz-github": "^1",
"@endemolshinegroup/prettier-config": "^1.0.0",
"@endemolshinegroup/tslint-config": "^1.0.2",
"@iteratec/semantic-release-docker": "^1.0.1",
Expand All @@ -62,14 +63,11 @@
"prettier": "^1",
"rimraf": "^2",
"semantic-release": "^15",
"ts-jest": "^23.10.0-beta.1",
"ts-jest": "^23",
"tslint": "^5",
"tslint-config-prettier": "^1",
"tslint-eslint-rules": "^5.4.0",
"typedoc": "^0.13.0",
"typescript": "^3"
},
"publishConfig": {
"access": "public"
}
}
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
"allowSyntheticDefaultImports": true,
"declaration": true,
"esModuleInterop": true,
"importHelpers": true,
"lib": [
"dom",
"es2015"
],
"module": "commonjs",
"outDir": "./dist",
"resolveJsonModule": true,
"rootDir": "./src",
"sourceMap": true,
"strict": true,
"target":"ES2018"
"target":"es2015"
},
"include": [
"src/**/*.ts"
Expand Down
5 changes: 4 additions & 1 deletion tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"declaration": false
"declaration": false,
"inlineSourceMap": true,
"inlineSources": true,
"sourceMap": false
}
}
Loading

0 comments on commit 33fb6b7

Please sign in to comment.