Skip to content

Commit f749625

Browse files
committed
cleanup
1 parent 49f565d commit f749625

File tree

8 files changed

+1595
-50
lines changed

8 files changed

+1595
-50
lines changed

.eslintrc.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
plugins:
2+
- jasmine
3+
env:
4+
commonjs: true
5+
es6: true
6+
node: true
7+
jasmine: true
8+
extends:
9+
- airbnb-base
10+
globals:
11+
Atomics: readonly
12+
SharedArrayBuffer: readonly
13+
parserOptions:
14+
ecmaVersion: 2018
15+
rules: {}

.github/workflows/jshint/Dockerfile

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/jshint/action.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
1-
name: test-and-deploy
1+
name: CI
22
on: push
33

44
jobs:
55
test:
66
runs-on: ubuntu-latest
7-
container:
8-
image: node:11.6.0
97
steps:
108
- uses: actions/checkout@v2
9+
- uses: actions/setup-node@v1
1110
- run: npm install
12-
- run: npm test
13-
- uses: ./.github/workflows/jshint
14-
15-
deploy:
16-
runs-on: ubuntu-latest
17-
needs: test
18-
steps:
19-
- run: env
11+
- run: npm run lint
12+
- run: npm run test

index.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
var express = require('express')
2-
var app = express()
1+
const express = require('express');
32

4-
app.get('/', function (req, res) {
5-
res.set('Content-Type', 'text/plain');
6-
res.send('Hello World')
7-
})
3+
const app = express();
84

9-
module.exports = app.listen(8080, function () {
10-
console.log('Listening on port 8080')
11-
})
5+
app.get('/', (req, res) => {
6+
res.set('Content-Type', 'text/plain');
7+
res.send('Hello World');
8+
});
129

10+
module.exports = app.listen(8080, () => {
11+
});

0 commit comments

Comments
 (0)