|
3 | 3 | "description": "Automatically opens your browser to preview Node.js email messages sent with Nodemailer. Made for Lad!", |
4 | 4 | "version": "0.0.10", |
5 | 5 | "author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)", |
| 6 | + "ava": { |
| 7 | + "failFast": true, |
| 8 | + "verbose": true |
| 9 | + }, |
6 | 10 | "bugs": { |
7 | 11 | "url": "https://github.com/niftylettuce/preview-email/issues", |
8 | 12 | "email": "niftylettuce@gmail.com" |
9 | 13 | }, |
| 14 | + "commitlint": { |
| 15 | + "extends": [ |
| 16 | + "@commitlint/config-conventional" |
| 17 | + ] |
| 18 | + }, |
10 | 19 | "contributors": [ |
11 | 20 | "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)" |
12 | 21 | ], |
13 | 22 | "dependencies": { |
14 | | - "bluebird": "^3.5.3", |
15 | | - "moment": "^2.23.0", |
16 | | - "nodemailer": "^5.1.1", |
17 | | - "opn": "^5.4.0", |
18 | | - "pug": "^2.0.3", |
| 23 | + "@babel/runtime": "^7.4.5", |
| 24 | + "debug": "^4.1.1", |
| 25 | + "moment": "^2.24.0", |
| 26 | + "nodemailer": "^6.2.1", |
| 27 | + "open": "^6.3.0", |
| 28 | + "pify": "^4.0.1", |
| 29 | + "pug": "^2.0.4", |
19 | 30 | "uuid": "^3.3.2" |
20 | 31 | }, |
21 | | - "ava": { |
22 | | - "failFast": true, |
23 | | - "verbose": true |
24 | | - }, |
25 | 32 | "devDependencies": { |
26 | | - "auto-bind": "^2.0.0", |
27 | | - "ava": "^1.0.1", |
28 | | - "babel-cli": "^6.26.0", |
29 | | - "babel-preset-env": "^1.7.0", |
30 | | - "codecov": "^3.1.0", |
| 33 | + "@babel/cli": "^7.4.4", |
| 34 | + "@babel/core": "^7.4.5", |
| 35 | + "@babel/plugin-transform-runtime": "^7.4.4", |
| 36 | + "@babel/preset-env": "^7.4.5", |
| 37 | + "@commitlint/cli": "^8.0.0", |
| 38 | + "@commitlint/config-conventional": "^8.0.0", |
| 39 | + "auto-bind": "^2.1.0", |
| 40 | + "ava": "^2.1.0", |
| 41 | + "codecov": "^3.5.0", |
31 | 42 | "cross-env": "^5.2.0", |
32 | | - "eslint": "^5.12.0", |
33 | | - "eslint-config-prettier": "^3.3.0", |
34 | | - "eslint-plugin-prettier": "^3.0.1", |
35 | | - "husky": "^1.3.1", |
36 | | - "lint-staged": "^8.1.0", |
37 | | - "nyc": "^13.1.0", |
38 | | - "prettier": "^1.15.3", |
| 43 | + "eslint": "^6.0.0", |
| 44 | + "eslint-config-xo-lass": "^1.0.3", |
| 45 | + "eslint-plugin-node": "^9.1.0", |
| 46 | + "husky": "^2.4.1", |
| 47 | + "lint-staged": "^8.2.1", |
| 48 | + "nyc": "^14.1.1", |
39 | 49 | "remark-cli": "^6.0.1", |
40 | | - "remark-preset-github": "^0.0.13", |
41 | | - "xo": "^0.23.0" |
| 50 | + "remark-preset-github": "^0.0.14", |
| 51 | + "rimraf": "^2.6.3", |
| 52 | + "xo": "^0.24.0" |
42 | 53 | }, |
43 | 54 | "engines": { |
44 | 55 | "node": ">=6.4.0" |
45 | 56 | }, |
| 57 | + "files": [ |
| 58 | + "lib", |
| 59 | + "template.pug" |
| 60 | + ], |
46 | 61 | "homepage": "https://github.com/niftylettuce/preview-email", |
| 62 | + "husky": { |
| 63 | + "hooks": { |
| 64 | + "pre-commit": "npm test", |
| 65 | + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" |
| 66 | + } |
| 67 | + }, |
47 | 68 | "keywords": [ |
48 | | - "litmus", |
49 | | - "demo", |
50 | | - "preview", |
51 | | - "email", |
52 | | - "test", |
| 69 | + "auto", |
| 70 | + "automatic", |
| 71 | + "automatically", |
53 | 72 | "browser", |
54 | | - "open", |
55 | | - "template", |
56 | | - "render", |
57 | | - "letter", |
58 | | - "opener", |
59 | | - "opn", |
60 | 73 | "chrome", |
| 74 | + "demo", |
| 75 | + "email", |
61 | 76 | "emails", |
62 | | - "templates", |
63 | 77 | "engine", |
64 | | - "pug", |
65 | | - "show", |
66 | | - "lad", |
67 | | - "koa", |
68 | 78 | "express", |
69 | | - "nodemailer", |
| 79 | + "koa", |
| 80 | + "lad", |
| 81 | + "lass", |
| 82 | + "letter", |
| 83 | + "litmus", |
70 | 84 | "mail", |
71 | 85 | "mailer", |
| 86 | + "nodemailer", |
| 87 | + "open", |
| 88 | + "open", |
| 89 | + "opener", |
| 90 | + "opn", |
| 91 | + "preview", |
| 92 | + "pug", |
| 93 | + "render", |
| 94 | + "show", |
72 | 95 | "smtp", |
73 | | - "automatic", |
74 | | - "automatically", |
75 | | - "auto", |
76 | | - "lass" |
| 96 | + "template", |
| 97 | + "templates", |
| 98 | + "test" |
77 | 99 | ], |
78 | 100 | "license": "MIT", |
79 | 101 | "lint-staged": { |
80 | | - "*.{js,jsx,mjs,ts,tsx,css,less,scss,json,graphql}": [ |
81 | | - "prettier --write --single-quote --trailing-comma none", |
82 | | - "git add" |
83 | | - ], |
84 | | - "*.md": [ |
85 | | - "remark . -qfo", |
86 | | - "git add" |
87 | | - ] |
| 102 | + "linters": { |
| 103 | + "*.js": [ |
| 104 | + "xo --fix", |
| 105 | + "git add" |
| 106 | + ], |
| 107 | + "*.md": [ |
| 108 | + "remark . -qfo", |
| 109 | + "git add" |
| 110 | + ], |
| 111 | + "package.json": [ |
| 112 | + "fixpack", |
| 113 | + "git add" |
| 114 | + ] |
| 115 | + } |
88 | 116 | }, |
89 | 117 | "main": "lib/index.js", |
90 | | - "files": [ |
91 | | - "lib", |
92 | | - "template.pug" |
93 | | - ], |
| 118 | + "prettier": { |
| 119 | + "singleQuote": true, |
| 120 | + "bracketSpacing": true, |
| 121 | + "trailingComma": "none" |
| 122 | + }, |
94 | 123 | "remarkConfig": { |
95 | 124 | "plugins": [ |
96 | 125 | "preset-github" |
|
101 | 130 | "url": "https://github.com/niftylettuce/preview-email" |
102 | 131 | }, |
103 | 132 | "scripts": { |
| 133 | + "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", |
104 | 137 | "coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov", |
105 | | - "lint": "xo && remark . -qfo", |
106 | | - "precommit": "lint-staged && npm test", |
107 | | - "test": "npm run build && npm run lint && npm run test-coverage", |
108 | | - "test-coverage": "cross-env NODE_ENV=test nyc ava", |
109 | | - "build": "node_modules/.bin/babel src --out-dir lib", |
110 | | - "watch": "node_modules/.bin/babel src --watch --out-dir lib" |
| 138 | + "lint": "xo && remark . -qfo && eslint lib", |
| 139 | + "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" |
111 | 142 | }, |
112 | 143 | "xo": { |
113 | | - "extends": "prettier", |
114 | | - "plugins": [ |
115 | | - "prettier" |
116 | | - ], |
117 | | - "parserOptions": { |
118 | | - "sourceType": "script" |
119 | | - }, |
120 | | - "rules": { |
121 | | - "prettier/prettier": [ |
122 | | - "error", |
123 | | - { |
124 | | - "singleQuote": true, |
125 | | - "bracketSpacing": true, |
126 | | - "trailingComma": "none" |
127 | | - } |
128 | | - ], |
129 | | - "max-len": [ |
130 | | - "error", |
131 | | - { |
132 | | - "code": 80, |
133 | | - "ignoreUrls": true |
134 | | - } |
135 | | - ], |
136 | | - "capitalized-comments": "off", |
137 | | - "camelcase": "off", |
138 | | - "no-warning-comments": "off", |
139 | | - "no-use-extend-native/no-use-extend-native": "off" |
140 | | - }, |
141 | | - "space": true |
| 144 | + "prettier": true, |
| 145 | + "space": true, |
| 146 | + "extends": [ |
| 147 | + "xo-lass" |
| 148 | + ] |
142 | 149 | } |
143 | 150 | } |
0 commit comments