UNPKG

2.85 kBJSONView Raw
1{
2 "name": "calendar-utils",
3 "version": "0.9.0",
4 "description": "Utility functions to generate views for calendars",
5 "main": "bundles/calendar-utils.umd.js",
6 "module": "calendar-utils.js",
7 "typings": "calendar-utils.d.ts",
8 "scripts": {
9 "test": "jest",
10 "test:watch": "npm t -- --watch",
11 "test:ci": "npm t -- --runInBand --coverage && npm run lint",
12 "test:coverage": "npm t -- --coverage",
13 "start": "npm run test:watch",
14 "build:umd": "webpack",
15 "build:esm": "tsc --module es2015",
16 "build:date-adapters": "tsc -p tsconfig-date-adapters.json && tsc -p tsconfig-date-adapters.json --module es2015 --outDir dist/date-adapters/esm",
17 "copyfiles": "copyfiles README.md LICENSE package.json dist && copyfiles -u 1 src/date-adapters/**/package.json dist",
18 "build": "npm run clean && npm run build:umd && npm run build:esm && npm run build:date-adapters && npm run copyfiles",
19 "clean": "rm -rf dist",
20 "preversion": "npm test",
21 "postversion": "npm run build && git push && npm publish dist && npm run clean",
22 "codecov": "cat coverage/lcov.info | codecov",
23 "lint": "tslint \"{src,test}/**/*.ts\""
24 },
25 "lint-staged": {
26 "{src,test}/**/*.ts": [
27 "prettier --write",
28 "tslint --fix"
29 ]
30 },
31 "repository": {
32 "type": "git",
33 "url": "git+https://github.com/mattlewis92/calendar-utils.git"
34 },
35 "keywords": [
36 "calendar",
37 "utilities"
38 ],
39 "author": "Matt Lewis",
40 "license": "MIT",
41 "bugs": {
42 "url": "https://github.com/mattlewis92/calendar-utils/issues"
43 },
44 "homepage": "https://github.com/mattlewis92/calendar-utils#readme",
45 "devDependencies": {
46 "@sinonjs/fake-timers": "^6.0.1",
47 "@types/chai": "^4.2.14",
48 "@types/jest": "^26.0.20",
49 "@types/node": "^14.14.20",
50 "chai": "^4.2.0",
51 "codecov": "^3.8.1",
52 "copyfiles": "^2.4.1",
53 "date-fns": "^2.16.1",
54 "dayjs": "^1.10.3",
55 "husky": "^4.3.7",
56 "jest": "^26.6.3",
57 "lint-staged": "^10.5.3",
58 "moment": "^2.29.1",
59 "prettier": "^2.2.1",
60 "timezone-mock": "^1.1.3",
61 "ts-jest": "^26.4.4",
62 "ts-loader": "^8.0.14",
63 "ts-node": "^9.1.1",
64 "tslint": "^6.1.3",
65 "tslint-config-prettier": "^1.18.0",
66 "typescript": "^4.1.3",
67 "webpack": "^5.13.0",
68 "webpack-cli": "^4.3.1"
69 },
70 "jest": {
71 "transform": {
72 "^.+\\.tsx?$": "ts-jest"
73 },
74 "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
75 "moduleFileExtensions": [
76 "ts",
77 "tsx",
78 "js",
79 "jsx",
80 "json",
81 "node"
82 ],
83 "coverageThreshold": {
84 "global": {
85 "branches": 99,
86 "functions": 100,
87 "lines": 100,
88 "statements": 100
89 }
90 },
91 "modulePathIgnorePatterns": [
92 "<rootDir>/dist/"
93 ]
94 },
95 "husky": {
96 "hooks": {
97 "pre-commit": "lint-staged"
98 }
99 }
100}