Skip to content

Commit

Permalink
chore: formats code with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
sverweij committed Jul 13, 2024
1 parent 0e2fdde commit 3739e5d
Show file tree
Hide file tree
Showing 237 changed files with 35,000 additions and 29,882 deletions.
4 changes: 3 additions & 1 deletion .c8rc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"branches": 89.5,
"functions": 98.5,
"lines": 99.3,
"exclude": ["{src/render/graphics/styling,src/render/graphics/svgelementfactory/wobbly,src/parse/*parser.js,test/**/*,tools/**/*}"],
"exclude": [
"{src/render/graphics/styling,src/render/graphics/svgelementfactory/wobbly,src/parse/*parser.js,test/**/*,tools/**/*}"
],
"reporter": ["text-summary", "html", "json-summary"]
}
27 changes: 15 additions & 12 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,45 +5,48 @@ So you want to contribute to mscgen_js? We already love you!
To make this as easy as possible for you, here's some simple guidelines:

### Reporting issues
- All **issues** are **welcome**.

- All **issues** are **welcome**.
- These include bug reports, questions, feature requests and enhancement
proposals
- [GitHub's issue tracker](https://github.com/mscgenjs/mscgenjs-core/issues)
is the easiest way to submit them.
- We prefer bug reports in **_steps taken_ - _expected_ - _found_** format.
- that makes it more easy to reproduce it, and concoct a solution that fits
your expectation.
- We prefer bug reports in **_steps taken_ - _expected_ - _found_** format.
- that makes it more easy to reproduce it, and concoct a solution that fits
your expectation.
- If applicable, it is also nice when you provide
- the **input** you used and
- the **environment** (browser version/ os, or node.js version + os).
- [template](#issue-template) at the bottom
- In turn, we try to **respond within a week**.
- In turn, we try to **respond within a week**.
This might or might not include an actual code fix.

### Contributing code

- We prefer well documented
**[pull requests](https://help.github.com/articles/creating-a-pull-request/)**
based on the most recent version of the **master** branch.
- Code quality
- Additions pass tslint (as configured in this repo)
- Mocha tests prove your code does what it intends.
- Your code does not introduce regressions - ```make check``` proves this.
- Code style (you know, petty things like indentations, where brackets go,
how variables & parameters are named) fits in with the current code base.
- Plan to do something drastic?
- Additions pass tslint (as configured in this repo)
- Mocha tests prove your code does what it intends.
- Your code does not introduce regressions - `make check` proves this.
- Code style (you know, petty things like indentations, where brackets go,
how variables & parameters are named) fits in with the current code base.
- Plan to do something drastic?
Leave an
[issue](https://github.com/mscgenjs/mscgenjs-core/issues/new) on GitHub
- mscgenjs-core is released with a [code of conduct](CODE_OF_CONDUCT.md), adapted
from the [contributor covenant](http://contributor-covenant.org/).

### Legal

- the code you add will be subject to
[GPL-3.0](wikum/licenses/license.mscgen_js.md), just like the rest of
mscgen_js
- the code you add is your own original work


### Issue template

### steps taken

### expected
Expand Down
16 changes: 12 additions & 4 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,40 @@
<!--- Provide a general summary of the issue in the Title above -->

### Expected Behavior

<!--- If you're describing a bug, tell us what should happen -->
<!--- If you're suggesting a change/improvement, tell us how it should work -->

### Current Behavior

<!--- If describing a bug, tell us what happens instead of the expected behavior -->
<!--- If suggesting a change/improvement, explain the difference from current behavior (if any)-->

### Possible Solution

<!--- Not obligatory, but suggest a fix/reason for the bug, -->
<!--- or ideas how to implement the addition or change -->

### Steps to Reproduce (for bugs)

<!--- Provide a link to a live example, or an unambiguous set of steps to -->
<!--- reproduce this bug. Include code to reproduce, if relevant -->

1.
2.
3.
4.

### Context

<!--- How has this issue affected you? What are you trying to accomplish? -->
<!--- Providing context helps us come up with a solution that is most useful in the real world -->

### Your Environment

<!--- Include as many relevant details about the environment you experienced the bug in -->
* Version used:
* Node version:
* Operating System and version:
* Link to your project:

- Version used:
- Node version:
- Operating System and version:
- Link to your project:
2 changes: 1 addition & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
- run: npm clean-install
- run: npm publish --provenance --access public --tag beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
- run: npm clean-install
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 4 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ image: node:latest

cache:
paths:
- node_modules/
- node_modules/

test_async:
script:
- npm install
- npm run build
- npm run check:full
- npm install
- npm run build
- npm run check:full
22 changes: 11 additions & 11 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ orientation.
Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
- The use of sexualized language or imagery and unwelcome sexual attention or
advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ mscgenjs.renderMsc(
{
elementId: "yourOtherCoolId",
},
handleRenderMscResult
handleRenderMscResult,
);

function handleRenderMscResult(pError, pSuccess) {
Expand Down Expand Up @@ -167,7 +167,7 @@ try {
{
inputType: "msgenny", // defaults to mscgen - other accepted formats: msgenny, xu, json
outputType: "mscgen", // defaults to json - other accepted formats: mscgen, msgenny, xu, dot, doxygen, ast
}
},
);
console.log(lResult);
} catch (pError) {
Expand Down
142 changes: 87 additions & 55 deletions dist/cjs/index-lazy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3739e5d

Please sign in to comment.