Skip to content

Commit f698761

Browse files
committed
feat: created babel-preset, browserslist, eslint-config
1 parent 126ffc7 commit f698761

File tree

119 files changed

+35297
-2
lines changed

Some content is hidden

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

119 files changed

+35297
-2
lines changed

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.yml]
12+
indent_size = 2

.eslintrc.js

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
"extends": ["./packages/eslint-config/index.js"],
3+
env: {
4+
// Your environments (which contains several predefined global variables)
5+
//
6+
// browser: true,
7+
// node: true,
8+
// mocha: true,
9+
// jest: true,
10+
// jquery: true
11+
},
12+
globals: {
13+
// Your global variables (setting to false means it's not allowed to be reassigned)
14+
//
15+
// myGlobal: false
16+
},
17+
rules: {
18+
// Customize your rules
19+
}
20+
};

.gitattributes

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Don't allow people to merge changes to these generated files, because the result
2+
# may be invalid. You need to run "rush update" again.
3+
pnpm-lock.yaml merge=binary
4+
shrinkwrap.yaml merge=binary
5+
npm-shrinkwrap.json merge=binary
6+
yarn.lock merge=binary
7+
8+
# Rush's JSON config files use JavaScript-style code comments. The rule below prevents pedantic
9+
# syntax highlighters such as GitHub's from highlighting these comments as errors. Your text editor
10+
# may also require a special configuration to allow comments in JSON.
11+
#
12+
# For more information, see this issue: https://github.com/microsoft/rushstack/issues/1088
13+
#
14+
*.json linguist-language=JSON-with-Comments

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @prisis

.github/CODE_OF_CONDUCT.md

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8+
9+
## Our Standards
10+
11+
Examples of behavior that contributes to a positive environment for our community include:
12+
13+
- Demonstrating empathy and kindness toward other people
14+
- Being respectful of differing opinions, viewpoints, and experiences
15+
- Giving and gracefully accepting constructive feedback
16+
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17+
- Focusing on what is best not just for us as individuals, but for the overall community
18+
19+
Examples of unacceptable behavior include:
20+
21+
- The use of sexualized language or imagery, and sexual attention or
22+
advances of any kind
23+
- Trolling, insulting or derogatory comments, and personal or political attacks
24+
- Public or private harassment
25+
- Publishing others' private information, such as a physical or email
26+
address, without their explicit permission
27+
- Other conduct which could reasonably be considered inappropriate in a
28+
professional setting
29+
30+
## Enforcement Responsibilities
31+
32+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33+
34+
Community leaders 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, and will communicate reasons for moderation decisions when appropriate.
35+
36+
## Scope
37+
38+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39+
40+
## Enforcement
41+
42+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [[email protected]](mailto:[email protected]). All complaints will be reviewed and investigated promptly and fairly.
43+
44+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45+
46+
## Enforcement Guidelines
47+
48+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49+
50+
### 1. Correction
51+
52+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53+
54+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55+
56+
### 2. Warning
57+
58+
**Community Impact**: A violation through a single incident or series of actions.
59+
60+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61+
62+
### 3. Temporary Ban
63+
64+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65+
66+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67+
68+
### 4. Permanent Ban
69+
70+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71+
72+
**Consequence**: A permanent ban from any sort of public interaction within the community.
73+
74+
## Attribution
75+
76+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78+
79+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80+
81+
[homepage]: https://www.contributor-covenant.org
82+
83+
For answers to common questions about this code of conduct, see the FAQ at
84+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.

.github/renovate.json5

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3+
extends: ["config:base"],
4+
labels: ["dependency", "Changed"],
5+
semanticCommits: true,
6+
major: {
7+
semanticCommitType: "chore",
8+
semanticCommitScope: "deps",
9+
},
10+
minor: {
11+
semanticCommitType: "chore",
12+
semanticCommitScope: "deps",
13+
},
14+
packageRules: [
15+
{
16+
groupName: "renovate-meta",
17+
automerge: true,
18+
updateTypes: ["lockFileMaintenance", "pin"],
19+
labels: ["dependency", "Changed"],
20+
semanticCommitType: "chore",
21+
semanticCommitScope: "deps",
22+
rangeStrategy: "replace",
23+
vulnerabilityAlerts: {
24+
labels: ["Security"],
25+
assignees: ["@prisis"],
26+
},
27+
},
28+
{
29+
groupName: "dependencies (non-major)",
30+
automerge: true,
31+
depTypeList: ["dependencies"],
32+
updateTypes: ["patch", "minor"],
33+
labels: ["type/deps"],
34+
semanticCommitType: "chore",
35+
semanticCommitScope: "deps",
36+
rangeStrategy: "replace",
37+
vulnerabilityAlerts: {
38+
labels: ["Security"],
39+
assignees: ["@prisis"],
40+
},
41+
},
42+
{
43+
groupName: "devDependencies (major)",
44+
automerge: true,
45+
depTypeList: ["devDependencies"],
46+
updateTypes: ["major"],
47+
labels: ["dependency", "Changed"],
48+
semanticCommitType: "chore",
49+
semanticCommitScope: "deps",
50+
rangeStrategy: "replace",
51+
vulnerabilityAlerts: {
52+
labels: ["Security"],
53+
assignees: ["@prisis"],
54+
},
55+
},
56+
{
57+
groupName: "devDependencies (non-major)",
58+
automerge: true,
59+
depTypeList: ["devDependencies"],
60+
updateTypes: ["patch", "minor"],
61+
labels: ["dependency", "Changed"],
62+
semanticCommitType: "chore",
63+
semanticCommitScope: "deps",
64+
rangeStrategy: "replace",
65+
vulnerabilityAlerts: {
66+
labels: ["Security"],
67+
assignees: ["@prisis"],
68+
},
69+
},
70+
],
71+
}

