forked from catamphetamine/libphonenumber-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
89 lines (89 loc) · 5.5 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
{
"name": "libphonenumber-js",
"version": "1.7.19",
"description": "A simpler (and smaller) rewrite of Google Android's popular libphonenumber library",
"main": "index.common.js",
"module": "index.es6.js",
"sideEffects": false,
"dependencies": {
"minimist": "^1.2.0",
"xml2js": "^0.4.17"
},
"devDependencies": {
"babel-cli": "^6.18.0",
"babel-core": "^6.21.0",
"babel-loader": "^7.1.4",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-plugin-transform-runtime": "^6.6.0",
"babel-preset-env": "^1.6.1",
"chai": "^3.5.0",
"crlf": "^1.1.1",
"cross-env": "^5.2.0",
"istanbul": "^1.1.0-alpha.1",
"json-loader": "^0.5.4",
"mocha": "^5.0.5",
"npm-run-all": "^1.4.0",
"rimraf": "^2.5.0",
"webpack": "^4.1.1",
"webpack-cli": "^2.0.12"
},
"scripts": {
"metadata:update:job": "git reset --hard && git pull && npm install && npm run metadata:update:release",
"metadata:pull-request": "babel-node runnable/metadata-pull-request",
"metadata:branch": "babel-node runnable/metadata-branch",
"metadata:unbranch": "babel-node runnable/metadata-unbranch",
"metadata:publish": "npm version patch && npm publish && git push",
"metadata:update:release": "npm run metadata:download && babel-node runnable/metadata-update-and-release",
"metadata:update:branch": "npm run metadata:branch && npm run metadata:download && babel-node runnable/metadata-update-and-push",
"metadata:update:pull-request": "npm run metadata:branch && npm run metadata:download && babel-node runnable/metadata-update-and-push-and-pull-request",
"metadata:generate": "npm-run-all metadata:generate:min metadata:generate:full metadata:generate:mobile metadata:generate:min:js metadata:generate:full:js metadata:generate:mobile:js metadata:generate:mobile:examples:js",
"metadata:generate:min": "babel-node -- runnable/generate ../PhoneNumberMetadata.xml ../metadata.min.json --examples mobile",
"metadata:generate:full": "babel-node -- runnable/generate ../PhoneNumberMetadata.xml ../metadata.full.json --extended --debug",
"metadata:generate:mobile": "babel-node -- runnable/generate ../PhoneNumberMetadata.xml ../metadata.mobile.json --types mobile",
"metadata:generate:min:js": "babel-node -- runnable/json-to-js ./metadata.min.json",
"metadata:generate:full:js": "babel-node -- runnable/json-to-js ./metadata.full.json",
"metadata:generate:mobile:js": "babel-node -- runnable/json-to-js ./metadata.mobile.json",
"metadata:generate:mobile:examples:js": "babel-node -- runnable/json-to-js ./examples.mobile.json",
"metadata:download": "babel-node runnable/download https://raw.githubusercontent.com/googlei18n/libphonenumber/master/resources/PhoneNumberMetadata.xml PhoneNumberMetadata.xml",
"test": "mocha --require babel-core/register --colors --bail --reporter spec --require ./test/setup.js \"source/**/*.test.js\" \"test/**/*.test.js\" --recursive",
"test-coverage": "istanbul cover -x \"build/**\" -x \"es6/**\" -x \"*.test.js\" -x \"source/findNumbers/Leniency.js\" -x \"source/PhoneNumberMatcher.js\" node_modules/mocha/bin/_mocha -- --require babel-core/register --colors --reporter dot --require ./test/setup.js \"source/**/*.test.js\" \"test/**/*.test.js\" --recursive",
"test-travis": "istanbul cover -x \"build/**\" -x \"es6/**\" -x \"*.test.js\" -x \"source/findNumbers/Leniency.js\" -x \"source/PhoneNumberMatcher.js\" node_modules/mocha/bin/_mocha --report lcovonly -- --require babel-core/register --colors --reporter spec --require ./test/setup.js \"source/**/*.test.js\" \"test/**/*.test.js\" --recursive",
"build:browser:production": "npm-run-all build:browser:production:legacy build:browser:production:min build:browser:production:max build:browser:production:mobile",
"build:browser:production:legacy": "webpack --mode production --progress --colors",
"build:browser:production:min": "cross-env LIBPHONENUMBER_FLAVOR=min webpack --mode production --progress --colors",
"build:browser:production:max": "cross-env LIBPHONENUMBER_FLAVOR=max webpack --mode production --progress --colors",
"build:browser:production:mobile": "cross-env LIBPHONENUMBER_FLAVOR=mobile webpack --mode production --progress --colors",
"build:browser:dev:legacy": "cross-env WEBPACK_ENV=dev webpack --mode development --progress --colors --watch",
"clean-for-build": "rimraf ./build/**/* ./es6/**/*",
"build-commonjs-modules": "cross-env BABEL_ENV=commonjs babel ./source --out-dir ./build --source-maps --ignore test.js",
"build-es6-modules": "cross-env BABEL_ENV=es6 babel ./source --out-dir ./es6 --source-maps --ignore test.j",
"build": "npm-run-all clean-for-build build-commonjs-modules build-es6-modules build:browser:production",
"prepublish": "crlf --set=LF bin/* && npm run metadata:generate && crlf --set=LF metadata.*.json && npm-run-all build test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/catamphetamine/libphonenumber-js.git"
},
"keywords": [
"javascript",
"telephone",
"phone",
"number",
"input",
"mobile",
"android",
"iphone",
"international",
"libphonenumber"
],
"author": "catamphetamine <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/catamphetamine/libphonenumber-js/issues"
},
"homepage": "https://github.com/catamphetamine/libphonenumber-js#readme",
"bin": {
"libphonenumber-generate-metadata": "./bin/update-metadata.js"
}
}