-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpackage.json
85 lines (85 loc) · 4.14 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
{
"name": "nusantara-valid",
"version": "0.4.2",
"description": "Nusantara Valid is a data validator to validate any Indonesian specific civil data such as nik, nip, and many more.",
"author": {
"name": "Fajar Setya Budi",
"url": "https://magicjar.github.io"
},
"license": "MIT",
"main": "dist/umd/nusantara-valid.js",
"keywords": [
"validator",
"javascript",
"indonesia",
"atm",
"credit-card",
"nik",
"nip",
"nisn",
"npwp",
"tnkb",
"postcode",
"email",
"mobile-number",
"telephone-number"
],
"repository": {
"type": "git",
"url": "https://github.com/agraris/nusantara-valid.git"
},
"bugs": {
"url": "https://github.com/agraris/nusantara-valid/issues"
},
"files": [
"dist/",
"src/ts/"
],
"scripts": {
"clean": "shx rm -rf dist",
"compile-all": "npm-run-all --parallel compile compile-ext",
"compile": "npm-run-all --parallel compile:*",
"compile:cjs": "rollup --config --environment FORMAT:cjs",
"compile:es": "rollup --config --environment FORMAT:esm",
"compile:umd": "rollup --config",
"compile-ext": "npm-run-all --parallel compile-ext:*",
"compile-ext:cjs": "rollup --config --environment FORMAT:cjs,EXTENDED:true",
"compile-ext:es": "rollup --config --environment FORMAT:esm,EXTENDED:true",
"compile-ext:umd": "rollup --config --environment EXTENDED:true",
"lint": "eslint --ext .ts,.tsx --cache --cache-location .cache/.eslintcache --report-unused-disable-directives src/ts",
"minify-all": "npm-run-all --parallel minify minify-ext",
"minify": "npm-run-all --parallel minify:*",
"minify:cjs": "terser --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/cjs/nusantara-valid.js.map, includeSources, url=nusantara-valid.min.js.map\" --output dist/cjs/nusantara-valid.min.js dist/cjs/nusantara-valid.js",
"minify:es": "terser --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/esm/nusantara-valid.js.map, includeSources, url=nusantara-valid.min.js.map\" --output dist/esm/nusantara-valid.min.js dist/esm/nusantara-valid.js",
"minify:umd": "terser --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/umd/nusantara-valid.js.map, includeSources, url=nusantara-valid.min.js.map\" --output dist/umd/nusantara-valid.min.js dist/umd/nusantara-valid.js",
"minify-ext": "npm-run-all --parallel minify-ext:*",
"minify-ext:cjs": "terser --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/cjs/nusantara-valid.extended.js.map, includeSources, url=nusantara-valid.extended.min.js.map\" --output dist/cjs/nusantara-valid.extended.min.js dist/cjs/nusantara-valid.extended.js",
"minify-ext:es": "terser --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/esm/nusantara-valid.extended.js.map, includeSources, url=nusantara-valid.extended.min.js.map\" --output dist/esm/nusantara-valid.extended.min.js dist/esm/nusantara-valid.extended.js",
"minify-ext:umd": "terser --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/umd/nusantara-valid.extended.js.map, includeSources, url=nusantara-valid.extended.min.js.map\" --output dist/umd/nusantara-valid.extended.min.js dist/umd/nusantara-valid.extended.js",
"pre-release": "npm-run-all clean compile-all minify-all",
"test": "nyc --reporter=lcov --reporter=text --clean mocha --require ts-node/register src/test/**/*",
"watch": "nodemon --watch src/ --ext ts --exec \"npm-run-all test lint\""
},
"devDependencies": {
"@babel/core": "^7.25.8",
"@babel/preset-env": "^7.25.8",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-typescript": "^5.0.2",
"@types/chai": "^4.3.20",
"@types/mocha": "^7.0.2",
"@typescript-eslint/eslint-plugin": "^3.10.1",
"@typescript-eslint/parser": "^3.10.1",
"chai": "^4.5.0",
"eslint": "^7.32.0",
"mocha": "^7.2.0",
"nodemon": "^2.0.22",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"rollup": "^2.79.2",
"shx": "^0.3.4",
"terser": "^4.8.1",
"ts-node": "^8.10.2",
"tslib": "^2.7.0",
"typescript": "^3.9.10"
}
}