Skip to content

Commit 25766cd

Browse files
authored
Initial commit
0 parents  commit 25766cd

25 files changed

+31744
-0
lines changed

.all-contributorsrc

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"projectName": "template-name",
3+
"projectOwner": "ehmicky",
4+
"repoType": "github",
5+
"repoHost": "https://github.com",
6+
"files": [
7+
"README.md"
8+
],
9+
"imageSize": 100,
10+
"commit": true,
11+
"contributors": [
12+
{
13+
"login": "ehmicky",
14+
"name": "ehmicky",
15+
"avatar_url": "https://avatars2.githubusercontent.com/u/8136211?v=4",
16+
"profile": "https://twitter.com/ehmicky",
17+
"contributions": [
18+
"code",
19+
"design",
20+
"ideas",
21+
"doc"
22+
]
23+
}
24+
],
25+
"contributorsPerLine": 7
26+
}

.editorconfig

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
max_line_length = 80
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true

.eslintrc.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
extends: '@ehmicky/eslint-config/.eslintrc.yml'

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/ISSUE_TEMPLATE/bug_report.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Bug report
2+
description: Report a bug
3+
title: Please replace with a clear and descriptive title
4+
labels: [bug]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: Thanks for reporting this bug!
9+
- type: checkboxes
10+
attributes:
11+
label: Guidelines
12+
options:
13+
- label:
14+
Please search other issues to make sure this bug has not already
15+
been reported.
16+
required: true
17+
- label:
18+
If this is related to a typo or the documentation being unclear,
19+
please click on the relevant page's `Edit` button (pencil icon) and
20+
suggest a correction instead.
21+
required: true
22+
- type: textarea
23+
attributes:
24+
label: Describe the bug
25+
placeholder: A clear and concise description of what the bug is.
26+
validations:
27+
required: true
28+
- type: textarea
29+
attributes:
30+
label: Steps to reproduce
31+
placeholder: |
32+
Step-by-step instructions on how to reproduce the behavior.
33+
Example:
34+
1. Type the following command: [...]
35+
2. etc.
36+
validations:
37+
required: true
38+
- type: textarea
39+
attributes:
40+
label: Configuration
41+
placeholder: Command line options and/or configuration file, if any.
42+
validations:
43+
required: true
44+
- type: textarea
45+
attributes:
46+
label: Environment
47+
description: |
48+
Enter the following command in a terminal and copy/paste its output:
49+
```bash
50+
npx envinfo --system --binaries --browsers --npmPackages template-name
51+
```
52+
validations:
53+
required: true
54+
- type: checkboxes
55+
attributes:
56+
label: Pull request (optional)
57+
description:
58+
Pull requests are welcome! If you would like to help us fix this bug,
59+
please check our [contributions
60+
guidelines](../blob/main/CONTRIBUTING.md).
61+
options:
62+
- label: I can submit a pull request.
63+
required: false

