Skip to content

Commit

Permalink
refactor!: rewrite project in typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
lekterable committed Jan 7, 2022
1 parent 4f203ab commit 2a336d9
Show file tree
Hide file tree
Showing 11 changed files with 5,387 additions and 2,793 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
branches: master

pull_request:
branches: master

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10, 12, 14, 16]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm test
if: ${{ matrix.node-version != 16 }}
- run: npm run test:coverage
if: ${{ matrix.node-version == 16 }}
- uses: codecov/codecov-action@v2
if: ${{ matrix.node-version == 16 }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.DS_Store
node_modules
coverage
coverage
dist
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# is-regexy [![npm](https://img.shields.io/npm/v/is-regexy)](https://www.npmjs.com/package/is-regexy) [![build](https://img.shields.io/travis/lekterable/is-regexy)](https://travis-ci.com/github/lekterable/is-regexy) [![codecov](https://codecov.io/gh/lekterable/is-regexy/branch/master/graph/badge.svg)](https://codecov.io/gh/lekterable/is-regexy) [![management: perfekt👌](https://img.shields.io/badge/management-perfekt👌-red.svg?style=flat-square)](https://github.com/lekterable/perfekt)

A very simple library for checking if given value (Regex object OR string) could be a valid regular expression.
A very simple library for checking if a given value (Regex object OR string) is a valid regular expression.

Useful when we want to allow users to pass regex patterns as user input.
Useful when you want to allow users to pass regex patterns as input.

## Example

Expand Down
3 changes: 0 additions & 3 deletions index.js

This file was deleted.

6 changes: 6 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */

module.exports = {
preset: 'ts-jest',
testEnvironment: 'node'
}

0 comments on commit 2a336d9

Please sign in to comment.