Skip to content

Commit 7e126c0

Browse files
committed
docs(guides): update guides to Jexia's standards
1 parent 2564e00 commit 7e126c0

File tree

7 files changed

+223
-26
lines changed

7 files changed

+223
-26
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<!--
2+
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
3+
4+
ISSUES MISSING IMPORTANT INFORMATION MIGHT BE CLOSED WITHOUT INVESTIGATION.
5+
-->
6+
7+
## I'm submitting a ...
8+
9+
<!-- Please search github for a similar issue or PR before submitting -->
10+
<!-- Check one of the following options with "x" -->
11+
<pre><code>
12+
[ ] Regression (behavior that used to work and stopped working in a new release)
13+
[ ] Bug report
14+
[ ] Feature request
15+
[ ] Documentation issue or request
16+
</code></pre>
17+
18+
## Current behavior
19+
20+
<!-- Describe how the issue manifests. -->
21+
22+
## Expected behavior
23+
24+
<!-- Describe what the desired behavior would be. -->
25+
26+
## Minimal reproduction of the problem with instructions
27+
28+
<!--
29+
For bug reports please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem
30+
in a open repository, a https://plnkr.co or similar.
31+
-->
32+
33+
## What is the motivation / use case for changing the behavior?
34+
35+
<!-- Describe the motivation or the concrete use case. -->
36+
37+
## Please tell us about your environment
38+
39+
<pre><code>
40+
SDK version: X.Y.Z
41+
<!-- Check whether this is still an issue in the most recent version -->
42+
43+
Execution Platform Error:
44+
45+
- [ ] NodeJS version XX
46+
- [ ] Chrome (desktop) version XX
47+
- [ ] Chrome (Android) version XX
48+
- [ ] Chrome (iOS) version XX
49+
- [ ] Firefox version XX
50+
- [ ] Safari (desktop) version XX
51+
- [ ] Safari (iOS) version XX
52+
- [ ] IE version XX
53+
- [ ] Edge version XX
54+
55+
Operation System:
56+
<!-- Mac, Linux, Windows version -->
57+
58+
Others:
59+
<!-- Anything else relevant? IDE, TypeScript version, package manager, HTTP server, ... -->
60+
</code></pre>

.github/PULL_REQUEST_TEMPLATE.md

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

CONTRIBUTING.md

Lines changed: 92 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
# Contributing Guide
1+
# Contribution Guide
22

3-
We're really glad you're reading this, because we need volunteer developers to help this project come to fruition. 👏
3+
[First please read and abide by the Code of Conduct](CODE_OF_CONDUCT.md).
44

5-
## Instructions
5+
## Environment
66

7-
These steps will guide you through contributing to this project:
8-
9-
- Fork the repo
10-
- Clone it and install dependencies
11-
- Setup test env
7+
Everything you need is a stable version of Node.JS (v8+) and Docker.
128

139
Running tests for this module requires running an etcd3 server locally. The tests try to use the default port initially, and you can configure this by setting the ETCD_ADDR environment variable, like export ETCD_ADDR=localhost:12345.
1410

