1 | {
|
2 | "name": "dayjs",
|
3 | "version": "1.8.20",
|
4 | "description": "2KB immutable date time library alternative to Moment.js with the same modern API ",
|
5 | "main": "dayjs.min.js",
|
6 | "types": "index.d.ts",
|
7 | "module": "dayjs.min.js",
|
8 | "scripts": {
|
9 | "test": "TZ=Pacific/Auckland npm run test-tz && TZ=Europe/London npm run test-tz && TZ=America/Whitehorse npm run test-tz && npm run test-tz && jest",
|
10 | "test-tz": "date && jest test/timezone.test --coverage=false",
|
11 | "lint": "./node_modules/.bin/eslint src/* test/* build/*",
|
12 | "prettier": "prettier --write \"docs/**/*.md\"",
|
13 | "babel": "cross-env BABEL_ENV=build babel src --out-dir esm --copy-files && node build/esm",
|
14 | "build": "cross-env BABEL_ENV=build node build && npm run size",
|
15 | "sauce": "npx karma start karma.sauce.conf.js",
|
16 | "test:sauce": "npm run sauce -- 0 && npm run sauce -- 1 && npm run sauce -- 2 && npm run sauce -- 3",
|
17 | "size": "size-limit && gzip-size dayjs.min.js"
|
18 | },
|
19 | "pre-commit": [
|
20 | "lint"
|
21 | ],
|
22 | "size-limit": [
|
23 | {
|
24 | "limit": "2.99 KB",
|
25 | "path": "dayjs.min.js"
|
26 | }
|
27 | ],
|
28 | "jest": {
|
29 | "roots": [
|
30 | "test"
|
31 | ],
|
32 | "testRegex": "test/(.*?/)?.*test.js$",
|
33 | "testURL": "http://localhost",
|
34 | "coverageDirectory": "./coverage/",
|
35 | "collectCoverage": true,
|
36 | "collectCoverageFrom": [
|
37 | "src/**/*"
|
38 | ]
|
39 | },
|
40 | "release": {
|
41 | "prepare": [
|
42 | {
|
43 | "path": "@semantic-release/changelog"
|
44 | },
|
45 | [
|
46 | "@semantic-release/git",
|
47 | {
|
48 | "assets": [
|
49 | "CHANGELOG.md"
|
50 | ]
|
51 | }
|
52 | ]
|
53 | ]
|
54 | },
|
55 | "keywords": [
|
56 | "dayjs",
|
57 | "date",
|
58 | "time",
|
59 | "immutable",
|
60 | "moment"
|
61 | ],
|
62 | "author": "iamkun",
|
63 | "license": "MIT",
|
64 | "repository": {
|
65 | "type": "git",
|
66 | "url": "https://github.com/iamkun/dayjs.git"
|
67 | },
|
68 | "devDependencies": {
|
69 | "@babel/cli": "^7.0.0-beta.44",
|
70 | "@babel/core": "^7.0.0-beta.44",
|
71 | "@babel/node": "^7.0.0-beta.44",
|
72 | "@babel/preset-env": "^7.0.0-beta.44",
|
73 | "babel-core": "^7.0.0-bridge.0",
|
74 | "babel-jest": "^22.4.3",
|
75 | "babel-plugin-external-helpers": "^6.22.0",
|
76 | "cross-env": "^5.1.6",
|
77 | "eslint": "^4.19.1",
|
78 | "eslint-config-airbnb-base": "^12.1.0",
|
79 | "eslint-plugin-import": "^2.10.0",
|
80 | "eslint-plugin-jest": "^21.15.0",
|
81 | "gzip-size-cli": "^2.1.0",
|
82 | "jasmine-core": "^2.99.1",
|
83 | "jest": "^22.4.3",
|
84 | "karma": "^2.0.2",
|
85 | "karma-jasmine": "^1.1.2",
|
86 | "karma-sauce-launcher": "^1.1.0",
|
87 | "mockdate": "^2.0.2",
|
88 | "moment": "^2.22.0",
|
89 | "ncp": "^2.0.0",
|
90 | "pre-commit": "^1.2.2",
|
91 | "prettier": "^1.16.1",
|
92 | "rollup": "^0.57.1",
|
93 | "rollup-plugin-babel": "^4.0.0-beta.4",
|
94 | "rollup-plugin-uglify": "^3.0.0",
|
95 | "size-limit": "^0.18.0",
|
96 | "typescript": "^2.8.3"
|
97 | },
|
98 | "dependencies": {}
|
99 | }
|