-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
package.json
66 lines (66 loc) · 2.53 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
{
"name": "i18next-locize-backend",
"version": "4.0.13",
"description": "i18next-locize-backend is a backend layer for i18next to use locize service which can be used in node.js, in the browser and for deno.",
"keywords": [
"i18next",
"i18next-backend",
"locize"
],
"homepage": "https://github.com/locize/i18next-locize-backend",
"bugs": "https://github.com/locize/i18next-locize-backend/issues",
"repository": {
"type": "git",
"url": "git://github.com/locize/i18next-locize-backend.git"
},
"type": "module",
"main": "./cjs/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"require": "./cjs/index.js",
"default": "./lib/index.js"
},
"./cjs": {
"default": "./cjs/index.js"
}
},
"module": "./lib/index.js",
"dependencies": {
"node-fetch": "2.6.0"
},
"types": "./index.d.ts",
"devDependencies": {
"@babel/cli": "7.10.1",
"@babel/core": "7.10.2",
"@babel/preset-env": "7.10.2",
"babel-plugin-add-module-exports": "1.0.2",
"browserify": "16.5.1",
"eslint": "7.1.0",
"eslint-config-standard": "14.1.1",
"eslint-plugin-import": "2.20.2",
"eslint-plugin-node": "11.1.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",
"i18next": "19.4.5",
"json-server": "0.16.1",
"mocha": "7.2.0",
"uglify-js": "3.9.4",
"xmlhttprequest": "1.8.0"
},
"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 && cp lib/getFetch.cjs cjs/getFetch.js && node -e \"fs.writeFileSync('cjs/request.js', fs.readFileSync('cjs/request.js').toString().replace('getFetch.cjs', 'getFetch.js'))\"",
"browser": "browserify --ignore node-fetch --standalone i18nextLocizeBackend cjs/index.js -o i18nextLocizeBackend.js && uglifyjs i18nextLocizeBackend.js --compress --mangle -o i18nextLocizeBackend.min.js",
"build": "npm run compile && npm run browser",
"test:xmlhttpreq": "mocha test -R spec --require test/fixtures/xmlHttpRequest.cjs --exit --experimental-modules",
"test:fetch": "mocha test -R spec --exit --experimental-modules",
"test": "npm run lint && npm run build && npm run test:fetch && npm run test:xmlhttpreq",
"preversion": "npm run test && npm run build && git push",
"postversion": "git push && git push --tags"
},
"author": "locize",
"license": "MIT"
}