forked from i18next/i18next-http-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
75 lines (75 loc) · 2.81 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
{
"name": "i18next-http-backend",
"version": "1.3.1",
"private": false,
"type": "module",
"main": "./cjs/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"require": "./cjs/index.js",
"default": "./esm/index.js"
},
"./cjs": {
"default": "./cjs/index.js"
},
"./esm": {
"default": "./esm/index.js"
}
},
"module": "./esm/index.js",
"dependencies": {
"cross-fetch": "3.1.4"
},
"types": "./index.d.ts",
"devDependencies": {
"@babel/cli": "7.13.0",
"@babel/core": "7.13.1",
"@babel/preset-env": "7.13.5",
"babel-plugin-add-module-exports": "1.0.4",
"browserify": "17.0.0",
"eslint": "7.20.0",
"eslint-config-standard": "16.0.2",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "4.3.1",
"eslint-plugin-require-path-exists": "1.1.9",
"eslint-plugin-standard": "5.0.0",
"expect.js": "0.3.1",
"i18next": "20.0.0",
"json-server": "0.16.3",
"json5": "2.2.0",
"mocha": "8.3.0",
"uglify-js": "3.12.8",
"xmlhttprequest": "1.8.0"
},
"description": "i18next-http-backend is a backend layer for i18next using in Node.js, in the browser and for Deno.",
"keywords": [
"i18next",
"i18next-backend",
"i18next-http-backend"
],
"homepage": "https://github.com/i18next/i18next-http-backend",
"repository": {
"type": "git",
"url": "git@github.com:i18next/i18next-http-backend.git"
},
"bugs": {
"url": "https://github.com/i18next/i18next-http-backend/issues"
},
"license": "MIT",
"scripts": {
"lint": "eslint .",
"compile:esm": "rm -rf esm && mkdir esm && BABEL_ENV=esm babel lib -d esm && cp lib/getFetch.cjs esm/getFetch.cjs && rm -f esm/getFetch.js",
"compile:cjs": "rm -rf cjs && mkdir cjs && BABEL_ENV=cjs babel lib -d cjs && 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'))\"",
"compile": "npm run compile:esm && npm run compile:cjs",
"browser": "browserify --ignore cross-fetch --standalone i18nextHttpBackend cjs/index.js -o i18nextHttpBackend.js && uglifyjs i18nextHttpBackend.js --compress --mangle -o i18nextHttpBackend.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",
"test:deno": "deno test --allow-net test/deno/*.js",
"preversion": "npm run test && npm run build && git push",
"postversion": "git push && git push --tags"
}
}