|
22 | 22 | "debug": "^4.1.1"
|
23 | 23 | },
|
24 | 24 | "devDependencies": {
|
| 25 | + "@babel/cli": "^7.6.4", |
| 26 | + "@babel/core": "^7.6.4", |
| 27 | + "@babel/preset-env": "^7.6.3", |
25 | 28 | "@commitlint/cli": "latest",
|
26 | 29 | "@commitlint/config-conventional": "latest",
|
| 30 | + "@ladjs/browserslist-config": "^0.0.1", |
27 | 31 | "ava": "latest",
|
| 32 | + "babelify": "^10.0.0", |
| 33 | + "browserify": "^16.5.0", |
28 | 34 | "codecov": "latest",
|
29 |
| - "cross-env": "latest", |
| 35 | + "cross-env": "^6.0.3", |
30 | 36 | "dayjs": "^1.8.16",
|
31 |
| - "eslint": "latest", |
32 |
| - "eslint-config-xo-lass": "latest", |
| 37 | + "eslint": "^6.5.1", |
| 38 | + "eslint-config-xo-lass": "^1.0.3", |
| 39 | + "eslint-plugin-compat": "^3.3.0", |
| 40 | + "eslint-plugin-node": "^10.0.0", |
33 | 41 | "fixpack": "latest",
|
34 | 42 | "husky": "latest",
|
| 43 | + "jsdom": "^15.1.1", |
35 | 44 | "lint-staged": "latest",
|
36 | 45 | "nyc": "latest",
|
37 | 46 | "remark-cli": "latest",
|
38 | 47 | "remark-preset-github": "latest",
|
| 48 | + "tinyify": "^2.5.1", |
39 | 49 | "xo": "latest"
|
40 | 50 | },
|
41 | 51 | "engines": {
|
42 |
| - "node": ">=8.3" |
| 52 | + "node": ">=6.4.0" |
43 | 53 | },
|
| 54 | + "files": [ |
| 55 | + "lib", |
| 56 | + "dist" |
| 57 | + ], |
44 | 58 | "homepage": "https://github.com/niftylettuce/dayjs-with-plugins",
|
45 | 59 | "husky": {
|
46 | 60 | "hooks": {
|
47 | 61 | "pre-commit": "npm test",
|
48 | 62 | "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
49 | 63 | }
|
50 | 64 | },
|
| 65 | + "jsdelivr": "dist/dayjs-with-plugins.min.js", |
51 | 66 | "keywords": [
|
52 | 67 | "all",
|
53 | 68 | "alternative",
|
|
80 | 95 | "git add"
|
81 | 96 | ]
|
82 | 97 | },
|
83 |
| - "main": "index.js", |
| 98 | + "main": "lib/index.js", |
| 99 | + "peerDependencies": { |
| 100 | + "dayjs": "*" |
| 101 | + }, |
84 | 102 | "prettier": {
|
85 | 103 | "singleQuote": true,
|
86 | 104 | "bracketSpacing": true,
|
|
97 | 115 | },
|
98 | 116 | "scripts": {
|
99 | 117 | "ava": "cross-env NODE_ENV=test ava",
|
| 118 | + "browserify": "browserify src/index.js -o dist/dayjs-with-plugins.js -s dayjs -g [ babelify --configFile ./.dist.babelrc ]", |
| 119 | + "build": "npm run build:clean && npm run build:lib && npm run build:dist", |
| 120 | + "build:clean": "rimraf lib dist", |
| 121 | + "build:dist": "npm run browserify && npm run minify", |
| 122 | + "build:lib": "babel --config-file ./.lib.babelrc src --out-dir lib", |
100 | 123 | "coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
|
101 |
| - "lint": "xo && remark . -qfo", |
| 124 | + "lint": "xo && remark . -qfo && eslint -c .lib.eslintrc lib && eslint --no-inline-config -c .dist.eslintrc dist", |
| 125 | + "minify": "cross-env NODE_ENV=production browserify src/index.js -o dist/dayjs-with-plugins.min.js -s dayjs -g [ babelify --configFile ./.dist.babelrc ] -p tinyify", |
102 | 126 | "nyc": "cross-env NODE_ENV=test nyc ava",
|
103 |
| - "test": "npm run lint && npm run ava", |
104 |
| - "test-coverage": "npm run lint && npm run nyc" |
| 127 | + "test": "npm run build && npm run lint && npm run ava", |
| 128 | + "test-coverage": "npm run build && npm run lint && npm run nyc" |
105 | 129 | },
|
| 130 | + "unpkg": "dist/dayjs-with-plugins.min.js", |
106 | 131 | "xo": {
|
107 | 132 | "prettier": true,
|
108 | 133 | "space": true,
|
109 | 134 | "extends": [
|
110 | 135 | "xo-lass"
|
111 | 136 | ]
|
112 |
| - }, |
113 |
| - "peerDependencies": { |
114 |
| - "dayjs": "*" |
115 | 137 | }
|
116 | 138 | }
|
0 commit comments