-
Notifications
You must be signed in to change notification settings - Fork 103
/
package.json
84 lines (84 loc) · 2.55 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
{
"name": "stampit",
"version": "5.0.4-next",
"description": "Create objects from reusable, composable behaviors.",
"author": {
"name": "Eric Elliott",
"url": "https://ericelliottjs.com"
},
"maintainers": [
{
"name": "Vasyl Boroviak",
"url": "https://vasyl.boroviak.name"
}
],
"homepage": "https://stampit.js.org",
"type": "module",
"main": "stampit.js",
"types": "stampit.d.ts",
"keywords": [
"object",
"prototype",
"object oriented",
"browser",
"inheritance",
"oop",
"node",
"factory",
"class",
"stamp",
"mixin"
],
"repository": {
"type": "git",
"url": "[email protected]:stampit-org/stampit.git"
},
"devDependencies": {
"benchmark": "^2.1.4",
"browserify": "^17.0.1",
"check-compose": "^5.0.0",
"eslint": "^8.57.1",
"esmify": "^2.1.1",
"gzip-size-cli": "^5.1.0",
"lodash": "^4.17.21",
"prettier": "^3.3.3",
"replace-in-file": "^8.2.0",
"tape": "^4.11.0",
"typescript": "^5.6.3",
"uglify-js": "^3.13.3"
},
"scripts": {
"cov": "npx --yes c8 --reporter html node --run test && open ./coverage/index.html",
"test": "export NODE_OPTIONS='--experimental-require-module --disable-warning=ExperimentalWarning' && node --run build && node ./test/index.js && node test/benchmark/index.js",
"browsertest": "mkdir out || true && browserify ./test/index.js -p esmify > out/test_bundle.js && cp ./test/index.html ./out/ && open ./out/index.html",
"lint": "eslint ./stampit.js ./test/",
"build": "rm -rf ./out stampit.min.js && node --run minify && node --run replace-version",
"replace-version": "replace-in-file VERSION `node -e 'process.stdout.write(require(\"./package\").version)'` ./stampit.min.js",
"ci": "node --run test && node --run lint",
"minify": "uglifyjs ./stampit.js -c collapse_vars,evaluate=false,unsafe,loops=false,keep_fargs=false,pure_getters,unused,dead_code,keep_fnames=[\"'stampit','Stamp'\"] -m reserved=['stampit','Stamp'] -o ./stampit.min.js && ls -l ./stampit.min.js && echo GZIP size: && gzip-size --raw ./stampit.min.js",
"preversion": "node --run ci",
"postversion": "node --run build"
},
"license": "MIT",
"files": [
"stampit.js",
"stampit.min.js",
"stampit.d.ts"
],
"eslintConfig": {
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2023
},
"rules": {
"no-prototype-builtins": 0
}
}
}