Skip to content

Commit 622e5b4

Browse files
committed
initial commit
0 parents  commit 622e5b4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+10656
-0
lines changed

Diff for: .cz-config.js

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
const commitLintConfig = require("./commitlint.config");
2+
const generateScopes = () => {
3+
let rules = [];
4+
for (rule of commitLintConfig.rules["scope-enum"][2]) {
5+
rules.push({ name: rule });
6+
}
7+
return rules;
8+
};
9+
10+
module.exports = {
11+
//See here for options details https://github.com/leonardoanalista/cz-customizable#options
12+
types: [
13+
{ value: "feat", name: "feat: A new feature" },
14+
{ value: "fix", name: "fix: A bug fix" },
15+
{ value: "docs", name: "docs: Documentation only changes" },
16+
{
17+
value: "style",
18+
name: "style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)"
19+
},
20+
{ value: "refactor", name: "refactor: A code change that neither fixes a bug nor adds a feature" },
21+
{ value: "perf", name: "perf: A code change that improves performance" },
22+
{ value: "test", name: "test: Adding missing tests or correcting existing tests" },
23+
{
24+
value: "build",
25+
name: "build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)"
26+
},
27+
{
28+
value: "ci",
29+
name: "ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)"
30+
},
31+
{
32+
value: "chore",
33+
name: "chore: Changes to the build process or auxiliary tools and libraries such as documentation generation"
34+
},
35+
{ value: "revert", name: "revert: Reverts a previous commit" }
36+
],
37+
scopes: generateScopes()
38+
};

Diff for: .editorconfig

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This file is for unifying the coding style for different editors and IDEs.
2+
# More information at http://editorconfig.org
3+
4+
# top-most EditorConfig file
5+
root = true
6+
7+
# Unix-style newlines with a newline ending every file.
8+
# Tab for indentation, whitespace trimming and UTF-8 encoding
9+
[*]
10+
end_of_line = lf
11+
insert_final_newline = true
12+
indent_style = tab
13+
trim_trailing_whitespace = false
14+
charset = utf-8
15+
16+
[*.bat]
17+
end_of_line = crlf
18+
19+
[{package.json,.travis.yml}]
20+
indent_style = space
21+
indent_size = 2
22+
23+
[**.{css, pcss, scss,json, sh}]
24+
indent_style = space
25+
indent_size = 2
26+
27+
[*.md]
28+
insert_final_newline = false
29+
trim_trailing_whitespace = false
30+

Diff for: .gitattributes

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# JS and TS files must always use LF for tools to work
5+
*.js eol=lf
6+
*.ts eol=lf

Diff for: .github/ISSUE_TEMPLATE.md

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<!-- Note: for support questions please use Stack Overflow: https://stackoverflow.com/questions/tagged/nbb-code-style -->
2+
3+
## I'm submitting a...
4+
5+
<!-- Check one of the following options with "x" -->
6+
<pre><code>
7+
[ ] Regression (a behavior that used to work and stopped working in a new release)
8+
[ ] Bug report <!-- Please search GitHub for a similar issue or PR before submitting -->
9+
[ ] Feature request
10+
[ ] Documentation issue or request
11+
[ ] Support request => Please do not submit support request here, instead see https://github.com/NationalBankBelgium/code-style/blob/master/CONTRIBUTING.md#got-a-question-or-problem
12+
</code></pre>
13+
14+
## Current behavior
15+
16+
<!-- Describe how the issue manifests. -->
17+
18+
## Expected behavior
19+
20+
<!-- Describe what the desired behavior would be. -->
21+
22+
## Minimal reproduction of the problem with instructions
23+
24+
<!--
25+
For bug reports please provide a *MINIMAL DEMO* of the problem via https://plnkr.co or
26+
provide a standalone git repository demonstrating the problem
27+
-->
28+
29+
## What is the motivation / use case for changing the behavior?
30+
31+
<!-- Describe the motivation or the concrete use case. -->
32+
33+
## Environment
34+
35+
<pre><code>
36+
Angular version: X.Y.Z
37+
Code Style version: X.Y.Z
38+
<!-- Check whether this is still an issue in the most recent Angular version -->
39+
40+
Browser:
41+
- [ ] Chrome (desktop) version XX
42+
- [ ] Chrome (Android) version XX
43+
- [ ] Chrome (iOS) version XX
44+
- [ ] Firefox version XX
45+
- [ ] Safari (desktop) version XX
46+
- [ ] Safari (iOS) version XX
47+
- [ ] IE version XX
48+
- [ ] Edge version XX
49+
50+
For Tooling issues:
51+
- Node version: XX <!-- run `node --version` -->
52+
- Platform: <!-- Mac, Linux, Windows -->
53+
54+
Others:
55+
<!-- Anything else relevant? Operating system version, IDE, package manager, HTTP server, ... -->
56+
</code></pre>

