This repository has been archived by the owner on Jan 31, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Showing
67 changed files
with
4,403 additions
and
3,446 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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
/* @flow */ | ||
|
||
module.exports = { | ||
'extends': './node_modules/@krakenjs/grumbler-scripts/config/.eslintrc-browser.js', | ||
extends: | ||
"./node_modules/@krakenjs/grumbler-scripts/config/.eslintrc-browser.js", | ||
|
||
'globals': { | ||
__POST_ROBOT__: true | ||
} | ||
}; | ||
globals: { | ||
__POST_ROBOT__: 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
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 |
---|---|---|
@@ -1,32 +1,32 @@ | ||
name: "publish to npm" | ||
on: workflow_dispatch | ||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
fetch-depth: 0 | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
fetch-depth: 0 | ||
|
||
- name: ⎔ Setup node | ||
# sets up the .npmrc file to publish to npm | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "14" | ||
registry-url: "https://registry.npmjs.org" | ||
- name: ⎔ Setup node | ||
# sets up the .npmrc file to publish to npm | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "14" | ||
registry-url: "https://registry.npmjs.org" | ||
|
||
- name: 📥 Download deps | ||
uses: bahmutov/npm-install@v1 | ||
with: | ||
useLockFile: false | ||
- name: 📥 Download deps | ||
uses: bahmutov/npm-install@v1 | ||
with: | ||
useLockFile: false | ||
|
||
- name: Configure git user | ||
run: | | ||
git config --global user.email ${{ github.actor }}@users.noreply.github.com | ||
git config --global user.name ${{ github.actor }} | ||
- name: ▶️ Run release | ||
run: npm run release | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Configure git user | ||
run: | | ||
git config --global user.email ${{ github.actor }}@users.noreply.github.com | ||
git config --global user.name ${{ github.actor }} | ||
- name: ▶️ Run release | ||
run: npm run release | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
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 @@ | ||
_ |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
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,5 @@ | ||
build | ||
dist | ||
coverage | ||
flow-typed | ||
CHANGELOG.md |
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 @@ | ||
{} |
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 |
---|---|---|
|
@@ -6,7 +6,9 @@ Feel free to raise a pull request to us. Our team would review your proposed mod | |
your changes into our code. Ideas and other comments are also welcome. | ||
|
||
## Getting Started | ||
|
||
1. Create your own [fork](https://help.github.com/articles/fork-a-repo) of this [repository](../../fork). | ||
|
||
```bash | ||
# Clone it | ||
$ git clone [email protected]:me/post-robot.git | ||
|
@@ -30,12 +32,14 @@ $ npm run-script cover | |
``` | ||
|
||
## Making Changes | ||
|
||
1. Make sure that your changes adhere to the current coding conventions used throughout the project, indentation, accurate comments, etc. | ||
2. Lint your code regularly and ensure it passes prior to submitting a PR: | ||
`$ npm run lint`. | ||
`$ npm run lint`. | ||
3. Ensure existing tests pass (`$ npm test`) and include test cases which fail without your change and succeed with it. | ||
|
||
## Submitting Changes | ||
|
||
1. Ensure that no errors are generated by ESLint. | ||
2. Commit your changes in logical chunks, i.e. keep your changes small per single commit. | ||
3. Locally merge (or rebase) the upstream branch into your topic branch: `$ git pull upstream && git merge`. | ||
|
Oops, something went wrong.