generated from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1388358
Showing
43 changed files
with
20,223 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
helix-importer-ui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module.exports = { | ||
root: true, | ||
extends: 'airbnb-base', | ||
env: { | ||
browser: true, | ||
}, | ||
parser: '@babel/eslint-parser', | ||
parserOptions: { | ||
allowImportExportEverywhere: true, | ||
sourceType: 'module', | ||
requireConfigFile: false, | ||
}, | ||
rules: { | ||
// allow reassigning param | ||
'no-param-reassign': [2, { props: false }], | ||
'linebreak-style': ['error', 'unix'], | ||
'import/extensions': ['error', { | ||
js: 'always', | ||
}], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Please always provide the [GitHub issue(s)](../issues) your PR is for, as well as test URLs where your change can be observed (before and after): | ||
|
||
Fix #<gh-issue-id> | ||
|
||
Test URLs: | ||
- Before: https://main--{repo}--{owner}.hlx.live/ | ||
- After: https://<branch>--{repo}--{owner}.hlx.live/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# This workflow will run upon repository creation and clean up | ||
# all files that are not strictly required to build an AEM Live project | ||
# but that we use to develop the project template. This includes this | ||
# particular workflow file. | ||
on: | ||
create: | ||
branches: | ||
- main | ||
jobs: | ||
cleanup: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
actions: write | ||
# only run if commit message is "Initial commit" on main branch | ||
if: ${{ github.ref == 'refs/heads/main' && github.event.head_commit.message == 'Initial commit' }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Use Node.js 18 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
- name: Uninstall dependencies | ||
run: | | ||
npm uninstall --save-dev semantic-release @semantic-release/git @semantic-release/changelog @semantic-release/exec | ||
- name: Remove Helper Files | ||
run: | | ||
rm -rf \ | ||
.github/workflows/cleanup-on-create.yaml \ | ||
.github/workflows/semantic-release.yaml \ | ||
.releaserc.cjs \ | ||
CHANGELOG.md | ||
- name: Initialize README | ||
# replace {repo} and {owner} with the actual values | ||
run: | | ||
sed -i.bak "s/{repo}/$(basename ${{ github.repository }})/g" README.md | ||
sed -i.bak "s/{owner}/$(dirname ${{ github.repository }})/g" README.md | ||
- name: Initialize Pull Request Template | ||
run: | | ||
sed -i.bak "s/{repo}/$(basename ${{ github.repository }})/g" .github/pull_request_template.md | ||
sed -i.bak "s/{owner}/$(dirname ${{ github.repository }})/g" .github/pull_request_template.md | ||
# commit back to the repository | ||
- name: Commit changes | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Helix Bot" | ||
git add . | ||
git commit -m "chore: cleanup repository template" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Linting | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '16' #required for npm 8 or later. | ||
- run: npm install | ||
- run: npm run lint | ||
env: | ||
CI: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generate a changelog with semantic-release | ||
# Skip if the commit message is "Initial commit" | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
semantic-release: | ||
if: ${{ ! contains(github.event.head_commit.message, 'Initial commit') }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Run semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: npm run semantic-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.hlx/* | ||
coverage/* | ||
logs/* | ||
node_modules/* | ||
|
||
helix-importer-ui | ||
.DS_Store | ||
*.bak | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.* | ||
*.md | ||
karma.config.js | ||
LICENSE | ||
package.json | ||
package-lock.json | ||
test/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module.exports = { | ||
plugins: [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
["@semantic-release/changelog", { | ||
"changelogFile": "CHANGELOG.md", | ||
}], | ||
["@semantic-release/npm", { | ||
"publish": false, | ||
}], | ||
["@semantic-release/git", { | ||
"assets": ["package.json", "CHANGELOG.md"], | ||
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" | ||
}], | ||
["@semantic-release/github", {}] | ||
], | ||
branches: ['main'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": ["config:recommended"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": ["stylelint-config-standard"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<title>Page not found</title> | ||
<script type="text/javascript"> | ||
window.isErrorPage = true; | ||
window.errorCode = '404'; | ||
</script> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta property="og:title" content="Page not found"> | ||
<script src="/scripts/scripts.js" type="module" crossorigin="use-credentials"></script> | ||
<script type="module"> | ||
import { sampleRUM } from '/scripts/aem.js'; | ||
|
||
window.addEventListener('load', () => { | ||
if (document.referrer) { | ||
const { origin, pathname } = new URL(document.referrer); | ||
if (origin === window.location.origin) { | ||
const backBtn = document.createElement('a'); | ||
backBtn.classList.add('button', 'error-button-back'); | ||
backBtn.href = pathname; | ||
backBtn.textContent = 'Go back'; | ||
backBtn.title = 'Go back'; | ||
const btnContainer = document.querySelector('.button-container'); | ||
btnContainer.append(backBtn); | ||
} | ||
} | ||
sampleRUM('404', { source: document.referrer, target: window.location.href }); | ||
}); | ||
</script> | ||
<link rel="stylesheet" href="/styles/styles.css"> | ||
<style> | ||
main.error { | ||
min-height: calc(100vh - var(--nav-height)); | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
main.error .error-number { | ||
width: 100%; | ||
} | ||
|
||
main.error .error-number text { | ||
font-family: var(--fixed-font-family); | ||
} | ||
</style> | ||
<link rel="stylesheet" href="/styles/lazy-styles.css"> | ||
</head> | ||
|
||
<body> | ||
<header></header> | ||
<main class="error"> | ||
<div class="section"> | ||
<svg viewBox="1 0 38 18" class="error-number"> | ||
<text x="0" y="17">404</text> | ||
</svg> | ||
<h2 class="error-message">Page Not Found</h2> | ||
<p class="button-container"> | ||
<a href="/" class="button secondary error-button-home">Go home</a> | ||
</p> | ||
</div> | ||
</main> | ||
<footer></footer> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# [1.3.0](https://github.com/adobe/aem-boilerplate/compare/v1.2.2...v1.3.0) (2023-11-30) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* attempt to fix release ([5bb8f73](https://github.com/adobe/aem-boilerplate/commit/5bb8f7302c70e98a60fd9b8a38f63577f90d7414)) | ||
* **build:** fix org in issues URL ([7226d84](https://github.com/adobe/aem-boilerplate/commit/7226d8465e0f5d3c2f4c49bacfbc758c6da5f823)) | ||
* **build:** no double slashes in issues url ([1191064](https://github.com/adobe/aem-boilerplate/commit/119106489e1bfb92c80aa55cc2b634496915cfc1)) | ||
* **github:** increase default permissions for cleanup action ([f8ed051](https://github.com/adobe/aem-boilerplate/commit/f8ed05169e841a21f1a17c664ace76942d7700c8)) | ||
* **github:** restrict running of action to initial commit on main branch ([1a990c2](https://github.com/adobe/aem-boilerplate/commit/1a990c25a4132a50e8c73f80c57845d7d9657399)) | ||
* icons no more svgs ([#267](https://github.com/adobe/aem-boilerplate/issues/267)) ([2d4cfa7](https://github.com/adobe/aem-boilerplate/commit/2d4cfa73a9c35c065e9dd2096a9bab3637ddd9b4)) | ||
* **lib:** update scripts/aem.js to [email protected] ([#266](https://github.com/adobe/aem-boilerplate/issues/266)) ([2d61c6a](https://github.com/adobe/aem-boilerplate/commit/2d61c6a9fb0905159a568abfe73f4d09dfc0846a)) | ||
* rescope icon identifiers to avoid clashing references across icons ([#241](https://github.com/adobe/aem-boilerplate/issues/241)) ([e8dc533](https://github.com/adobe/aem-boilerplate/commit/e8dc53350de838a7dfa094bbbf62c80bdaffdca2)), closes [#235](https://github.com/adobe/aem-boilerplate/issues/235) | ||
* sampleRUM always for checkpoint to be called even if RUM not selected ([fcca39d](https://github.com/adobe/aem-boilerplate/commit/fcca39dd4f5fd2aef6852580873ab4b2cce1e2af)) | ||
* trigger release ([afbd201](https://github.com/adobe/aem-boilerplate/commit/afbd201189b13a238ad4709923a5ad9b94dc73eb)) | ||
|
||
|
||
### Features | ||
|
||
* add capability to patch block config at runtime ([#246](https://github.com/adobe/aem-boilerplate/issues/246)) ([a774acc](https://github.com/adobe/aem-boilerplate/commit/a774acc651359137422ea734d014164509ae5940)) | ||
* enable listeners to all RUM events, not just the sampled ones ([871ede4](https://github.com/adobe/aem-boilerplate/commit/871ede401d2d57c8825f8970f3b28cd9de5f27f8)) | ||
* use aem.js ([#255](https://github.com/adobe/aem-boilerplate/issues/255)) ([f5ab4df](https://github.com/adobe/aem-boilerplate/commit/f5ab4df26a992f70a123f56b08062f7dc0b47dae)) | ||
|
||
## [1.2.2](https://github.com/elc9aya2ls612j/aem-boilerplate/compare/v1.2.1...v1.2.2) (2023-06-29) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **github:** use double quotes ([d7e285d](https://github.com/elc9aya2ls612j/aem-boilerplate/commit/d7e285dbb452617a5166569f91da4cb376548a38)) | ||
|
||
## [1.2.1](https://github.com/elc9aya2ls612j/aem-boilerplate/compare/v1.2.0...v1.2.1) (2023-06-29) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **github:** create and ignore bak files ([ac087b6](https://github.com/elc9aya2ls612j/aem-boilerplate/commit/ac087b61d3e44910d980b0d9e7aead0f2ed83873)) | ||
|
||
# [1.2.0](https://github.com/elc9aya2ls612j/aem-boilerplate/compare/v1.1.0...v1.2.0) (2023-06-29) | ||
|
||
|
||
### Features | ||
|
||
* **github:** populate pull request template ([4ccb759](https://github.com/elc9aya2ls612j/aem-boilerplate/commit/4ccb7592a84fdc0d3d234fc4da5bdf94a026ff1d)) | ||
|
||
# [1.1.0](https://github.com/elc9aya2ls612j/aem-boilerplate/compare/v1.0.5...v1.1.0) (2023-06-29) | ||
|
||
|
||
### Features | ||
|
||
* **github:** remove dependencies upon fork, fill in readme ([7e60519](https://github.com/elc9aya2ls612j/aem-boilerplate/commit/7e60519c8ea97640bcb064cb3592990989fe10ef)) | ||
|
||
## [1.0.5](https://github.com/elc9aya2ls612j/aem-boilerplate/compare/v1.0.4...v1.0.5) (2023-06-29) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* trigger release ([2c3244f](https://github.com/elc9aya2ls612j/aem-boilerplate/commit/2c3244fc181fd900293bbd7e67ab8e68e5d83d5d)) | ||
* trigger release ([5ac78b0](https://github.com/elc9aya2ls612j/aem-boilerplate/commit/5ac78b07955c0b75a37dfb293a5d616b7bdaffba)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Adobe Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
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. | ||
|
||
## Our Standards | ||
|
||
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 | ||
|
||
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 | ||
address, without explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a | ||
professional setting | ||
|
||
## Our Responsibilities | ||
|
||
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. | ||
|
||
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. | ||
|
||
## Scope | ||
|
||
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. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team at [email protected]. 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. | ||
|
||
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. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, | ||
available at [http://contributor-covenant.org/version/1/4][version] | ||
|
||
[homepage]: http://contributor-covenant.org | ||
[version]: http://contributor-covenant.org/version/1/4/ |
Oops, something went wrong.