-
-
Notifications
You must be signed in to change notification settings - Fork 66
/
package.json
146 lines (146 loc) · 3.7 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"name": "eta",
"version": "3.5.0",
"description": "Lightweight, fast, and powerful embedded JS template engine",
"keywords": [
"handlebars",
"ejs",
"eta",
"template engine",
"embedded template engine",
"layouts",
"partials",
"typescript types"
],
"homepage": "https://eta.js.org",
"type": "commonjs",
"main": "./dist/eta.umd.js",
"umd:main": "./dist/eta.umd.js",
"unpkg": "./dist/browser.umd.js",
"module": "./dist/eta.module.mjs",
"types": "./dist/types/index.d.ts",
"source": "src/index.ts",
"exports": {
"types": "./dist/types/index.d.ts",
"browser": "./dist/browser.umd.js",
"import": "./dist/eta.module.mjs",
"require": "./dist/eta.umd.js",
"default": "./dist/eta.umd.js"
},
"sideEffects": false,
"files": [
"dist"
],
"author": "Ben Gubler <nebrelbug@gmail.com>",
"funding": "https://github.com/eta-dev/eta?sponsor=1",
"repository": {
"type": "git",
"url": "git+https://github.com/eta-dev/eta.git"
},
"bugs": {
"url": "https://github.com/eta-dev/eta/issues"
},
"license": "MIT",
"engines": {
"node": ">=6.0.0"
},
"scripts": {
"build:node": "microbundle src/index.ts --target node --format esm && microbundle src/index.ts --target node --format umd",
"build:browser": "microbundle src/browser.ts --target web --format umd,modern --output dist/browser.js",
"build": "npm run build:node && npm run build:browser",
"commit": "git-cz",
"format": "prettier --write '{src,test}/**/**.ts'",
"lint": "eslint src/*.ts test/*.spec.ts --ext .js,.ts",
"prebuild": "rimraf dist",
"release": "npm run build && np && npx jsr publish",
"postversion": "node ./jsr.release.js",
"size": "size-limit",
"start": "microbundle watch",
"test": "jest --coverage && npm run size",
"test:prod": "npm run lint && npm run test -- --no-cache",
"test:watch": "jest --coverage --watch"
},
"size-limit": [
{
"path": "dist/browser.umd.js",
"limit": "3.5 KB"
}
],
"lint-staged": {
"{src,test}/**/**.ts": [
"eslint"
]
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
}
},
"jest": {
"transform": {
".(ts)": "ts-jest"
},
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
},
"testEnvironment": "node",
"testRegex": "\\/test\\/.*(\\.spec\\.ts)$",
"moduleFileExtensions": [
"ts",
"js"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/test/"
],
"coverageThreshold": {
"global": {
"branches": 85,
"functions": 95,
"lines": 95,
"statements": 95
}
},
"collectCoverageFrom": [
"src/!(browser).ts"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"devDependencies": {
"@commitlint/cli": "^17.4.4",
"@commitlint/config-conventional": "^17.4.4",
"@size-limit/preset-small-lib": "^8.2.4",
"@types/jest": "^29.4.0",
"@types/node": "^18.14.2",
"@typescript-eslint/eslint-plugin": "^5.53.0",
"@typescript-eslint/parser": "^5.53.0",
"commitizen": "^4.3.0",
"coveralls": "^3.1.1",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.35.0",
"eslint-config-prettier": "^8.6.0",
"husky": "^4.3.8",
"jest": "^29.4.3",
"lint-staged": "^13.1.2",
"microbundle": "^0.15.1",
"np": "^7.6.3",
"prettier": "^2.8.4",
"rimraf": "^4.1.2",
"shelljs": "^0.8.5",
"size-limit": "^8.2.4",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"tslib": "^2.5.0",
"typescript": "^5.1.3"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}