5218906385
For any keys in en/translation.yaml and missing in <lang>/translation.yaml, this tool will add the key to <lang>/missing.yaml. This is to facilitate translation of keys that have been added to the app. This also serves as a lint-like tool for translation files since they will all be re-written when running.
169 lines
4.2 KiB
JSON
169 lines
4.2 KiB
JSON
{
|
|
"name": "regexper",
|
|
"version": "1.0.0",
|
|
"description": "Regular expression visualization tool using railroad diagrams",
|
|
"homepage": "http://regexper.com",
|
|
"author": {
|
|
"name": "Jeffrey Avallone",
|
|
"email": "jeff.avallone@gmail.com"
|
|
},
|
|
"license": "MIT",
|
|
"private": true,
|
|
"scripts": {
|
|
"start": "webpack-dev-server --config webpack.dev.js",
|
|
"start:prod": "run-s build start:http-server",
|
|
"start:http-server": "http-server ./build",
|
|
"build": "cross-env NODE_ENV=production run-s build:webpack build:prerender",
|
|
"build:webpack": "webpack --config webpack.prod.js",
|
|
"build:prerender": "node ./prerender/prerender.js",
|
|
"test": "run-s test:lint 'test:unit --coverage'",
|
|
"test:unit": "jest",
|
|
"test:lint": "eslint --ignore-path .gitignore .",
|
|
"test:watch": "yarn test:unit --watch",
|
|
"i18n:scrub": "node ./script/i18n-scrub.js",
|
|
"precommit": "run-s test:lint"
|
|
},
|
|
"browserslist": [
|
|
">1%",
|
|
"last 2 versions",
|
|
"not ie < 11"
|
|
],
|
|
"babel": {
|
|
"presets": [
|
|
"env",
|
|
"react"
|
|
],
|
|
"plugins": [
|
|
"transform-runtime",
|
|
"transform-class-properties",
|
|
"syntax-dynamic-import"
|
|
]
|
|
},
|
|
"postcss": {
|
|
"plugins": {
|
|
"postcss-import": {},
|
|
"postcss-cssnext": {}
|
|
}
|
|
},
|
|
"jest": {
|
|
"clearMocks": true,
|
|
"setupTestFrameworkScriptFile": "<rootDir>/src/setup/jest.js",
|
|
"snapshotSerializers": [
|
|
"enzyme-to-json/serializer"
|
|
],
|
|
"modulePaths": [
|
|
"src",
|
|
"node_modules"
|
|
],
|
|
"moduleNameMapper": {
|
|
"\\.svg$": "__mocks__/svgMock.js",
|
|
"\\.css$": "identity-obj-proxy"
|
|
},
|
|
"collectCoverageFrom": [
|
|
"src/**/*.js",
|
|
"!src/i18n.js",
|
|
"!src/prerender.js",
|
|
"!src/setup/service-worker.js",
|
|
"!src/setup/jest.js",
|
|
"!src/pages/**/config.js",
|
|
"!src/pages/**/browser.js"
|
|
],
|
|
"coverageDirectory": "<rootDir>/coverage",
|
|
"coverageReporters": [
|
|
"text-summary",
|
|
"html"
|
|
]
|
|
},
|
|
"eslintConfig": {
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true,
|
|
"node": true,
|
|
"jest/globals": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:react/recommended"
|
|
],
|
|
"parser": "babel-eslint",
|
|
"parserOptions": {
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": [
|
|
"react",
|
|
"jest"
|
|
],
|
|
"rules": {
|
|
"indent": [
|
|
"error",
|
|
2
|
|
],
|
|
"linebreak-style": [
|
|
"error",
|
|
"unix"
|
|
],
|
|
"quotes": [
|
|
"error",
|
|
"single"
|
|
],
|
|
"semi": [
|
|
"error",
|
|
"always"
|
|
]
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@alienfast/i18next-loader": "^1.0.14",
|
|
"babel-core": "^6.26.0",
|
|
"babel-eslint": "^8.2.1",
|
|
"babel-jest": "^22.2.2",
|
|
"babel-loader": "^7.1.2",
|
|
"babel-plugin-syntax-dynamic-import": "^6.18.0",
|
|
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
"babel-plugin-transform-runtime": "^6.23.0",
|
|
"babel-preset-env": "^1.6.1",
|
|
"babel-preset-react": "^6.24.1",
|
|
"babel-register": "^6.26.0",
|
|
"cheerio": "^1.0.0-rc.2",
|
|
"copy-webpack-plugin": "^4.4.1",
|
|
"cross-env": "^5.1.3",
|
|
"css-loader": "^0.28.9",
|
|
"enzyme": "^3.3.0",
|
|
"enzyme-adapter-react-16": "^1.1.1",
|
|
"enzyme-to-json": "^3.3.1",
|
|
"eslint": "^4.17.0",
|
|
"eslint-plugin-jest": "^21.8.0",
|
|
"eslint-plugin-react": "^7.6.1",
|
|
"extract-text-webpack-plugin": "^3.0.2",
|
|
"favicons-webpack-plugin-cesco": "^0.0.6",
|
|
"feather-icons": "^4.5.0",
|
|
"html-webpack-plugin": "^2.30.1",
|
|
"i18next": "^10.3.0",
|
|
"i18next-browser-languagedetector": "^2.1.0",
|
|
"identity-obj-proxy": "^3.0.0",
|
|
"jest": "^22.2.2",
|
|
"npm-run-all": "^4.1.2",
|
|
"postcss-cssnext": "^3.1.0",
|
|
"postcss-import": "^11.1.0",
|
|
"postcss-loader": "^2.1.0",
|
|
"raven-js": "^3.22.2",
|
|
"react": "^16.2.0",
|
|
"react-dom": "^16.2.0",
|
|
"react-ga": "^2.4.1",
|
|
"react-i18next": "^7.3.6",
|
|
"style-loader": "^0.20.1",
|
|
"svg-react-loader": "^0.4.5",
|
|
"uglifyjs-webpack-plugin": "^1.1.8",
|
|
"webpack": "^3.10.0",
|
|
"webpack-merge": "^4.1.1",
|
|
"webpack-node-externals": "^1.6.0",
|
|
"workbox-webpack-plugin": "^2.1.2"
|
|
},
|
|
"devDependencies": {
|
|
"http-server": "^0.11.1",
|
|
"husky": "^0.14.3",
|
|
"js-yaml": "^3.10.0",
|
|
"webpack-dev-server": "^2.11.1"
|
|
}
|
|
}
|