.github/settings.yml

+107
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# https://github.com/probot/settings
2+
3+
branches:
4+
- name: master
5+
protection:
6+
enforce_admins: false
7+
required_pull_request_reviews:
8+
dismiss_stale_reviews: true
9+
require_code_owner_reviews: true
10+
required_approving_review_count: 1
11+
restrictions:
12+
# https://developer.github.com/v3/repos/branches/#parameters-1
13+
14+
# Note: User, app, and team restrictions are only available for organization-owned repositories.
15+
# Set to null to disable when using this configuration for a repository on a personal account.
16+
17+
apps:
18+
- "dependabot-preview"
19+
teams: []
20+
21+
labels:
22+
- name: Added
23+
description: "Changelog Added"
24+
color: 90db3f
25+
26+
- name: Changed
27+
description: "Changelog Changed"
28+
color: fbca04
29+
30+
- name: "Dependency update"
31+
description: "Pull requests that update a dependency file"
32+
color: e1f788
33+
34+
- name: Deprecated
35+
description: "Changelog Deprecated"
36+
color: 1d76db
37+
38+
- name: Duplicate
39+
color: 000000
40+
41+
- name: Enhancement
42+
color: d7e102
43+
44+
- name: Fixed
45+
description: "Changelog Fixed"
46+
color: 9ef42e
47+
48+
- name: Removed
49+
description: "Changelog Removed"
50+
color: e99695
51+
52+
- name: Security
53+
description: "Changelog Security"
54+
color: ed3e3b
55+
56+
- name: "Status: Good first issue"
57+
color: d7e102
58+
59+
- name: "Status: Help wanted"
60+
color: 85d84e
61+
62+
- name: "Status: Needs Work"
63+
color: fad8c7
64+
65+
- name: "Status: Waiting for feedback"
66+
color: fef2c0
67+
68+
- name: "Type: BC Break"
69+
color: b60205
70+
71+
- name: "Type: Bug"
72+
color: b60205
73+
74+
- name: "Type: Critical"
75+
color: ff8c00
76+
77+
- name: "Type: RFC"
78+
color: fbca04
79+
80+
- name: "Type: Unconfirmed"
81+
color: 444444
82+
83+
- name: "Type: Wontfix"
84+
color: 000000
85+
86+
- name: "semantic-release"
87+
color: ff0000
88+
89+
repository:
90+
allow_merge_commit: false
91+
allow_rebase_merge: true
92+
allow_squash_merge: false
93+
archived: false
94+
default_branch: master
95+
delete_branch_on_merge: true
96+
description: "Leverages on icons to automatically generate your icons for you."
97+
has_downloads: true
98+
has_issues: true
99+
has_pages: false
100+
has_projects: false
101+
has_wiki: false
102+
name: "webpack-next-icons-manifest"
103+
private: false
104+
105+
# https://developer.github.com/v3/repos/branches/#remove-branch-protection
106+
107+
topics: "anolilab, typescript, nextjs, icons, manifest, webpack, plugin, png, svg, android, ios, pwa, progressive-web-app, favicon, icon, image-generation, html-tags, splash-screen, progressive-web-apps, favicon-generator, splash-screens, launch-image, icon-sizes, manifest-specs, pwa-assets, mstile"

.github/workflows/build.yml

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Build and deploy
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- name: Use Node.js 12.x
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: 12.x
20+
- name: check consistent dependencies
21+
run: node ./common/scripts/install-run-rush.js check
22+
- name: check changelog
23+
run: node ./common/scripts/install-run-rush.js change -v
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
- name: install
27+
run: node ./common/scripts/install-run-rush.js install --no-link
28+
- name: link
29+
run: node ./common/scripts/install-run-rush.js link
30+
- name: build
31+
run: node ./common/scripts/install-run-rush.js rebuild --verbose
32+
- name: lint
33+
run: node ./common/scripts/install-run-rush.js lint
34+
- name: run unit tests
35+
run: node ./common/scripts/install-run-rush.js test:unit
36+
- name: upload code coverage to codecov
37+
uses: codecov/codecov-action@v1
38+
- name: run integration tests
39+
run: node ./common/scripts/install-run-rush.js test:integration
40+
41+
publish:
42+
needs: build
43+
if: github.event_name == 'push'
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v2
47+
with:
48+
fetch-depth: 0
49+
- name: Use Node.js 12.x
50+
uses: actions/setup-node@v1
51+
with:
52+
node-version: 12.x
53+
- name: install
54+
run: node ./common/scripts/install-run-rush.js install --no-link
55+
- name: link
56+
run: node ./common/scripts/install-run-rush.js link
57+
- name: build
58+
run: node ./common/scripts/install-run-rush.js rebuild --verbose
59+
- name: set git credentials
60+
run: |
61+
git config --local user.email "[email protected]"
62+
git config --local user.name "GitHub Action"
63+
- name: set npm credentials
64+
run: echo //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN > ~/.npmrc
65+
env:
66+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
67+
- name: Bump versions
68+
run: node ./common/scripts/install-run-rush.js version --bump --target-branch main
69+
- name: publish
70+
run: node ./common/scripts/install-run-rush.js publish -a -b main -p --set-access-level public --include-all

0 commit comments

Comments
 (0)