Skip to content

Commit

Permalink
feat(build): build overhaul with microbundle and semantic release (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricokahler committed Jan 31, 2021
1 parent e0bc9fa commit b141107
Show file tree
Hide file tree
Showing 15 changed files with 14,029 additions and 5,123 deletions.
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
{ "extends": "react-app" }
{
"extends": "react-app",
"ignorePatterns": ["dist/**/", "**/*test.*"]
}
15 changes: 0 additions & 15 deletions .github/workflows/build.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/code-coverage.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/compressed-size.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release
on:
push:
branches:
- main
- alpha
jobs:
release:
name: Release
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Run tests
run: npm t -- --coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test
on:
- pull_request

jobs:
release:
name: Test
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Run tests
run: npm t -- --coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
16 changes: 16 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.github
.vscode
node_modules
scripts
.babelrc
.eslintrc
.gitignore
.prettierrc
index.js
index.test.js
index.types-test.tsx
jest.config.js
package-lock.json
renovate.json
tsconfig.json
.releaserc.json
3 changes: 3 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"branches": ["main", { "name": "alpha", "prerelease": true }]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# HOCify · [![codecov](https://codecov.io/gh/ricokahler/hocify/branch/master/graph/badge.svg)](https://codecov.io/gh/ricokahler/hocify) [![bundlephobia](https://badgen.net/bundlephobia/minzip/hocify)](https://bundlephobia.com/result?p=hocify)
# HOCify · [![codecov](https://codecov.io/gh/ricokahler/hocify/branch/master/graph/badge.svg)](https://codecov.io/gh/ricokahler/hocify) [![bundlephobia](https://badgen.net/bundlephobia/minzip/hocify)](https://bundlephobia.com/result?p=hocify) [![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)

> HOCify (H-oh-see-ify) is a simple library that converts hooks to [HOCs](https://reactjs.org/docs/higher-order-components.html) for compatibility with class-based components.
Expand Down
Loading

0 comments on commit b141107

Please sign in to comment.