Skip to content

Commit 981914d

Browse files
committed
refactor: drop node 8
1 parent bddbdda commit 981914d

File tree

5 files changed

+41
-850
lines changed

5 files changed

+41
-850
lines changed

.babelrc

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

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: node_js
22
node_js:
3-
- 8
43
- 10
54
- 12
65
- 14

package.json

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)"
2121
],
2222
"dependencies": {
23-
"@babel/runtime": "^7.6.3",
2423
"dayjs": "^1.8.16",
2524
"debug": "^4.1.1",
2625
"mailparser": "^2.7.7",
@@ -30,10 +29,6 @@
3029
"uuid": "^3.3.3"
3130
},
3231
"devDependencies": {
33-
"@babel/cli": "^7.6.4",
34-
"@babel/core": "^7.6.4",
35-
"@babel/plugin-transform-runtime": "^7.6.2",
36-
"@babel/preset-env": "^7.6.3",
3732
"@commitlint/cli": "^8.2.0",
3833
"@commitlint/config-conventional": "^8.2.0",
3934
"auto-bind": "^2.1.1",
@@ -48,14 +43,13 @@
4843
"nyc": "^14.1.1",
4944
"remark-cli": "^7.0.0",
5045
"remark-preset-github": "^0.0.16",
51-
"rimraf": "^3.0.0",
5246
"xo": "^0.25.3"
5347
},
5448
"engines": {
55-
"node": ">=8"
49+
"node": ">=10"
5650
},
5751
"files": [
58-
"lib",
52+
"src",
5953
"template.pug"
6054
],
6155
"homepage": "https://github.com/niftylettuce/preview-email",
@@ -114,7 +108,7 @@
114108
]
115109
}
116110
},
117-
"main": "lib/index.js",
111+
"main": "src/index.js",
118112
"prettier": {
119113
"singleQuote": true,
120114
"bracketSpacing": true,
@@ -131,14 +125,11 @@
131125
},
132126
"scripts": {
133127
"ava": "cross-env NODE_ENV=test DEBUG=preview-email ava",
134-
"build": "npm run build:clean && npm run build:lib",
135-
"build:clean": "rimraf lib dist",
136-
"build:lib": "babel src --out-dir lib",
137128
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
138-
"lint": "xo && remark . -qfo && eslint lib",
129+
"lint": "xo && remark . -qfo && eslint . --ignore-path .gitignore",
139130
"nyc": "cross-env NODE_ENV=test nyc ava",
140-
"test": "npm run build && npm run lint && npm run ava",
141-
"test-coverage": "npm run build && npm run lint && npm run nyc"
131+
"test": "npm run lint && npm run ava",
132+
"test-coverage": "npm run lint && npm run nyc"
142133
},
143134
"xo": {
144135
"prettier": true,

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const path = require('path');
44
const test = require('ava');
55
const nodemailer = require('nodemailer');
66

7-
const previewEmail = require('../lib');
7+
const previewEmail = require('../src');
88

99
const transport = nodemailer.createTransport({ jsonTransport: true });
1010

0 commit comments

Comments
 (0)