.github/ISSUE_TEMPLATE/bug_types.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Bug report (TypeScript types)
2+
description: Report a bug about TypeScript types
3+
title: Please replace with a clear and descriptive title
4+
labels: [bug]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: Thanks for reporting this bug!
9+
- type: checkboxes
10+
attributes:
11+
label: Guidelines
12+
options:
13+
- label:
14+
Please search other issues to make sure this bug has not already
15+
been reported.
16+
required: true
17+
- type: textarea
18+
attributes:
19+
label: Describe the bug
20+
placeholder: A clear and concise description of what the bug is.
21+
validations:
22+
required: true
23+
- type: textarea
24+
attributes:
25+
label: Steps to reproduce
26+
description: |
27+
Please reproduce the bug using the [TypeScript playground](https://www.typescriptlang.org/play) or [Bug workbench](https://www.typescriptlang.org/dev/bug-workbench), then paste the URL here.
28+
validations:
29+
required: true
30+
- type: textarea
31+
attributes:
32+
label: Environment
33+
description: |
34+
Enter the following command in a terminal and copy/paste its output:
35+
```bash
36+
npx envinfo --system --binaries --browsers --npmPackages template-name typescript --npmGlobalPackages typescript
37+
```
38+
validations:
39+
required: true
40+
- type: checkboxes
41+
attributes:
42+
label: Pull request (optional)
43+
description:
44+
Pull requests are welcome! If you would like to help us fix this bug,
45+
please check our [contributions
46+
guidelines](../blob/main/CONTRIBUTING.md).
47+
options:
48+
- label: I can submit a pull request.
49+
required: false
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Feature request
2+
description: Suggest an idea for this project
3+
title: Please replace with a clear and descriptive title
4+
labels: [enhancement]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: Thanks for suggesting a new feature!
9+
- type: checkboxes
10+
attributes:
11+
label: Guidelines
12+
options:
13+
- label:
14+
Please search other issues to make sure this feature has not already
15+
been requested.
16+
required: true
17+
- type: textarea
18+
attributes:
19+
label: Which problem is this feature request solving?
20+
placeholder: I'm always frustrated when [...]
21+
validations:
22+
required: true
23+
- type: textarea
24+
attributes:
25+
label: Describe the solution you'd like
26+
placeholder: This could be fixed by [...]
27+
validations:
28+
required: true
29+
- type: checkboxes
30+
attributes:
31+
label: Pull request (optional)
32+
description:
33+
Pull requests are welcome! If you would like to help us fix this bug,
34+
please check our [contributions
35+
guidelines](../blob/main/CONTRIBUTING.md).
36+
options:
37+
- label: I can submit a pull request.
38+
required: false

.github/pull_request_template.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
🎉 Thanks for sending this pull request! 🎉
2+
3+
Please make sure the title is clear and descriptive.
4+
5+
If you are fixing a typo or documentation, please skip these instructions.
6+
7+
Otherwise please fill in the sections below.
8+
9+
**Which problem is this pull request solving?**
10+
11+
Example: I'm always frustrated when [...]
12+
13+
**List other issues or pull requests related to this problem**
14+
15+
Example: This fixes #5012
16+
17+
**Describe the solution you've chosen**
18+
19+
Example: I've fixed this by [...]
20+
21+
**Describe alternatives you've considered**
22+
23+
Example: Another solution would be [...]
24+
25+
**Checklist**
26+
27+
Please add a `x` inside each checkbox:
28+
29+
- [ ] I have read the [contribution guidelines](../blob/main/CONTRIBUTING.md).
30+
- [ ] I have added tests (we are enforcing 100% test coverage).
31+
- [ ] I have added documentation in the `README.md`, the `docs` directory (if
32+
any) and the `examples` directory (if any).
33+
- [ ] The status checks are successful (continuous integration). Those can be
34+
seen below.

.github/workflows/workflow.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build
2+
on: [push, pull_request]
3+
jobs:
4+
combinations:
5+
# git push --tags does not create any commits so should not trigger a new
6+
# workflow. There are no ways to skip workflows, so we skip jobs instead
7+
if: toJson(github.event.commits) != '[]'
8+
strategy:
9+
# Test on Windows/Mac/Linux using latest Node.js.
10+
# Also test on Linux with older Node.js versions.
11+
# We do not run each possible combination to make CI faster.
12+
matrix:
13+
os: [ubuntu-latest, macOS-latest, windows-latest]
14+
node: [18]
15+
include:
16+
- os: ubuntu-latest
17+
node: 14.18.0
18+
fail-fast: false
19+
runs-on: ${{ matrix.os }}
20+
# We do not use @actions/cache because restoring/saving cache currently
21+
# takes more time than the time saved on `npm ci`
22+
steps:
23+
- name: Git checkout
24+
uses: actions/checkout@v3
25+
- name: Node.js ${{ matrix.node }}
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: ${{ matrix.node }}
29+
cache: npm
30+
# TODO: remove after dropping support for Node <15.0.0, i.e. ensuring
31+
# npm v7 is used. We need npm v7 due to peerDependencies automatic
32+
# installation
33+
- name: Install latest npm
34+
run: npm install -g npm
35+
if: "${{ matrix.node == '14.18.0' }}"
36+
- name: Install dependencies
37+
run: npm ci
38+
- name: Linting
39+
run: npx gulp check
40+
- name: Build
41+
run: npx gulp build
42+
- name: Types
43+
run: npx gulp type
44+
- name: Tests
45+
run: npx gulp unit
46+
- name: Upload test coverage
47+
run: npx gulp uploadCoverage

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*~
2+
*.swp
3+
npm-debug.log
4+
node_modules
5+
/core
6+
.eslintcache
7+
.npmrc
8+
.yarn-error.log
9+
.nyc_output
10+
!.github/
11+
/coverage
12+
/build

.prettierrc.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
'@ehmicky/eslint-config'

CHANGELOG.md

Whitespace-only changes.

0 commit comments

Comments
 (0)