-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
135 lines (135 loc) · 4.97 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
{
"name": "@vicgutt/macrojs",
"version": "0.1.0",
"description": "Easily assign properties and methods to an object/function",
"author": "Victor GUTT <[email protected]> (https://victorgutt.dev)",
"license": "MIT",
"keywords": [
"macro",
"mixin",
"helpers",
"utilities"
],
"main": "./dist/macrojs.umd.js",
"module": "./dist/macrojs.es.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/macrojs.es.js",
"require": "./dist/macrojs.umd.js"
},
"./types": {
"import": "./dist/types/index.d.ts"
},
"./*": {
"import": "./dist/*"
}
},
"files": [
"dist",
"src"
],
"engines": {
"node": ">=14"
},
"scripts": {
"watch": "vite",
"preview": "vite preview",
"types": "tsc --emitDeclarationOnly",
"prod": "vite build",
"build": "npm run prod",
"------------------------------------- | AUTO | -------------------------------------": "",
"prepare": "npm run prod",
"postinstall": "npm run init",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable",
"------------------------------------- | INIT | -------------------------------------": "",
"init": "npm run init:test && npm run init:husky",
"init:test": "IF NOT EXIST jest.config.js (npx ts-jest config:init)",
"init:husky": "husky install",
"------------------------------------- | TEST | -------------------------------------": "",
"test": "jest",
"test:clear": "jest --clearCache",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"test:watch:index": "jest --watch --testPathPattern=index.test.ts",
"test:watch:macro": "jest --watch --testPathPattern=macro.test.ts",
"test:watch:mixin": "jest --watch --testPathPattern=mixin.test.ts",
"test:watch:polyfill": "jest --watch --testPathPattern=polyfill.test.ts",
"test:watch:macroable": "jest --watch --testPathPattern=./macroable.test.ts",
"test:watch:is": "jest --watch --testPathPattern=./tests/is/*",
"test:watch:utils": "jest --watch --testPathPattern=./tests/utils/*",
"test:watch:[filtered]": "jest --watch --testPathPattern=./tests/utils/assign.test.ts",
"------------------------------------- | LINT | -------------------------------------": "",
"lint": "eslint . --max-warnings=0",
"lint:src": "eslint ./src --max-warnings=0",
"lint:tests": "eslint ./tests --max-warnings=0",
"fix": "eslint . --max-warnings=0 --fix",
"fix:src": "eslint ./src --max-warnings=0 --fix",
"fix:tests": "eslint ./tests --max-warnings=0 --fix",
"------------------------------------- | CUTE | -------------------------------------": "",
"format": "prettier **/*.{ts,js,json,html,yml,md,css,php,vue} -l",
"format:fix": "prettier **/*.{ts,js,json,html,yml,md,css,php,vue} --write",
"------------------------------------- | PUBL | -------------------------------------": "",
"release": "np",
"release:preview": "np --preview",
"------------------------------------- | MISC | -------------------------------------": "",
"size": "npm run prod && size-limit",
"analyze": "npm run prod && size-limit --why"
},
"devDependencies": {
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@size-limit/preset-small-lib": "^5.0.3",
"@types/jest": "^27.0.1",
"@types/lodash": "^4.14.172",
"@types/node": "^16.6.1",
"@typescript-eslint/eslint-plugin": "^4.29.1",
"@typescript-eslint/parser": "^4.29.1",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-jsonc": "^1.5.0",
"eslint-plugin-prettier": "^3.4.0",
"husky": "^7.0.1",
"jest": "^27.0.6",
"jsdoc-to-markdown": "^7.0.1",
"lint-staged": "^11.1.2",
"np": "^7.5.0",
"pinst": "^2.1.6",
"prettier": "^2.3.2",
"size-limit": "^5.0.3",
"ts-jest": "^27.0.4",
"tslib": "^2.3.1",
"typescript": "^4.4.3",
"vite": "^2.4.4"
},
"homepage": "https://github.com/VicGUTT/macrojs#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/VicGUTT/macrojs.git"
},
"bugs": {
"url": "https://github.com/VicGUTT/macrojs/issues"
},
"size-limit": [
{
"path": "dist/macrojs.es.js",
"limit": "1 KB"
},
{
"path": "dist/macrojs.umd.js",
"limit": "1 KB"
},
{
"path": "dist/**/*.js",
"limit": "1.5 KB"
}
],
"np": {
"yarn": false
},
"publishConfig": {
"access": "public"
}
}