Diff for: .github/PULL_REQUEST_TEMPLATE.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
## PR Checklist
2+
3+
Please check if your PR fulfills the following requirements:
4+
5+
- [ ] The commit message follows our guidelines: https://github.com/NationalBankBelgium/code-style/blob/master/CONTRIBUTING.md#-commit-message-guidelines
6+
- [ ] Tests for the changes have been added (for bug fixes / features)
7+
- [ ] Docs have been added / updated (for bug fixes / features)
8+
9+
## PR Type
10+
11+
What kind of change does this PR introduce?
12+
13+
<!-- Please check the one that applies to this PR using "x". -->
14+
15+
```
16+
[ ] Bugfix
17+
[ ] Feature
18+
[ ] Code style update (formatting, local variables)
19+
[ ] Refactoring (no functional changes, no api changes)
20+
[ ] Build related changes
21+
[ ] CI related changes
22+
[ ] Documentation content changes
23+
[ ] Other... Please describe:
24+
```
25+
26+
## What is the current behavior?
27+
28+
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
29+
30+
Issue Number: N/A
31+
32+
## What is the new behavior?
33+
34+
## Does this PR introduce a breaking change?
35+
36+
```
37+
[ ] Yes
38+
[ ] No
39+
```
40+
41+
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
42+
43+
## Other information

Diff for: .gitignore

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Build
2+
dist/
3+
.awcache/
4+
.tmp/
5+
/.tmp/
6+
tmp/
7+
8+
# Reports directory
9+
reports/
10+
11+
# Logs
12+
logs/
13+
*.log
14+
15+
# Runtime data
16+
pids
17+
*.pid
18+
*.seed
19+
20+
# Coverage directory used by tools like istanbul
21+
coverage
22+
23+
# Bak
24+
*.bak
25+
26+
# Node
27+
node_modules/
28+
npm-debug.log
29+
/npm-debug.log.*
30+
31+
# OS generated files #
32+
Desktop.ini
33+
Thumbs.db
34+
.DS_Store
35+
ehthumbs.db
36+
Icon?
37+
38+
# JetBrains IDEs
39+
*.iml
40+
.idea/
41+
.webstorm/
42+
*.swp
43+
44+
# IDE - VSCode
45+
.vscode/*
46+
!.vscode/settings.json
47+
!.vscode/tasks.json
48+
!.vscode/launch.json
49+
!.vscode/extensions.json
50+
51+
# Sublime text
52+
.sublime-gulp.cache
53+
54+
# Runtime data
55+
pids
56+
*.pid
57+
*.seed
58+
59+
# Patch files
60+
*.patch
61+
62+
# Bash
63+
bash.exe.stackdump

Diff for: .npmignore

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Build
2+
dist/
3+
.awcache/
4+
dist/
5+
.tmp/
6+
/.tmp/
7+
tmp/
8+
demo-app/
9+
10+
# Reports directory
11+
reports/
12+
13+
# Logs
14+
logs/
15+
*.log
16+
17+
# Runtime data
18+
pids
19+
*.pid
20+
*.seed
21+
22+
# Coverage directory used by tools like istanbul
23+
coverage
24+
25+
# Bak
26+
*.bak
27+
28+
# Node
29+
node_modules/
30+
npm-debug.log
31+
/npm-debug.log.*
32+
33+
# OS generated files #
34+
Desktop.ini
35+
Thumbs.db
36+
.DS_Store
37+
ehthumbs.db
38+
Icon?
39+
40+
# JetBrains IDEs
41+
*.iml
42+
.idea/
43+
.webstorm/
44+
*.swp
45+
46+
# IDE - VSCode
47+
.vscode/*
48+
!.vscode/settings.json
49+
!.vscode/tasks.json
50+
!.vscode/launch.json
51+
!.vscode/extensions.json
52+
53+
# Sublime text
54+
.sublime-gulp.cache
55+
56+
# Runtime data
57+
pids
58+
*.pid
59+
*.seed
60+
61+
# Patch files
62+
*.patch
63+
64+
# Bash
65+
bash.exe.stackdump

Diff for: .npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=https://registry.npmjs.org

Diff for: .nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8.9.4

Diff for: .prettierrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require("./lib/prettier/1.16.x/.prettierrc.js");

Diff for: .release-it.json

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"non-interactive": false,
3+
"dry-run": false,
4+
"verbose": false,
5+
"force": false,
6+
"pkgFiles": ["package.json", "package-lock.json"],
7+
"increment": "conventional:angular",
8+
"scripts": {
9+
"afterBump": "npm run generate:changelog",
10+
"afterRelease": false,
11+
"beforeStage": false,
12+
"beforeStart": false,
13+
"changelog": "npm run generate:changelog-recent"
14+
},
15+
"git": {
16+
"requireCleanWorkingDir": true,
17+
"requireUpstream": true,
18+
"commit": true,
19+
"commitMessage": "chore(release): release %s",
20+
"commitArgs": "",
21+
"tag": true,
22+
"tagName": "%s",
23+
"tagAnnotation": "%s",
24+
"push": true,
25+
"pushArgs": "",
26+
"pushRepo": "origin"
27+
},
28+
"npm": {
29+
"publish": false
30+
},
31+
"github": {
32+
"release": true,
33+
"releaseName": "Release %s",
34+
"draft": false,
35+
"tokenRef": "GITHUB_TOKEN",
36+
"assets": null,
37+
"host": null
38+
},
39+
"prompt": {
40+
"commit": true,
41+
"tag": true,
42+
"push": true,
43+
"release": true,
44+
"publish": true
45+
}
46+
}

0 commit comments

Comments
 (0)