react-intl-cra
Advanced tools
{ | ||
"name": "react-intl-cra", | ||
"version": "0.2.10", | ||
"version": "0.2.11", | ||
"description": "Extract messages of `Creact React App` from the command line", | ||
"repository": "MCS-Lite/mcs-lite", | ||
"repository": "https://github.com/evenchange4/react-intl-cra", | ||
"author": "Michael Hsu <evenchange4@gmail.com>", | ||
"bugs": { | ||
"url": "https://github.com/MCS-Lite/mcs-lite/issues", | ||
"email": "evenchange4@gmail.com" | ||
}, | ||
"homepage": "https://github.com/MCS-Lite/mcs-lite#readme", | ||
"license": "MIT", | ||
"files": [ | ||
"src", | ||
"bin" | ||
], | ||
"main": "src/index.js", | ||
"bin": { | ||
"react-intl-cra": "./bin/extract-messages.js" | ||
"react-intl-cra": "bin/index.js" | ||
}, | ||
"license": "MIT", | ||
"scripts": { | ||
"test": "echo 'no'", | ||
"build": "echo 'none'" | ||
"test": "NODE_ENV='test' jest --coverage --runInBand", | ||
"test:watch": "npm run test -- --watch", | ||
"eslint": "eslint ./", | ||
"format": "prettier --write 'src/**/*.{js,json}' 'bin/**/*.{js,json}' 'tests/**/*.{js,json}' '*.md'", | ||
"flow": "flow", | ||
"flow-coverage": "flow-coverage-report", | ||
"changelog": "github-changes -o evenchange4 -r react-intl-cra -b master -f ./CHANGELOG.md --order-semver --use-commit-body" | ||
}, | ||
"dependencies": { | ||
"mcs-lite-scripts": "^0.3.10" | ||
"babel-core": "^6.26.0", | ||
"babel-plugin-react-intl": "^2.3.1", | ||
"babel-preset-react-app": "^3.1.0", | ||
"glob": "^7.1.2", | ||
"ramda": "^0.25.0" | ||
}, | ||
"devDependencies": { | ||
"babel-eslint": "^8.0.3", | ||
"codecov": "^3.0.0", | ||
"eslint": "^4.13.1", | ||
"eslint-config-airbnb-base": "^12.1.0", | ||
"eslint-config-prettier": "^2.9.0", | ||
"eslint-plugin-flowtype": "^2.40.1", | ||
"eslint-plugin-import": "^2.8.0", | ||
"eslint-plugin-jest": "^21.4.2", | ||
"eslint-plugin-prettier": "^2.3.1", | ||
"flow-bin": "^0.61.0", | ||
"flow-coverage-report": "^0.4.0", | ||
"github-changes": "^1.1.1", | ||
"jest": "^21.2.1", | ||
"prettier": "^1.9.2" | ||
}, | ||
"jest": { | ||
"collectCoverageFrom": [ | ||
"src/**/*.{js,jsx}" | ||
], | ||
"testPathIgnorePatterns": [ | ||
"<rootDir>/node_modules/" | ||
] | ||
}, | ||
"flow-coverage-report": { | ||
"excludeGlob": [ | ||
"node_modules/**" | ||
], | ||
"includeGlob": [ | ||
"src/**/*.js", | ||
"bin/**/*.js" | ||
], | ||
"threshold": 90, | ||
"type": "text" | ||
}, | ||
"prettier": { | ||
"trailingComma": "all", | ||
"singleQuote": true | ||
}, | ||
"eslintConfig": { | ||
"parser": "babel-eslint", | ||
"extends": [ | ||
"airbnb-base", | ||
"prettier", | ||
"prettier/flowtype", | ||
"plugin:jest/recommended" | ||
], | ||
"plugins": [ | ||
"prettier", | ||
"jest" | ||
], | ||
"env": { | ||
"jest/globals": true | ||
}, | ||
"rules": { | ||
"prettier/prettier": "error" | ||
} | ||
} | ||
} |
# react-intl-cra | ||
> Extract messages of `Creact React App` from the command line. | ||
[![Travis][build-badge]][build] | ||
[![Codecov Status][codecov-badge]][codecov] | ||
[![npm package][npm-badge]][npm] | ||
[![npm downloads][npm-downloads]][npm] | ||
[![Dependency Status][dependency-badge]][dependency] | ||
[![devDependency Status][devdependency-badge]][devdependency] | ||
[![peerDependency Status][peerdependency-badge]][peerdependency] | ||
[![Greenkeeper badge][greenkeeper-badge]][greenkeeper] | ||
[![prettier][prettier-badge]][prettier] | ||
[![license][license-badge]][license] | ||
This is just a workaround for [create-react-app #1227](https://github.com/facebookincubator/create-react-app/issues/1227#issuecomment-285738137) and [react-intl #869](https://github.com/yahoo/react-intl/issues/869) in unofficial way. | ||
@@ -12,4 +26,4 @@ | ||
```console | ||
$ npm i react-intl-cra --save-dev | ||
```cmd | ||
$ yarn add react-intl-cra --dev | ||
``` | ||
@@ -23,7 +37,6 @@ | ||
## Output | ||
Output: | ||
```json | ||
// messages.json | ||
// Output: messages.json | ||
@@ -46,8 +59,74 @@ [ | ||
## API | ||
| **Arguments** | **Description** | | ||
| ---------------------- | ----------------------------------------- | | ||
| First - `srcPattern` | The pattern of React component files | | ||
| Second - `desPath` | The output pathname of the `.json` file. | | ||
| **Arguments** | **Description** | | ||
| -------------------- | ---------------------------------------- | | ||
| First - `srcPattern` | The pattern of React component files | | ||
| Second - `desPath` | The output pathname of the `.json` file. | | ||
## Development | ||
### Requirements | ||
* node >= 9.3.0 | ||
* yarn >= 1.3.2 | ||
``` | ||
$ yarn install --pure-lockfile | ||
$ yarn start | ||
``` | ||
### Test | ||
``` | ||
$ yarn run format | ||
$ yarn run eslint | ||
$ yarn run flow | ||
$ yarn run test:watch | ||
``` | ||
### NPM Release | ||
> Any git tags. | ||
1. Create a new git tag | ||
2. Update `CHANGELOG.md` | ||
```console | ||
$ npm version patch | ||
$ npm run changelog | ||
``` | ||
--- | ||
## CONTRIBUTING | ||
* â Pull requests and â Stars are always welcome. | ||
* For bugs and feature requests, please create an issue. | ||
* Pull requests must be accompanied by passing automated tests (`$ yarn test`). | ||
## [CHANGELOG](CHANGELOG.md) | ||
## [LICENSE](LICENSE) | ||
MIT: [http://michaelhsu.mit-license.org](http://michaelhsu.mit-license.org) | ||
[build-badge]: https://img.shields.io/travis/evenchange4/react-intl-cra/master.svg?style=flat-square | ||
[build]: https://travis-ci.org/evenchange4/react-intl-cra | ||
[npm-badge]: https://img.shields.io/npm/v/react-intl-cra.svg?style=flat-square | ||
[npm]: https://www.npmjs.org/package/react-intl-cra | ||
[codecov-badge]: https://img.shields.io/codecov/c/github/evenchange4/react-intl-cra.svg?style=flat-square | ||
[codecov]: https://codecov.io/github/evenchange4/react-intl-cra?branch=master | ||
[npm-downloads]: https://img.shields.io/npm/dt/react-intl-cra.svg?style=flat-square | ||
[license-badge]: https://img.shields.io/npm/l/react-intl-cra.svg?style=flat-square | ||
[license]: http://michaelhsu.mit-license.org/ | ||
[dependency-badge]: https://david-dm.org/evenchange4/react-intl-cra.svg?style=flat-square | ||
[dependency]: https://david-dm.org/evenchange4/react-intl-cra | ||
[devdependency-badge]: https://david-dm.org/evenchange4/react-intl-cra/dev-status.svg?style=flat-square | ||
[devdependency]: https://david-dm.org/evenchange4/react-intl-cra#info=devDependencies | ||
[peerdependency-badge]: https://david-dm.org/evenchange4/react-intl-cra/peer-status.svg?style=flat-square | ||
[peerdependency]: https://david-dm.org/evenchange4/react-intl-cra#info=peerDependencies | ||
[greenkeeper-badge]: https://badges.greenkeeper.io/evenchange4/react-intl-cra.svg?style=flat-square | ||
[greenkeeper]: https://greenkeeper.io/ | ||
[prettier-badge]: https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square | ||
[prettier]: https://github.com/prettier/prettier |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
9417
390.21%6
100%51
2450%130
154.9%5
400%14
Infinity%2
100%2
100%4
300%