Skip to content

Commit

Permalink
chore: some repo work
Browse files Browse the repository at this point in the history
  • Loading branch information
maraisr committed Aug 26, 2021
1 parent 546d389 commit b72129a
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 57 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@ name: CI

on:
push:
branches: [main]
pull_request: {}
branches:
- '**'
tags-ignore:
- '**'

pull_request:
branches:
- '**'

jobs:
test:
Expand Down Expand Up @@ -45,23 +51,8 @@ jobs:
- name: Compiles
run: pnpm run build

- name: (coverage) Install
if: matrix.node >= 16
run: pnpm i -g c8

- name: Test
if: matrix.node < 16
run: npm test

- name: (coverage) Test
if: matrix.node >= 16
run: c8 --include=src pnpm test
run: pnpm test

- name: Check Types
run: pnpm run typecheck

- name: (coverage) Report
if: matrix.node >= 16
run: |-
c8 report --reporter=text-lcov > coverage.lcov
bash <(curl -s https://codecov.io/bash)
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,12 @@
],
"scripts": {
"bench": "cross-env TS_NODE_PROJECT=tsconfig.test.json DEBUG=standard ROARR_LOG=true node -r ts-eager/register bench/index.ts",
"build": "node bin/build && tsc --declaration true --emitDeclarationOnly --outDir types --rootDir src --noEmit false",
"format": "prettier --write --list-different \"{*,bench/**/*,.github/**/*,test/*}.+(ts|json|yml|md)\"",
"build": "node bin/build && tsc --emitDeclarationOnly",
"fmt": "prettier --write --list-different \"{*,bench/**/*,.github/**/*,test/*}.+(ts|json|yml|md)\"",
"test": "cross-env TS_NODE_PROJECT=tsconfig.test.json uvu -r ts-eager/register -i helpers.ts test",
"typecheck": "tsc --noEmit"
},
"prettier": {
"bracketSpacing": true,
"printWidth": 80,
"proseWrap": "always",
"singleQuote": true,
"tabWidth": 4,
Expand All @@ -77,7 +75,7 @@
}
]
},
"dependencies": {
"devDependencies": {
"@marais/tsconfig": "0.0.1",
"@types/node": "16.7.2",
"cross-env": "7.0.3",
Expand Down
62 changes: 31 additions & 31 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"extends": "@marais/tsconfig",
"compilerOptions": {
"rootDir": "./",
"outDir": "types",
"noEmit": false,
"declaration": true,
"rootDir": "./src",
"baseUrl": ".",
"outDir": "dist",
"target": "ES2019",
"declaration": false,
"removeComments": false,
"lib": ["DOM", "ESNext"],
"paths": {
Expand Down

0 comments on commit b72129a

Please sign in to comment.