Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 215cfd7

Browse files
committed
chore: initial commit
0 parents  commit 215cfd7

31 files changed

+8354
-0
lines changed

.codeclimate.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: "2"
2+
3+
plugins:
4+
markdownlint:
5+
enabled: true
6+
7+
exclude_patterns:
8+
- ".github/" # Exclude GitHub issue templates
9+
- "scripts/" # Exclude project build scripts
10+
- "CHANGELOG.md" # Exclude automatically generated CHANGELOG.md
11+
- "**/dist/"
12+
- "**/node_modules/"
13+
- "**/tests/"
14+
- "**/__fixtures__/"
15+
- "**/vendor/"
16+
- "**/*.d.ts"
17+
- "**/*.spec.ts"
18+
- "**/*.integ.ts"

.commitlintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional']
3+
};

.czrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "@commitlint/prompt"
3+
}

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig helps developers define and maintain
2+
# consistent coding styles between different editors and IDEs.
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
indent_style = space
9+
indent_size = 2
10+
end_of_line = lf
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
name: Bug report
3+
about: Create an issue for a bug or any other unexpected behaviour
4+
5+
---
6+
7+
<!--
8+
1. Please check if an issue already exists so there are no duplicates
9+
2. Check out and follow our Guidelines: https://github.com/EndemolShineGroup/cosmiconfig-typescript-loader/blob/develop/CONTRIBUTING.md
10+
3. Fill out the whole template so we have a good overview on the issue
11+
4. Do not remove any section of the template. If something is not applicable leave it empty but leave it in the Issue
12+
5. Please follow the template, otherwise we'll have to ask you to update it
13+
-->
14+
15+
## Description
16+
17+
### What went wrong?
18+
19+
### What did you expect should have happened?
20+
21+
### What was the config you used?
22+
23+
### What stacktrace or error messages did you see?
24+
25+
<details>
26+
<summary>Stack Trace:</summary>
27+
28+
<!--
29+
Paste stack trace here
30+
-->
31+
32+
```sh
33+
$
34+
```
35+
36+
</details>
37+
38+
### Similar or dependent issues:
39+
40+
- #12345
41+
42+
## Additional Data
43+
44+
***Version of `cosmiconfig-typescript-loader` you're using***:
45+
46+
***Node Version***:
47+
48+
***Operating System***:
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: Documentation improvement
3+
about: Create an issue for improving the documentation
4+
5+
---
6+
7+
<!--
8+
1. Please check if an issue already exists so there are no duplicates
9+
2. Check out and follow our Guidelines: https://github.com/EndemolShineGroup/cosmiconfig-typescript-loader/blob/develop/CONTRIBUTING.md
10+
3. Fill out the whole template so we have a good overview on the issue
11+
4. Do not remove any section of the template. If something is not applicable leave it empty but leave it in the Issue
12+
5. Please follow the template, otherwise we'll have to ask you to update it
13+
-->
14+
15+
## Description
16+
17+
***Package***:
18+
19+
<!--
20+
1. Any information here is helpful, such as misleading or ambiguous text
21+
-->
22+
23+
### Similar or dependent issues:
24+
25+
- #12345
26+
27+
## Additional Data
28+
29+
***Version of `cosmiconfig-typescript-loader` you're using***:
30+
31+
***Node Version***:
32+
33+
***Operating System***:
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
<!--
8+
1. Please check if an issue already exists so there are no duplicates
9+
2. Check out and follow our Guidelines: https://github.com/EndemolShineGroup/cosmiconfig-typescript-loader/blob/develop/CONTRIBUTING.md
10+
3. Fill out the whole template so we have a good overview on the issue
11+
4. Do not remove any section of the template. If something is not applicable leave it empty but leave it in the Issue
12+
5. Please follow the template, otherwise we'll have to ask you to update it
13+
-->
14+
15+
## Description
16+
17+
### What is the use case that should be solved?
18+
19+
<!--
20+
The more detail you describe this in, the easier it is to understand for us :)
21+
-->
22+
23+
### If there is additional config how would it look?
24+
25+
### Similar or dependent issues:
26+
27+
- #12345
28+
29+
## Additional Data
30+
31+
***Version of `cosmiconfig-typescript-loader` you're using***:
32+
33+
***Node Version***:
34+
35+
***Operating System***:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!--
2+
1. Please check out and follow our Contributing Guidelines: https://github.com/EndemolShineGroup/cosmiconfig-typescript-loader/blob/develop/CONTRIBUTING.md
3+
2. Do not remove any section of the template. If something is not applicable leave it empty but leave it in the PR
4+
3. Please follow the template, otherwise we'll have to ask you to update it and it will take longer for your PR to be merged
5+
-->
6+
7+
## What did you implement:
8+
9+
<!--
10+
Briefly describe the feature if no issue exists for this PR
11+
-->
12+
13+
## How did you implement it:
14+
15+
<!--
16+
If this is a non-trivial change please briefly describe your implementation so its easy for us to understand and review your code.
17+
-->
18+
19+
## How can we verify it:
20+
21+
<!--
22+
Add any applicable config, commands, screenshots or other resources to make it easy for us to verify this works. The easier you make it for us to review a PR, the faster we can review and merge it.
23+
24+
Examples:
25+
* Screenshots - Showing the difference between your output and the `develop` branch
26+
* Other - Anything else that comes to mind to help us evaluate
27+
-->
28+
29+
## Tasks:
30+
31+
- [ ] Write tests
32+
- [ ] Write documentation
33+
- [ ] Fix linting errors
34+
- [ ] Make sure code coverage hasn't dropped
35+
- [ ] Provide verification config / commands / resources
36+
- [X] Enable "Allow edits from maintainers" for this PR
37+
- [ ] Update the messages below
38+
39+
40+
***Is this ready for review?:*** NO
41+
***Is it a breaking change?:*** NO

