forked from aralroca/next-translate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
114 lines (114 loc) · 3.11 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"name": "next-translate",
"version": "1.0.1",
"description": "Tiny and powerful i18n tools (Next plugin + API) to translate your Next.js pages.",
"license": "MIT",
"keywords": [
"react",
"preact",
"i18n",
"nextjs",
"next.js",
"next",
"plugin",
"translate",
"translation",
"internationalization",
"locale",
"locales",
"globalization"
],
"repository": {
"type": "git",
"url": "https://github.com/vinissimus/next-translate.git"
},
"author": {
"name": "Aral Roca Gòmez",
"email": "[email protected]"
},
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
"types": "./index.d.ts",
"files": [
"cli",
"lib",
"plugin*",
"appWithI18n*",
"DynamicNamespaces*",
"I18nProvider*",
"getT*",
"loadNamespaces*",
"Trans*",
"withTranslation*",
"useTranslation*",
"index*"
],
"scripts": {
"build": "yarn clean && cross-env NODE_ENV=production && yarn tsc",
"clean": "yarn clean:build && yarn clean:examples",
"clean:build": "rm -rf lib plugin appWith* Dynamic* I18n* index _context loadNa* Trans useT* withT* getP* getC* *.d.ts getT transC* wrapT* types",
"clean:examples": "rm -rf examples/**/.next && rm -rf examples/**/node_modules && rm -rf examples/**/yarn.lock",
"example": "yarn example:complex",
"example:basic": "yarn build && cd examples/basic && yarn && yarn dev",
"example:complex": "yarn build && cd examples/complex && yarn && yarn dev",
"example:without-loader": "yarn build && cd examples/without-loader && yarn && yarn dev",
"format": "pretty-quick",
"prepublish": "yarn test && yarn build",
"test": "cross-env NODE_ENV=test jest",
"test:coverage": "cross-env NODE_ENV=test jest --coverage",
"test:watch": "cross-env NODE_ENV=test jest --watch",
"tsc": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node build-packages.js"
},
"bin": {
"next-translate": "./cli/builder.js"
},
"devDependencies": {
"@babel/cli": "7.12.10",
"@babel/core": "7.12.10",
"@babel/preset-env": "7.12.11",
"@babel/preset-typescript": "7.12.7",
"@testing-library/react": "11.2.2",
"@types/node": "14.14.14",
"@types/react": "17.0.0",
"@types/react-dom": "17.0.0",
"@types/webpack": "4.41.25",
"babel-jest": "26.6.3",
"babel-plugin-transform-es2015-modules-commonjs": "6.26.2",
"babel-preset-minify": "0.5.1",
"cross-env": "7.0.3",
"express": "4.17.1",
"husky": "4.3.6",
"jest": "26.6.3",
"next": "10.0.3",
"prettier": "2.2.1",
"pretty-quick": "3.1.0",
"react": "17.0.1",
"react-dom": "17.0.1",
"supertest": "6.0.1",
"typescript": "4.1.3"
},
"peerDependencies": {
"next": ">= 10.0.0",
"react": ">= 16.8.0"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged && yarn test"
}
},
"prettier": {
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true
},
"jest": {
"roots": [
"<rootDir>/__tests__",
"<rootDir>/src"
],
"transform": {
"^.+\\.(j|t)sx?$": "babel-jest"
}
}
}