-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathpackage.json
62 lines (62 loc) · 1.91 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
{
"author": "adrai",
"name": "enum",
"version": "3.0.4",
"private": false,
"type": "module",
"main": "./cjs/enum.js",
"exports": {
"./package.json": "./package.json",
".": {
"require": "./cjs/enum.js",
"default": "./lib/enum.js"
}
},
"module": "./lib/enum.js",
"engines": {
"node": ">=0.6.0"
},
"dependencies": {},
"devDependencies": {
"@babel/cli": "7.8.4",
"@babel/core": "7.9.0",
"@babel/preset-env": "7.9.5",
"babel-plugin-add-module-exports": "1.0.2",
"browserify": "16.5.1",
"eslint": "6.8.0",
"eslint-config-standard": "14.1.1",
"eslint-plugin-import": "2.20.1",
"eslint-plugin-node": "11.0.0",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-require-path-exists": "1.1.9",
"eslint-plugin-standard": "4.0.1",
"expect.js": "0.3.1",
"mocha": "7.1.1",
"uglify-js": "3.8.1"
},
"description": "Enum is a javascript module that introduces the Enum Type. It works for node.js, in the browser and for deno.",
"keywords": [
"enum"
],
"homepage": "https://github.com/adrai/enum",
"repository": {
"type": "git",
"url": "[email protected]:adrai/enum.git"
},
"bugs": {
"url": "https://github.com/adrai/enum/issues"
},
"licenses": [
{
"type": "MIT",
"url": "https://raw.github.com/adrai/enum/master/licence"
}
],
"scripts": {
"lint": "eslint .",
"compile": "rm -rf cjs && mkdir cjs && babel lib -d cjs --presets=@babel/preset-env --plugins=add-module-exports && echo '{\"type\":\"commonjs\"}' > cjs/package.json",
"browser": "rm -rf dist && mkdir dist && browserify --standalone Enum cjs/enum.js -o dist/enum-$npm_package_version.js && uglifyjs dist/enum-$npm_package_version.js --compress --mangle -o dist/enum-$npm_package_version.min.js",
"build": "npm run compile && npm run browser",
"test": "npm run lint && npm run build && mocha test -R spec --globals Enum"
}
}