Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Commit

Permalink
chore(init): created repository from template
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed Mar 19, 2020
0 parents commit 7255d2f
Show file tree
Hide file tree
Showing 19 changed files with 16,993 additions and 0 deletions.
115 changes: 115 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
version: 2.1
executors:
node10:
docker:
- image: circleci/node:10-buster
environment:
NPM_CONFIG_PREFIX: "~/.npm-global"
working_directory: ~/repo

orbs:
helix-post-deploy: adobe/helix-post-deploy@1.3.0

commands:
setup:
steps:
- checkout
- restore_cache:
keys:
- v3-dependencies-{{ arch }}-{{ checksum "package-lock.json" }}
- run:
name: install latest npm
command: sudo npm -g install npm
- run:
name: Installing Dependencies
command: npm ci
- save_cache:
paths:
- node_modules
key: v3-dependencies-{{ arch }}-{{ checksum "package-lock.json" }}
- run:
name: prepare test git user
command: git config --global user.email "circleci@example.com" && git config
--global user.name "CircleCi Build"

jobs:
build:
executor: node10
steps:
- setup
- run: mkdir junit
- run:
name: Lint
command: npm run lint
- run:
name: Getting Code Coverage
command: npm run test-ci
- store_test_results:
path: junit
- store_artifacts:
path: junit

semantic-release:
executor: node10
steps:
- setup
- run:
name: revert changes to package-lock.json
command: git checkout -- package-lock.json
- helix-post-deploy/config-wsk
- helix-post-deploy/config-env
- run:
name: Semantic Release
command: npm run semantic-release
- run:
name: Post-Deployment Integration Test
command: npm run test-postdeploy
- store_test_results:
path: junit
- run:
name: Link Sequences
command: npm run deploy-sequences
# see https://circleci.com/orbs/registry/orb/adobe/helix-post-deploy
# for more available parameters
- helix-post-deploy/monitoring:
incubator: Helix Data Embed # remove to promote service to production

This comment has been minimized.

Copy link
@rofe

rofe Mar 20, 2020

Contributor

@trieloff hmm... did you write this manually, or was it filled in by the init script?

This comment has been minimized.

Copy link
@trieloff

trieloff Mar 23, 2020

Author Contributor

This was created by the init script.

This comment has been minimized.

Copy link
@rofe

rofe Mar 23, 2020

Contributor

That's wrong 😃 where is this script?

This comment has been minimized.

This comment has been minimized.

Copy link
@rofe

rofe Mar 24, 2020

Contributor

Looks like if we move incubator to the end, we won't have to adjust the script. Otherwise we need to account for the first item being incubator.

This comment has been minimized.

Copy link
@rofe
statuspage_name: Delivery
statuspage_group: Delivery Repeated Failure
newrelic_group_policy: Development Repeated Failure

branch-deploy:
executor: node10
steps:
- setup
- run:
name: revert changes to package-lock.json
command: git checkout -- package-lock.json
- helix-post-deploy/config-wsk
- run:
name: Branch Deployment
command: npm run deploy-ci
- run:
name: Post-Deployment Integration Test
command: npm run test-postdeploy
- store_test_results:
path: junit

workflows:
version: 2
build:
jobs:
- build
- branch-deploy:
context: Project Helix
requires:
- build
filters:
branches:
ignore: master
- semantic-release:
context: Project Helix
requires:
- build
filters:
branches:
only: master
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.vscode/*
coverage/*
16 changes: 16 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright 2019 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/

module.exports = {
root: true,
extends: '@adobe/helix',
};
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Bug report
about: Create a report to help us improve
labels: bug

---

**Description**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Version:**
run: `$ hlx --version`

**Additional context**
Add any other context about the problem here.
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/discussion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: Discussion
about: Start a new discussion
labels: question

---

## Overview
whats' this discussion about?

## Details
more details

## Proposed Actions
and now?
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Feature request
about: Suggest an idea for this project
labels: enhancement

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
16 changes: 16 additions & 0 deletions .github/move.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Configuration for move-issues - https://github.com/dessant/move-issues

# Delete the command comment when it contains no other content
deleteCommand: true

# Close the source issue after moving
closeSourceIssue: true

# Lock the source issue after moving
lockSourceIssue: true

# Mention issue and comment authors
mentionAuthors: true

# Preserve mentions in the issue content
keepContentMentions: true
8 changes: 8 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Please ensure your pull request adheres to the following guidelines:
- [ ] make sure to link the related issues in this description
- [ ] when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes

## Related Issues


Thanks for contributing!
16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
push:
branches-ignore:
- 'master'

jobs:
ci_trigger:
runs-on: ubuntu-latest
name: Impersonated CI Trigger
steps:
- name: Trigger
id: trigger
uses: tripodsan/touch-action@v1.5.7
with:
repo-token: ${{ secrets.MY_GITHUB_TOKEN }}
user: renovate-bot
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
push:
branches-ignore:
- 'master'

jobs:
ci_trigger:
runs-on: ubuntu-latest
name: Comment Semantic Release Status
steps:
- name: Comment
id: comment
uses: trieloff/semantic-release-comment-action@master
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
user: github-actions
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
coverage
.nyc_output/
node_modules/
junit
dist
tmp
logs
.DS_Store
test-results.xml
7 changes: 7 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
coverage
node_modules/
junit
build
logs
test-results.xml
.*
21 changes: 21 additions & 0 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
['@semantic-release/changelog', {
changelogFile: 'CHANGELOG.md',
}],
["@semantic-release/npm", {
npmPublish: false,
}],
['@semantic-release/git', {
assets: ['package.json', 'package-lock.json', 'CHANGELOG.md'],
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
}],
['@semantic-release/exec', {
publishCmd: 'npm run deploy'
}],
'@semantic-release/github',
],
branch: 'master'
};

0 comments on commit 7255d2f

Please sign in to comment.