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

Commit

Permalink
Merge pull request #1 from reactioncommerce/feat-kieckhafer-addSemant…
Browse files Browse the repository at this point in the history
…icRelease

feat: create this plugin (and add semantic-release to CI)
  • Loading branch information
aldeed authored Apr 21, 2020
2 parents 7a63e95 + cffaaf3 commit 2fef32d
Show file tree
Hide file tree
Showing 15 changed files with 2,231 additions and 879 deletions.
50 changes: 0 additions & 50 deletions .circleci/bin/docker-tags

This file was deleted.

55 changes: 37 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ jobs:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

# deploy:
# docker:
# - image: node:12
deploy:
docker:
- image: node:12

# steps:
# - checkout
steps:
- checkout

# - restore_cache:
# keys:
# - v1-dependencies-{{ checksum "package.json" }}
# # fallback to using the latest cache if no exact match is found
# - v1-dependencies-
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

# - run: npx semantic-release
- run: npx semantic-release

lint:
docker:
Expand All @@ -48,6 +48,21 @@ jobs:

- run: npm run lint

test:
docker:
- image: node:12

steps:
- checkout

- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: npm run test

workflows:
version: 2
build_deploy:
Expand All @@ -57,10 +72,14 @@ workflows:
- lint:
requires:
- build
# - deploy:
# context: reaction-publish-semantic-release
# requires:
# - lint
# filters:
# branches:
# only: trunk
- test:
requires:
- build
- deploy:
context: reaction-publish-semantic-release
requires:
- lint
- test
filters:
branches:
only: trunk
3 changes: 3 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: "./node_modules/@reactioncommerce/api-utils/lib/configs/eslintrc.cjs"
};
41 changes: 41 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: Bug Report
about: Something not up to standard? Let us know!
labels: 'bug, needs triage'
---

<!--
Issue tracker is **ONLY** used for reporting bugs. NO NEW FEATURE REQUESTS ACCEPTED. For new features, add an issue in our [Request Feature Request](https://github.com/reactioncommerce/reaction-feature-requests) repository.
Are you looking for help with getting started on Reaction? Please visit our [Reaction documentation](https://docs.reactioncommerce.com/reaction-docs/trunk/getting-started-developing-with-reaction).
Prerequisites
* [ ] Are you running the latest version?
* [ ] Are you able to consistently reproduce the issue?
* [ ] Did you search the issue queue for existing issue? [Search issues](https://github.com/reactioncommerce/reaction/issues)
-->

## Issue Description
<!--
Providing a clear description of the issue will enable a developer to quickly reproduce and understand the issue. Please provide a detailed description including images, animation and/or videos. For client issues, include browser console errors, for server issues please add terminal output and stack traces.
-->

## Steps to Reproduce
<!--
Please provide starting context, i.e. logged in as a user, configure a particular payment method.
-->
1.
2.
3.

## Possible Solution
<!--
Not obligatory, but suggest a fix/reason for the bug
-->


### Versions
<!--
(run `npm run version --silent` from your reaction directory)
-->
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Gitter chat
url: https://gitter.im/reactioncommerce/reaction
about: Please ask and answer questions here.
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/corework.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: Core Work
about: Reaction team development work ticket tracker
labels: 'core work'
---

<!--
Core work template is only for tracking work for the internal development cycles of the Reaction team. If you want to report a bug please use the bug report template.
Are you looking for help with getting started on Reaction? Please visit our [Reaction documentation](https://docs.reactioncommerce.com/reaction-docs/trunk/getting-started-developing-with-reaction).
-->


14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/questions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: ❓ Questions/Help
about: If you have questions, please check our gitter chat
labels: 'questions'
---

## ❓ Questions and Help

### Please note that this issue tracker is not a help form and this issue will be closed.

Please contact us instead. We are active in gitter and twitter:

- [Gitter](https://gitter.im/reactioncommerce/reaction)
- [Twitter](https://twitter.com/getreaction)
26 changes: 26 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Resolves #issueNumber
Impact: **breaking|critical|major|minor**
Type: **feature|bugfix|performance|test|style|refactor|docs|chore**

## Issue
Description of the issue this PR is solving, why it's happening, and how to reproduce it. This may differ from the original ticket as you now have more information at your disposal.

## Solution
Summarize your solution to the problem. Please include short descriptions of any solutions you tested before arriving at your final solution. This will help reviewers know why you decided to solve this problem in this particular way and will speed up the review process.

If you're solving a UIX related issue, please attach screen-caps or gifs showing how your solution differs from the issue.

## Breaking changes
If you have a breaking changes, list them here, otherwise list none.

Examples of breaking changes include changing file names, moving files, deleting files, renaming functions or exports, or changes to code which might cause previous versions of Reaction or third-party code not to work as expected.

Note any work that you did to mitigate the effect of any breaking changes such as creating migrations, deprecation warnings, etc.


## Testing
1. List the steps needed for testing your change in this section.
2. Assume that testers already know how to start the app, and do the basic setup tasks.
3. Be detailed enough that someone can work through it without being too granular

More detail for what each of these sections should include are available in our [Contributing Docs](https://docs.reactioncommerce.com/reaction-docs/trunk/contributing-to-reaction)
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# plugin-payments-stripe
# api-plugin-payments-stripe

[![npm (scoped)](https://img.shields.io/npm/v/@reactioncommerce/plugin-payments-stripe.svg)](https://www.npmjs.com/package/@reactioncommerce/plugin-payments-stripe)
[![CircleCI](https://circleci.com/gh/reactioncommerce/plugin-payments-stripe.svg?style=svg)](https://circleci.com/gh/reactioncommerce/plugin-payments-stripe)
[![npm (scoped)](https://img.shields.io/npm/v/@reactioncommerce/api-plugin-payments-stripe.svg)](https://www.npmjs.com/package/@reactioncommerce/api-plugin-payments-stripe)
[![CircleCI](https://circleci.com/gh/reactioncommerce/api-plugin-payments-stripe.svg?style=svg)](https://circleci.com/gh/reactioncommerce/api-plugin-payments-stripe)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

## Summary

Stripe Payments plugin for the Reaction API
Stripe Payments plugin for the [Reaction API](https://github.com/reactioncommerce/reaction)

## Developer Certificate of Origin
We use the [Developer Certificate of Origin (DCO)](https://developercertificate.org/) in lieu of a Contributor License Agreement for all contributions to Reaction Commerce open source projects. We request that contributors agree to the terms of the DCO and indicate that agreement by signing all commits made to Reaction Commerce projects by adding a line with your name and email address to every Git commit message contributed:
Expand Down
29 changes: 1 addition & 28 deletions babel.config.cjs
Original file line number Diff line number Diff line change
@@ -1,28 +1 @@
/**
* Babel is used only for running Jest tests in this project.
* If Jest adds support for ESM and import.meta, then Babel
* may become unnecessary.
*/

module.exports = function (api) { // eslint-disable-line no-undef
api.cache(false);

return {
presets: [
[
"@babel/preset-env",
{
targets: {
node: "12"
}
}
]
],
plugins: [
"babel-plugin-transform-import-meta",
"module:@reactioncommerce/babel-remove-es-create-require",
"rewire-exports",
"transform-es2015-modules-commonjs"
]
};
};
module.exports = require("@reactioncommerce/api-utils/lib/configs/babel.config.cjs");
Loading

0 comments on commit 2fef32d

Please sign in to comment.