123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- {
- "name": "next-translate",
- "version": "1.6.0",
- "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": "contact@aralroca.com"
- },
- "main": "./lib/cjs/index.js",
- "module": "./lib/esm/index.js",
- "types": "./index.d.ts",
- "files": [
- "lib",
- "plugin*",
- "appWithI18n*",
- "DynamicNamespaces*",
- "I18nProvider*",
- "getT*",
- "loadNamespaces*",
- "Trans*",
- "withTranslation*",
- "useTranslation*",
- "setLanguage*",
- "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* setLang* Trans* useT* withT* getP* getC* *.d.ts getT transC* wrapT* types formatElements",
- "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",
- "husky": "pretty-quick --staged && yarn test",
- "prepare": "husky install",
- "prepublish": "yarn test && yarn build",
- "test": "cross-env NODE_ENV=test jest --env=jsdom",
- "test:coverage": "cross-env NODE_ENV=test jest --env=jsdom --coverage",
- "test:watch": "cross-env NODE_ENV=test jest --env=jsdom --watch",
- "tsc": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node build-packages.js"
- },
- "devDependencies": {
- "@babel/cli": "7.16.0",
- "@babel/core": "7.16.0",
- "@babel/preset-env": "7.16.4",
- "@babel/preset-typescript": "7.16.0",
- "@testing-library/react": "12.1.2",
- "@types/jest": "27.4.0",
- "@types/node": "16.11.7",
- "@types/react": "17.0.35",
- "@types/react-dom": "17.0.11",
- "@types/webpack": "5.28.0",
- "babel-jest": "27.3.1",
- "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": "7.0.4",
- "jest": "27.3.1",
- "next": "12.0.4",
- "prettier": "2.4.1",
- "pretty-quick": "3.1.2",
- "react": "17.0.2",
- "react-dom": "17.0.2",
- "supertest": "6.1.6",
- "typescript": "4.5.2"
- },
- "peerDependencies": {
- "next": ">= 10.0.0",
- "react": ">= 16.8.0"
- },
- "prettier": {
- "trailingComma": "es5",
- "tabWidth": 2,
- "semi": false,
- "singleQuote": true
- },
- "jest": {
- "roots": [
- "<rootDir>/__tests__",
- "<rootDir>/src"
- ],
- "testPathIgnorePatterns": [
- "/node_modules/",
- ".utils.js"
- ],
- "transform": {
- "^.+\\.(j|t)sx?$": "babel-jest"
- }
- }
- }
|