Skip to content

Commit

Permalink
Merge pull request #26 from ukayani/remove-gulp
Browse files Browse the repository at this point in the history
Remove gulp
  • Loading branch information
ukayani authored Jul 2, 2020
2 parents 47b206e + 9348b1c commit 26d0cfb
Show file tree
Hide file tree
Showing 11 changed files with 1,684 additions and 5,457 deletions.
144 changes: 144 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
{
"env": {
"node": true,
"es6": true
},
"globals": {},
"rules": {
"no-debugger": 0,
"strict": 0,
"semi": 0,
"linebreak-style": [
2,
"unix"
],
"no-bitwise": 0,
"no-cond-assign": [
2,
"except-parens"
],
"curly": [
2,
"all"
],
"eqeqeq": 2,
"no-eq-null": 0,
"no-eval": 0,
"no-unused-expressions": 2,
"guard-for-in": 0,
"wrap-iife": 2,
"no-use-before-define": [
2,
{
"functions": false
}
],
"no-loop-func": 0,
"no-caller": 0,
"no-script-url": 0,
"no-shadow": 2,
"no-new-func": 0,
"no-new-wrappers": 0,
"no-undef": 2,
"no-invalid-this": 0,
"no-proto": 0,
"no-multi-str": 0,
"comma-style": [
2,
"last"
],
"no-iterator": 0,
"block-scoped-var": 2,
"new-cap": 0,
"no-empty": [
2,
{
"allowEmptyCatch": true
}
],
"no-new": 0,
"no-plusplus": 0,
"dot-notation": 2,
"indent": [
2,
4,
{
"SwitchCase": 1
}
],
"max-params": [
2,
5
],
"max-depth": [
2,
5
],
"max-statements": [
2,
50
],
"complexity": [
2,
10
],
"keyword-spacing": [
2,
{}
],
"array-bracket-spacing": [
2,
"never",
{
"singleValue": true
}
],
"space-in-parens": [
2,
"never"
],
"quote-props": [
2,
"as-needed",
{
"keywords": true
}
],
"operator-linebreak": [
2,
"after"
],
"space-unary-ops": [
2,
{
"words": false,
"nonwords": false
}
],
"space-infix-ops": 2,
"no-with": 2,
"no-multiple-empty-lines": 2,
"quotes": [
2,
"single"
],
"no-mixed-spaces-and-tabs": 2,
"no-trailing-spaces": 2,
"brace-style": [
2,
"1tbs",
{
"allowSingleLine": true
}
],
"eol-last": 2,
"max-len": [
2,
120
],
"space-before-function-paren": [
2,
"always"
]
}
}
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This is a basic workflow to help you get started with Actions

name: Build

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

steps:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '12.x'
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Install Dependencies
run: npm install
- name: Lint
run: npm run lint
- name: Test
run: npm test
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Node.js Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run lint
- run: npm test
# Publish to npm
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: 'https://npm.pkg.github.com'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
106 changes: 0 additions & 106 deletions .jscsrc

This file was deleted.

64 changes: 0 additions & 64 deletions .jshintrc

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Restify Router

[![Build Status](https://travis-ci.org/ukayani/restify-router.svg?branch=master)](https://travis-ci.org/ukayani/restify-router)
![Build Status](https://github.com/ukayani/restify-router/workflows/Build/badge.svg?branch=master)

This module allows you to define your routes using a Router interface that is identical to how routes are registered
on a restify server. You can then apply the routes to a server instance.
Expand Down
Loading

0 comments on commit 26d0cfb

Please sign in to comment.