Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(monorepo): setup monorepo skeleton and break js to 2 packages #844

Merged
merged 22 commits into from
Aug 12, 2022
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
dc72251
feat(monorepo): setup monorepo skeleton and break js package to 2 pac…
subzero10 Jul 23, 2022
430418f
chore(monorepo): fix test scripts
subzero10 Jul 23, 2022
9fec8ae
chore(monorepo): fix test scripts
subzero10 Jul 24, 2022
839e637
chore(monorepo): rollup config
subzero10 Jul 24, 2022
22a2e36
chore(monorepo): remove ie11 from integration testing
subzero10 Jul 24, 2022
257c255
chore(monorepo): set org name to hb-test (temporarily)
subzero10 Jul 28, 2022
8df425f
Merge branch 'master' into monorepo
subzero10 Jul 28, 2022
09323a1
chore(monorepo): bump to v4.0.5 to match master
subzero10 Jul 28, 2022
58cbbaa
chore(monorepo): generate changelog files
subzero10 Jul 28, 2022
adbf75c
chore(monorepo): publish without asking
subzero10 Jul 29, 2022
acd0f34
chore(monorepo): publish config => public
subzero10 Jul 29, 2022
1a20be7
chore(monorepo): revert test org name
subzero10 Aug 2, 2022
66a47df
chore(monorepo): add readme files
subzero10 Aug 4, 2022
4676335
chore(monorepo): core readme file
subzero10 Aug 4, 2022
ccde16a
chore(monorepo): modify readme
subzero10 Aug 5, 2022
62658fb
chore(monorepo): improve ts build
subzero10 Aug 5, 2022
0f9b121
chore(monorepo): fix tsd
subzero10 Aug 5, 2022
d57b9f0
Update README.md
joshuap Aug 9, 2022
b08f7e8
Merge branch 'master' into monorepo
subzero10 Aug 10, 2022
05defce
chore: remove eslint comment
subzero10 Aug 10, 2022
752875d
docs: make README clearer
shalvah Aug 10, 2022
03752b5
chore: refactor causes out of notice class (#854)
subzero10 Aug 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

7 changes: 3 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
Expand Down Expand Up @@ -34,11 +33,11 @@
},
"ignorePatterns": [
"test/integration/",
"dist"
"dist",
"build"
],
"plugins": [
"@typescript-eslint",
"jest"
"@typescript-eslint"
],
"env":
{
Expand Down
8 changes: 4 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ A few sentences describing the overall goals of the pull request's commits.
## Related PRs
List related PRs against other branches:

branch | PR
------ | ------
other_pr_production | [link]()
other_pr_master | [link]()
| branch | PR |
|---------------------|----------|
| other_pr_production | [link]() |
| other_pr_master | [link]() |

## Todos
- [ ] Tests
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/lerna-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish New Release
on:
workflow_dispatch:
# uncomment to enable scheduled releases
# schedule:
# * is a special character in YAML so you have to quote this string
# - cron: "0 19 * * 2"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: master

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'npm'

- name: Install Deps
run: npm ci

- name: Git Config
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"

- run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: "us-east-1"
HONEYBADGER_JS_S3_BUCKET: ${{ secrets.HONEYBADGER_JS_S3_BUCKET }}
HONEYBADGER_DISTRIBUTION_ID: ${{ secrets.HONEYBADGER_DISTRIBUTION_ID }}
26 changes: 5 additions & 21 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,33 +46,17 @@ jobs:
- name: Build
run: |
npm ci
cd test/integration
cd packages/js/test/integration
npm ci

- name: Run integration tests
env:
CI: true
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
run: npm run test:integration

tsd:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '14.x'
cache: 'npm'

- name: Build
run: npm ci

- name: Check Typescript type definitions
run: npm run tsd
run: |
cd packages/js
npm run test:integration

lint:
runs-on: ubuntu-latest
Expand All @@ -89,7 +73,7 @@ jobs:
- name: Build
run: |
npm ci
cd examples/aws-lambda-typescript
cd packages/js/examples/aws-lambda-typescript
npm ci

- name: Run lint checks
Expand Down
64 changes: 0 additions & 64 deletions .github/workflows/shipjs-manual-prepare.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/shipjs-schedule-prepare.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/shipjs-trigger.yml

This file was deleted.

12 changes: 7 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.DS_Store
node_modules/
dist/
local.log
browserstack.err
.idea/
node_modules
.idea
*/**/*.tsbuildinfo
*/**/build
*/**/dist
*/**/.DS_Store
*/**/node_modules
Loading