@@ -18,4 +14,91 @@ There is a Docker image ready to use, which can be easily build with:
1814
npm run docker
1915
```
2016

21-
Finally send a [GitHub Pull Request](https://github.com/alexjoverm/typescript-library-starter/compare?expand=1) with a clear list of what you've done (read more [about pull requests](https://help.github.com/articles/about-pull-requests/)). Make sure all of your commits are atomic (one feature per commit).
17+
## Coding Style Guidelines
18+
19+
The source code is written in [TypeScript](http://www.typescriptlang.org/) using strict compilation mode and all the ES2017 features. We are following the [TSLint](https://github.com/palantir/tslint) and [Editorconfig](http://editorconfig.org/) rules listed at their config files. We strongly recommend to use a code editor with good support for these tools (we recommend [VSCode](https://code.visualstudio.com/)), so that it is easy to integrate new code into our code base.
20+
21+
## First Run
22+
23+
After cloning the project and installing the dependencies with `npm install` you should be able start coding.
24+
25+
You can double check if the local environment is fully working by running the tests with `npm test` and building the project with `npm run build`.
26+
27+
## Main Development Commands
28+
29+
Execute unit tests and check coverage:
30+
31+
- `npm test`
32+
33+
Execute unit tests in watch mode for TDD purposes:
34+
35+
- `npm run test:watch`
36+
37+
Lint Typescript code:
38+
39+
- `npm run lint`
40+
41+
Commit convention helper (see related topic below):
42+
43+
- `npm run commit`
44+
45+
Build the project locally:
46+
47+
- `npm run build`
48+
49+
## Commit Message Format
50+
51+
This repository follows a strict **Commit Message Conventions**, which leads to more readable messages that are easy to follow when looking through the project history. Also, we use the git commit messages to generate the change log, calculate the new version number and automatically publish new versions to NPM. For these purposes, we are using [Semantic Release](https://github.com/semantic-release/semantic-release). We have a helper script `npm run commit` that provides a command line based wizard for easy commit message formatting.
52+
53+
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special format that includes a **type**, a **scope** and a **subject**:
54+
55+
```
56+
<type>(<scope>): <subject>
57+
<BLANK LINE>
58+
<body>
59+
<BLANK LINE>
60+
<footer>
61+
```
62+
63+
Only the first line is mandatory, and any line of the commit message cannot be longer than 100 characters! A linter will check your commit message in a git hook for each commit and guide you to fix any error. Please take a look at the [AngularJS Commit Message Conventions](https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit) for detailed information about this convention.
64+
65+
## Submitting a Pull Request (PR)
66+
67+
Before you submit your Pull Request (PR) consider the following guidelines:
68+
69+
- Search our repository for an open or closed PR that relates to your submission. You don't want to duplicate effort.
70+
- Fork the project on Github
71+
- Make your changes in a new git branch:
72+
73+
```shell
74+
git checkout -b my-fix-branch master
75+
```
76+
77+
- Create your patch, following [code style guidelines](#coding-style-guidelines), and **including appropriate test cases**.
78+
- Run the full test suite and ensure that all tests pass.
79+
- Commit your changes using a descriptive commit message that follows our [commit message format](#commit-message-format):
80+
81+
```shell
82+
npm run commit
83+
```
84+
85+
- Push your branch to your GitHub fork:
86+
87+
```shell
88+
git push origin my-fix-branch
89+
```
90+
91+
- In GitHub, send a pull request to `jexia/express-session-etcd3:master`.
92+
- Check if our **Continuous Integration** checks passed against your PR and make the necessary fixes if something breaks.
93+
- If we suggest changes then:
94+
- Please apply the required updates.
95+
- Re-run the test suites to ensure tests are still passing.
96+
- Re-run performance tests to make sure your changes didn't hurt performance.
97+
- Rebase your branch and force push to your GitHub repository (this will update your Pull Request):
98+
99+
```shell
100+
git rebase master -i
101+
git push -f
102+
```
103+
104+
That's it! Thank you for your contribution!

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2017 William Grasel <d.ru.fo.s+github@gmail.com>
1+
Copyright 2017 Jexia <community@jexia.com>
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

code-of-conduct.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ include:
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
25+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
2726
* Trolling, insulting/derogatory comments, and personal or political attacks
2827
* Public or private harassment
2928
* Publishing others' private information, such as a physical or electronic
@@ -54,16 +53,20 @@ further defined and clarified by project maintainers.
5453

5554
## Enforcement
5655

57-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at d.ru.fo.s+github@gmail.com. All
59-
complaints will be reviewed and investigated and will result in a response that
60-
is deemed necessary and appropriate to the circumstances. The project team is
61-
obligated to maintain confidentiality with regard to the reporter of an incident.
62-
Further details of specific enforcement policies may be posted separately.
63-
64-
Project maintainers who do not follow or enforce the Code of Conduct in good
65-
faith may face temporary or permanent repercussions as determined by other
66-
members of the project's leadership.
56+
If you spot or experience unacceptable behaviour or if you have any questions
57+
about our code of conduct, please report this by sending an email to community@jexia.com.
58+
The Code of Conduct Team will review and investigate all reports issued.
59+
They will respond in a way they deem appropriate to the issue. They will handle every
60+
issue with confidentiality with regard to the reporter of an incident.
61+
Community members who do not follow or enforce the code of conduct may be expelled
62+
temporary or permanently as so decided by the Code of Conduct Team.
63+
We will protect victims of abuse as much as we can.
64+
65+
In your report please add following: your contact information; names
66+
(real, nicknames, or pseudonyms) of any individuals involved.
67+
If there are additional witnesses, please include them as well.
68+
Your account of what occurred, and if you believe the incident is ongoing.
69+
Any additional information that may be helpful.
6770

6871
## Attribution
6972

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,17 @@
1515
"files": [
1616
"dist"
1717
],
18-
"author": "William Grasel <d.ru.fo.s+github@gmail.com>",
18+
"author": "Jexia <community@jexia.com>",
19+
"contributors": [
20+
{
21+
"name": "William Grasel",
22+
"email": "d.ru.fo.s+github@gmail.com",
23+
"url": "https://twitter.com/willgmbr"
24+
}
25+
],
1926
"repository": {
2027
"type": "git",
21-
"url": "git+https://github.com/willgm/express-session-etcd3.git"
28+
"url": "git+https://github.com/jexia/express-session-etcd3.git"
2229
},
2330
"license": "MIT",
2431
"engines": {

tools/gh-pages-publish.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ cd("docs")
2222
touch(".nojekyll")
2323
exec("git init")
2424
exec("git add .")
25-
exec('git config user.name "William Grasel"')
26-
exec('git config user.email "d.rufos@gmail.com"')
25+
exec('git config user.name "Jexia"')
26+
exec('git config user.email "community@jexia.com"')
2727
exec('git commit -m "docs(docs): update gh-pages"')
2828
exec(
2929
`git push --force --quiet "https://${ghToken}@${repository}" master:gh-pages`

0 commit comments

Comments
 (0)