Skip to content

Commit fb69024

Browse files
committed
Add meta files
1 parent 33af0ae commit fb69024

13 files changed

+6144
-0
lines changed

.editorconfig

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
max_line_length = 100
10+
tab_width = 2
11+
trim_trailing_whitespace = true
12+
13+
[*.md]
14+
max_line_length = off
15+
trim_trailing_whitespace = false
16+
17+
[*.{yml,yaml}]
18+
max_line_length = off
19+
20+
[COMMIT_EDITMSG]
21+
max_line_length = off

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/node_modules/**
2+
**/action/**

.eslintrc.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parser": "babel-eslint",
3+
"env": {
4+
"node": true,
5+
"es6": true,
6+
"jest": true
7+
},
8+
"parserOptions": {
9+
"ecmaVersion": 2020,
10+
"ecmaFeatures": {
11+
"impliedStrict": true
12+
}
13+
},
14+
"extends": ["airbnb", "plugin:unicorn/recommended", "prettier"],
15+
"plugins": ["react", "jsx-a11y", "import", "prettier", "flowtype", "unicorn"],
16+
"settings": { "react": { "version": "latest" } },
17+
"rules": {
18+
"prettier/prettier": "error",
19+
"import/no-extraneous-dependencies": 0
20+
}
21+
}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.idea
2+
node_modules

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/node_modules/**
2+
**/action/**

.prettierrc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"trailingComma": "all",
5+
"printWidth": 100
6+
}

.yarnrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
save-prefix ""
2+
--install.audit true
3+
--add.audit true

CODE_OF_CONDUCT.md

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. 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.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

CONTRIBUTING.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Contributing
2+
3+
## How to Contribute
4+
5+
#### Code of Conduct
6+
7+
This repository has adopted the Contributor Covenant as it's
8+
Code of Conduct. It is expected that participants adhere to it.
9+
10+
#### Proposing a Change
11+
12+
If you are unsure about whether or not a change is desired,
13+
you can create an issue. This is useful because it creates
14+
the possibility for a discussion that's visible to everyone.
15+
16+
When fixing a bug it is fine to submit a pull request right away.
17+
18+
#### Sending a Pull Request
19+
20+
Steps to be performed to submit a pull request:
21+
22+
1. Fork the repository and create your branch from `master`.
23+
2. Run `yarn` in the repository root.
24+
3. If you've fixed a bug or added code that should be tested, add tests!
25+
4. Fill out the description, link any related issues and submit your pull request.
26+
27+
#### Pull Request Prerequisites
28+
29+
You have [Node](https://nodejs.org/) installed at v12.2.0+ and [Yarn](https://yarnpkg.com/) at v1.18.0+.
30+
31+
Please note that commit hooks will run automatically to perform some tasks;
32+
33+
- format your code
34+
- run tests
35+
- build distributable files
36+
37+
#### License
38+
39+
By contributing to this repository, you agree that your contributions will be licensed under its MIT license.

babel.config.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const esModules = ['lodash-es'].join('|');
2+
3+
module.exports = {
4+
ignore: [`/node_modules/(?!${esModules})`],
5+
presets: [
6+
[
7+
'@babel/preset-env',
8+
{
9+
targets: {
10+
node: true,
11+
},
12+
},
13+
],
14+
],
15+
};

jest.config.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const esModules = ['lodash-es'].join('|');
2+
3+
module.exports = {
4+
testEnvironment: 'node',
5+
moduleFileExtensions: ['js', 'jsx', 'json', 'vue'],
6+
transform: { '^.+\\.(js|jsx)?$': 'babel-jest' },
7+
transformIgnorePatterns: [`/node_modules/(?!${esModules})`],
8+
};

package.json

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"name": "unity-request-manual-activation-file",
3+
"version": "0.5.0",
4+
"description": "Request the manual activation file for acquiring a Unity personal license.",
5+
"main": "action/index.js",
6+
"repository": "[email protected]:webbertakken/unity-request-manual-activation-file.git",
7+
"author": "Webber <[email protected]>",
8+
"license": "MIT",
9+
"scripts": {
10+
"build": "ncc build src --out action --minify",
11+
"lint": "prettier --check \"src/**/*.js\" && eslint src",
12+
"test": "jest"
13+
},
14+
"dependencies": {
15+
"@actions/core": "^1.2.0",
16+
"@actions/exec": "1.0.2",
17+
"@actions/github": "^2.0.0"
18+
},
19+
"devDependencies": {
20+
"@babel/cli": "7.7.5",
21+
"@babel/core": "7.7.5",
22+
"@babel/preset-env": "7.7.7",
23+
"@zeit/ncc": "0.20.5",
24+
"babel-eslint": "10.0.3",
25+
"eslint": "6.7.2",
26+
"eslint-config-airbnb": "18.0.1",
27+
"eslint-config-prettier": "6.7.0",
28+
"eslint-plugin-flowtype": "4.5.2",
29+
"eslint-plugin-import": "2.19.1",
30+
"eslint-plugin-jsx-a11y": "6.2.3",
31+
"eslint-plugin-prettier": "3.1.2",
32+
"eslint-plugin-react": "7.17.0",
33+
"eslint-plugin-unicorn": "14.0.1",
34+
"husky": "4.0.0-beta.5",
35+
"jest": "24.9.0",
36+
"lint-staged": "9.5.0",
37+
"lodash-es": "4.17.15",
38+
"prettier": "1.19.1"
39+
},
40+
"husky": {
41+
"hooks": {
42+
"pre-commit": "lint-staged && yarn build && git add action/index.js"
43+
}
44+
},
45+
"lint-staged": {
46+
"*.{js,jsx}": [
47+
"prettier --write",
48+
"eslint",
49+
"git add",
50+
"jest --findRelatedTests"
51+
],
52+
"*.{json,md,yaml,yml}": [
53+
"prettier --write",
54+
"git add"
55+
]
56+
}
57+
}

0 commit comments

Comments
 (0)