Skip to content

Commit 5d05d97

Browse files
committed
Add contributing guidelines
1 parent 8e7bad7 commit 5d05d97

6 files changed

+99
-2
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
bin/asc text eol=lf
2+
dist/asc.js -diff
3+
dist/assemblyscript.js -diff

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules/
22
npm-debug.*
3+
dist/
34
out/
45
raw/

CODE_OF_CONDUCT.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [https://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: https://contributor-covenant.org
46+
[version]: https://contributor-covenant.org/version/1/4/

CONTRIBUTING.md

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
Contributing
2+
============
3+
4+
The following is a set of guidelines for contributing to AssemblyScript and its packagess, which are hosted in the [AsssemblyScript Organization](https://github.com/AssemblyScript) on GitHub. These are mostly guidelines, not rules. Use your best judgement, and feel free to proposse changes to this document in a pull request.
5+
6+
Code of Conduct
7+
---------------
8+
9+
This project and everyone participating in it is governed by the [AssemblyScript Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code.
10+
11+
Filing Issues
12+
-------------
13+
14+
Bugs and enhancement suggestions are tracked as GitHub issues.
15+
16+
#### How Do I Submit A (Good) Bug Report?
17+
18+
After you've determined which repository your bug is related to and that the issue is still present in the latest version of the masster branch, create an issue on that repository and provide the following information:
19+
20+
* Use a **clear and descriptive title** for the issue to identify the problem.
21+
* Explain which **behavior you expected** to see instead and why.
22+
* Describe the exact **steps to reproduce the problem** in as many details as necessary.
23+
* When providing code samples, please use [code blocks](https://help.github.com/articles/creating-and-highlighting-code-blocks/).
24+
25+
#### How Do I Submit A (Good) Enhancement Suggestion?
26+
27+
Instructions are similar to those for bug reports. Please provide the following information:
28+
29+
* Use a **clear and descriptive title** for the issue to identify the suggestion.
30+
* Provide a **description of the suggested enhancement** in as many details as necessary.
31+
* When providing code samples, please use [code blocks](https://help.github.com/articles/creating-and-highlighting-code-blocks/).
32+
33+
Submitting Pull Requests
34+
------------------------
35+
36+
Instructions are similar to those for bug reports. Please provide the following information:
37+
38+
* Use a **clear and descriptive title** for the pull request.
39+
* Provide a **description of the suggested changes** in as many details as necessary.
40+
* **Document your new code** where necessary.
41+
* **Create tests for your new code** where necessary. For creating or updating tests, please see the [Test Instructions](./tests).
42+
43+
Before submitting your pull request, please make sure that the following conditions are met:
44+
45+
* Your new code **adheres to the code style** through running `npm run lint`.
46+
* Your new code **passes all existing and new tests** through running `npm run test:pr`.
47+
* Your PR **excludes distribution files** in `dist/**`.
48+
* You added yourself to the **list of contributors** in the [NOTICE](./NOTICE) file.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"test:parser": "node tests/parser",
4848
"test:compiler": "node tests/compiler",
4949
"test": "npm run test:config --scripts-prepend-node-path && npm run test:parser --scripts-prepend-node-path && npm run test:compiler --scripts-prepend-node-path",
50-
"all": "npm run lint && npm run clean && npm test && npm run build && npm test"
50+
"test:pr": "npm run clean && npm test && npm run build && npm test && npm run clean"
5151
},
5252
"files": [
5353
"bin/",

webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const bin = {
6868
},
6969
__dirname: JSON.stringify(".")
7070
}),
71-
new webpack.IgnorePlugin(/\.\/src|package\.json|^(ts\-node|glob|source\-map\-support)$/),
71+
new webpack.IgnorePlugin(/\.\/src|package\.json|^(ts\-node|glob|source\-map\-support)$/)
7272
]
7373
};
7474

0 commit comments

Comments
 (0)