Skip to content

Commit cc55286

Browse files
committed
chore(init): created repository from template
0 parents  commit cc55286

26 files changed

+859
-0
lines changed

.circleci/config.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
version: 2.1
2+
executors:
3+
node14:
4+
docker:
5+
- image: cimg/node:14.19
6+
environment:
7+
NPM_CONFIG_PREFIX: ~/.npm-global
8+
9+
commands:
10+
setup:
11+
steps:
12+
- checkout
13+
# - restore_cache:
14+
# keys:
15+
# - v1-dependencies-{{ arch }}-{{ checksum "package-lock.json" }}
16+
- run:
17+
name: install latest npm
18+
command: sudo npm -g install npm
19+
- run:
20+
name: Installing Dependencies
21+
command: npm ci
22+
# - save_cache:
23+
# paths:
24+
# - node_modules
25+
# key: v1-dependencies-{{ arch }}-{{ checksum "package-lock.json" }}
26+
- run:
27+
name: prepare test git user
28+
command: git config --global user.email "[email protected]" && git config --global user.name "CircleCi Build"
29+
30+
jobs:
31+
build:
32+
executor: node14
33+
34+
steps:
35+
- setup
36+
- run: mkdir junit
37+
- run:
38+
name: Lint
39+
command: npm run lint
40+
41+
- run:
42+
name: Getting Code Coverage
43+
command: npm run test-ci
44+
45+
- store_test_results:
46+
path: junit
47+
48+
- store_artifacts:
49+
path: junit
50+
51+
workflows:
52+
version: 2
53+
build:
54+
jobs:
55+
- build

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.vscode/*
2+
coverage/*

.eslintrc.cjs

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Copyright 2021 Adobe. All rights reserved.
3+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License. You may obtain a copy
5+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under
8+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9+
* OF ANY KIND, either express or implied. See the License for the specific language
10+
* governing permissions and limitations under the License.
11+
*/
12+
13+
module.exports = {
14+
root: true,
15+
extends: '@adobe/helix',
16+
env: {
17+
node: true,
18+
es6: true,
19+
},
20+
parserOptions: {
21+
sourceType: 'module',
22+
ecmaVersion: 2020,
23+
},
24+
rules: {
25+
'import/extensions': [2, 'ignorePackages'],
26+
'import/prefer-default-export': 0,
27+
},
28+
globals: {
29+
__rootdir: true,
30+
},
31+
};

.github/ISSUE_TEMPLATE/bug_report.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
labels: bug
5+
6+
---
7+
8+
**Description**
9+
A clear and concise description of what the bug is.
10+
11+
**To Reproduce**
12+
Steps to reproduce the behavior:
13+
1. Go to '...'
14+
2. Click on '....'
15+
3. Scroll down to '....'
16+
4. See error
17+
18+
**Expected behavior**
19+
A clear and concise description of what you expected to happen.
20+
21+
**Screenshots**
22+
If applicable, add screenshots to help explain your problem.
23+
24+
**Version:**
25+
run: `$ hlx --version`
26+
27+
**Additional context**
28+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/discussion.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: Discussion
3+
about: Start a new discussion
4+
labels: question
5+
6+
---
7+
8+
## Overview
9+
whats' this discussion about?
10+
11+
## Details
12+
more details
13+
14+
## Proposed Actions
15+
and now?
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
labels: enhancement
5+
6+
---
7+
8+
**Is your feature request related to a problem? Please describe.**
9+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
10+
11+
**Describe the solution you'd like**
12+
A clear and concise description of what you want to happen.
13+
14+
**Describe alternatives you've considered**
15+
A clear and concise description of any alternative solutions or features you've considered.
16+
17+
**Additional context**
18+
Add any other context or screenshots about the feature request here.

.github/pull_request_template.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Please ensure your pull request adheres to the following guidelines:
2+
- [ ] make sure to link the related issues in this description
3+
- [ ] when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes
4+
5+
## Related Issues
6+
7+
8+
Thanks for contributing!
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Semantic Release
2+
on:
3+
push:
4+
branches:
5+
- 'main'
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Use Node.js 14.x
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: '14.x'
17+
- run: npm install
18+
- run: npm test
19+
- run: npm run semantic-release
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}

.github/workflows/semver-check.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
on:
2+
push:
3+
branches-ignore:
4+
- 'main'
5+
6+
jobs:
7+
ci_trigger:
8+
runs-on: ubuntu-latest
9+
name: Comment Semantic Release Status
10+
steps:
11+
- name: Comment
12+
id: comment
13+
uses: adobe-rnd/github-semantic-release-comment-action@master
14+
with:
15+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
coverage
2+
.nyc_output/
3+
node_modules/
4+
junit
5+
dist
6+
tmp
7+
logs
8+
.DS_Store
9+
test-results.xml
10+
.env

.jsdoc.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"plugins": [],
3+
"recurseDepth": 10,
4+
"source": {
5+
"includePattern": ".+\\.js(doc|x)?$",
6+
"excludePattern": "(^|\\/|\\\\)_"
7+
},
8+
"sourceType": "module",
9+
"tags": {
10+
"allowUnknownTags": true,
11+
"dictionaries": ["jsdoc","closure"]
12+
},
13+
"templates": {
14+
"cleverLinks": false,
15+
"monospaceLinks": false
16+
}
17+
}

.mocha-multi.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"reporterEnabled": "spec,xunit",
3+
"xunitReporterOptions": {
4+
"output": "junit/test-results.xml"
5+
}
6+
}

.npmignore

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
*.tgz
2+
.circleci/
3+
.eslintignore
4+
.eslintrc.js
5+
.github/
6+
.idea
7+
.jsdoc.json
8+
.nyc_output/
9+
.releaserc.js
10+
.renovaterc.json
11+
.snyk
12+
.tidelift.yml
13+
build
14+
coverage
15+
junit
16+
logs
17+
node_modules/
18+
snykmocha.js
19+
test
20+
test-results.xml

.nycrc.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"reporter": [
3+
"lcov",
4+
"text"
5+
],
6+
"check-coverage": true,
7+
"lines": 100,
8+
"branches": 100,
9+
"statements": 100
10+
}

.releaserc.cjs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
plugins: [
3+
"@semantic-release/commit-analyzer",
4+
"@semantic-release/release-notes-generator",
5+
["@semantic-release/changelog", {
6+
"changelogFile": "CHANGELOG.md",
7+
}],
8+
"@semantic-release/npm",
9+
["@semantic-release/git", {
10+
"assets": ["package.json", "CHANGELOG.md"],
11+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
12+
}],
13+
["@semantic-release/github", {}]
14+
],
15+
branches: ['main'],
16+
};

.renovaterc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["github>adobe/helix-shared"]
3+
}

CHANGELOG.md

Whitespace-only changes.

CODE_OF_CONDUCT.md

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Adobe 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, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
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 [http://contributor-covenant.org/version/1/4][version]
72+
73+
[homepage]: http://contributor-covenant.org
74+
[version]: http://contributor-covenant.org/version/1/4/

0 commit comments

Comments
 (0)