Skip to content

Commit

Permalink
build: update project
Browse files Browse the repository at this point in the history
  • Loading branch information
jccr committed Feb 21, 2021
1 parent db9f59b commit ca80f23
Show file tree
Hide file tree
Showing 8 changed files with 2,277 additions and 49 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
48 changes: 48 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: npm

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm run build --if-present
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

.DS_Store*
*.log
*.gz

node_modules
.nyc_output
coverage
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
The MIT License (MIT)

Copyright (c) 2014 Jonathan Ong me@jongleberry.com
Copyright (c) 2021 Juan Carlos Corona Romero c@rlos.email

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
21 changes: 8 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
## Routington
[![npm](https://img.shields.io/npm/v/jccr/routington)](https://www.npmjs.com/package/@jccr/routington)
[![Dependencies](https://img.shields.io/david/jccr/routington)](https://david-dm.org/jccr/routington)
[![Node.js](https://github.com/jccr/routington/workflows/Node.js/badge.svg)](https://github.com/jccr/routington/actions?query=workflow%3ANode.js)
[![Coverage](https://coveralls.io/repos/github/jccr/routington/badge.svg?branch=main)](https://coveralls.io/github/jccr/routington?branch=main)

[![NPM version][npm-image]][npm-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Dependency Status][david-image]][david-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![Gittip][gittip-image]][gittip-url]
## @jccr/routington

> This is fork of the original [Routington](https://github.com/pillarjs/routington) with updated dependencies.
Routington is a [trie](http://en.wikipedia.org/wiki/Trie)-based URL router.
Its goal is only to define and match URLs.
Expand Down Expand Up @@ -177,8 +176,4 @@ IE9+
[david-image]: http://img.shields.io/david/pillarjs/routington.svg?style=flat-square
[david-url]: https://david-dm.org/pillarjs/routington
[license-image]: http://img.shields.io/npm/l/routington.svg?style=flat-square
[license-url]: LICENSE.md
[downloads-image]: http://img.shields.io/npm/dm/routington.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/routington
[gittip-image]: https://img.shields.io/gittip/jonathanong.svg?style=flat-square
[gittip-url]: https://www.gittip.com/jonathanong/
[license-url]: LICENSE.md

0 comments on commit ca80f23

Please sign in to comment.