.gitignore

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# OS files
2+
.DS_Store
3+
Thumbs.db
4+
5+
# Logs
6+
logs
7+
!services/logs
8+
*.log
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
13+
# Runtime data
14+
pids
15+
*.pid
16+
*.seed
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
24+
# nyc test coverage
25+
.nyc_output
26+
27+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
28+
.grunt
29+
30+
# node-waf configuration
31+
.lock-wscript
32+
33+
# Compiled binary addons (http://nodejs.org/api/addons.html)
34+
build/Release
35+
compiled
36+
37+
# Outputs
38+
dist
39+
**/docs/api
40+
41+
# Dependency directories
42+
node_modules
43+
jspm_packages
44+
45+
# Optional cache directories
46+
.npm
47+
.awcache
48+
.rpt2_cache
49+
50+
# Optional REPL history
51+
.node_repl_history
52+
53+
# JetBrains IDEs
54+
.idea
55+
.vscode

.huskyrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"hooks": {
3+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
4+
"pre-commit": "lint-staged"
5+
}
6+
}

.lintstagedrc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
linters:
2+
"src/**/*.ts":
3+
- "tslint --fix" # Run TSLint
4+
- "prettier --write" # Run Prettier
5+
- "jest --bail --findRelatedTests" # Run tests
6+
- "git add"
7+
ignore:
8+
- "**/__fixtures__/error.ts"

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!dist/*

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lts/*

.releaserc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"verifyConditions": [
3+
{
4+
"path": "@semantic-release/changelog",
5+
"changelogFile": "CHANGELOG.md"
6+
},
7+
"@semantic-release/npm",
8+
"@semantic-release/git"
9+
],
10+
"prepare": [
11+
{
12+
"path": "@semantic-release/changelog",
13+
"changelogFile": "CHANGELOG.md"
14+
},
15+
"@semantic-release/npm",
16+
"@semantic-release/git"
17+
]
18+
}

.travis.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
language: node_js
2+
3+
cache: yarn
4+
5+
node_js:
6+
- 8
7+
- 10
8+
9+
before_install:
10+
- npm i -g yarn
11+
12+
script:
13+
- yarn build
14+
- yarn test
15+
16+
# Environment variables marked with `secure` should be securely encrypted as described at:
17+
# https://docs.travis-ci.com/user/environment-variables/#encrypting-environment-variables
18+
19+
notifications:
20+
slack:
21+
# secure
22+
your-slack-organisation:your-slack-api-token
23+
24+
env:
25+
global:
26+
# secure
27+
- CC=your-code-climate-token
28+
# secure
29+
- GH_TOKEN=your-github-token
30+
# secure
31+
- NPM_TOKEN=your-npm-token
32+
- export GIT_AUTHOR_NAME="EndemolShineGroupUser"
33+
- export GIT_AUTHOR_EMAIL="[email protected]"
34+
- export GIT_COMMITTER_NAME="EndemolShineGroupUser"
35+
- export GIT_COMMITTER_EMAIL="[email protected]"
36+
37+
jobs:
38+
include:
39+
- stage: coverage
40+
if: type != pull_request
41+
before_script:
42+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
43+
- chmod +x ./cc-test-reporter
44+
- ./cc-test-reporter before-build
45+
after_script:
46+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
47+
after_success:
48+
- yarn global add codecov
49+
- codecov
50+
- stage: release
51+
if: branch = master AND type != pull_request
52+
after_success:
53+
- yarn semantic-release
54+
- git clone https://${GH_TOKEN}@github.com/$TRAVIS_REPO_SLUG.git $TRAVIS_REPO_SLUG
55+
- cd $TRAVIS_REPO_SLUG
56+
- git fetch --all
57+
- git merge origin/master
58+
- git push

CHANGELOG.md

Whitespace-only changes.

0 commit comments

Comments
 (0)