{"_id":"@dachinat/react-intl-cra","_rev":"3-401dd898670f47198f17442789247fb0","name":"@dachinat/react-intl-cra","dist-tags":{"latest":"0.3.3"},"versions":{"0.3.3":{"name":"@dachinat/react-intl-cra","version":"0.3.3","description":"Extract messages of `Creact React App` from the command line","repository":{"type":"git","url":"https://github.com/evenchange4/react-intl-cra"},"author":{"name":"Michael Hsu","email":"evenchange4@gmail.com"},"license":"MIT","files":["src","bin"],"main":"src/index.js","bin":{"react-intl-cra":"bin/index.js"},"scripts":{"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","precommit":"lint-staged","changelog":"github-changes -o evenchange4 -r react-intl-cra -b master -f ./CHANGELOG.md --order-semver --use-commit-body"},"dependencies":{"babel-core":"^6.26.0","babel-plugin-react-intl":"^2.4.0","babel-preset-react-app":"^3.1.1","chalk":"^2.3.0","glob":"^7.1.2","ramda":"^0.25.0","yargs":"^11.0.0"},"devDependencies":{"babel-eslint":"8.2.1","codecov":"3.0.0","eslint":"4.17.0","eslint-config-airbnb-base":"12.1.0","eslint-config-prettier":"2.9.0","eslint-plugin-flowtype":"2.42.0","eslint-plugin-import":"2.8.0","eslint-plugin-jest":"21.7.0","eslint-plugin-prettier":"2.6.0","flow-bin":"0.64.0","flow-coverage-report":"0.4.1","github-changes":"1.1.2","husky":"0.14.3","jest":"22.1.4","lint-staged":"6.1.0","prettier":"1.10.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":"es5","singleQuote":true},"lint-staged":{"*.{js,json,md}":["prettier --write","git add"]},"eslintConfig":{"parser":"babel-eslint","extends":["airbnb-base","prettier","prettier/flowtype","plugin:jest/recommended"],"plugins":["prettier","jest"],"env":{"jest/globals":true},"rules":{"prettier/prettier":"error"}},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2018 Michael Hsu\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@dachinat/react-intl-cra@0.3.3","dist":{"shasum":"51477272e4a3f81d337683695c1e4b7b4cf3cd3d","tarball":"https://registry.npmjs.org/@dachinat/react-intl-cra/-/react-intl-cra-0.3.3.tgz","fileCount":14,"unpackedSize":16740,"integrity":"sha512-Fq8y6tuW60aH8WeinPqRgy4npPSfsK1kKssR0yerjr/12EAq1LoNP5QajDNPEvafBWxgMZj/DKC9MJgs/YoVUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEEv2+1pOlHHEOvu05r7fhy466GDIn1rUWOHZyZavh4TAiAxcFoGRBsXGhXn4vZ9ITyyh00Fkq4ssYowUbGoCqkt0A=="}]},"maintainers":[{"name":"dachinat","email":"dachinat@gmail.com"}],"_npmUser":{"name":"dachinat","email":"dachinat@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-intl-cra_0.3.3_1522790440597_0.062299138502068585"},"_hasShrinkwrap":false}},"time":{"created":"2018-04-03T21:20:40.532Z","0.3.3":"2018-04-03T21:20:40.650Z","modified":"2022-06-12T16:51:18.589Z"},"maintainers":[{"name":"dachinat","email":"dachinat@gmail.com"}],"description":"Extract messages of `Creact React App` from the command line","repository":{"type":"git","url":"https://github.com/evenchange4/react-intl-cra"},"author":{"name":"Michael Hsu","email":"evenchange4@gmail.com"},"license":"MIT","readme":"# react-intl-cra\n\n> Extract messages of `Creact React App` from the command line.\n\n[![Travis][build-badge]][build]\n[![Codecov Status][codecov-badge]][codecov]\n[![npm package][npm-badge]][npm]\n[![npm downloads][npm-downloads]][npm]\n\n[![Dependency Status][dependency-badge]][dependency]\n[![devDependency Status][devdependency-badge]][devdependency]\n[![peerDependency Status][peerdependency-badge]][peerdependency]\n\n[![prettier][prettier-badge]][prettier]\n[![license][license-badge]][license]\n\nThis 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.\n\n## Installation\n\n```sh\n$ yarn add react-intl-cra --dev\n```\n\n## Demo\n\nStandalone example based on Create-React-App: https://github.com/evenchange4/react-intl-po-example\n\n```json\n$ react-intl-cra './src/**/*.js' -o messages.json\n```\n\nOutput:\n\n```json\n// messages.json\n\n[\n  {\n    \"id\": \"Account.account\",\n    \"description\": \"Title\",\n    \"defaultMessage\": \"帳戶\",\n    \"filepath\": \"./src/containers/Account/messages.js\"\n  },\n  {\n    \"id\": \"Account.myTestDevices\",\n    \"defaultMessage\": \"我的測試裝置\",\n    \"filepath\": \"./src/containers/Account/messages.js\"\n  },\n  ...\n]\n```\n\n### API\n\n```sh\n$ react-intl-cra --help\n\nUsage: react-intl-cra <pattern> [options]\n\n<pattern> Glob pattern to specify files.\n          Needs to be surrounded with quotes to prevent shell globbing.\n          Guide to globs: https://github.com/isaacs/node-glob\n\nOptions:\n  -o, --out-file  Output into a single file                             [string]\n  -h, --help      Show help                                            [boolean]\n  -v, --version   Show version number                                  [boolean]\n\nExamples:\n  react-intl-cra 'src/App.js'                   One file.\n  react-intl-cra 'src/**/*.js'                  Pattern to specify files\n  react-intl-cra 'src/**/*.js' -o message.json  Output into a single file.\n\n\nFor more information go to https://github.com/evenchange4/react-intl-cra\n```\n\n## NPM Usage\n\n```js\nimport extract from 'react-intl-cra';\n\nconst result = extract('./src/**/*.js');\n```\n\n## Development\n\n### Requirements\n\n* node >= 9\n* yarn >= 1.3.2\n\n```\n$ yarn install --pure-lockfile\n$ yarn start\n```\n\n### Test\n\n```\n$ yarn run format\n$ yarn run eslint\n$ yarn run flow\n$ yarn run test:watch\n```\n\n### NPM Release\n\n> Any git tags.\n\n1. Create a new git tag\n2. Update `CHANGELOG.md`\n\n```sh\n$ npm version patch\n$ npm run changelog\n```\n\n---\n\n## CONTRIBUTING\n\n* ⇄ Pull requests and ★ Stars are always welcome.\n* For bugs and feature requests, please create an issue.\n* Pull requests must be accompanied by passing automated tests (`$ yarn test`).\n\n## [CHANGELOG](CHANGELOG.md)\n\n## [LICENSE](LICENSE)\n\nMIT: [http://michaelhsu.mit-license.org](http://michaelhsu.mit-license.org)\n\n[build-badge]: https://img.shields.io/travis/evenchange4/react-intl-cra/master.svg?style=flat-square\n[build]: https://travis-ci.org/evenchange4/react-intl-cra\n[npm-badge]: https://img.shields.io/npm/v/react-intl-cra.svg?style=flat-square\n[npm]: https://www.npmjs.org/package/react-intl-cra\n[codecov-badge]: https://img.shields.io/codecov/c/github/evenchange4/react-intl-cra.svg?style=flat-square\n[codecov]: https://codecov.io/github/evenchange4/react-intl-cra?branch=master\n[npm-downloads]: https://img.shields.io/npm/dt/react-intl-cra.svg?style=flat-square\n[license-badge]: https://img.shields.io/npm/l/react-intl-cra.svg?style=flat-square\n[license]: http://michaelhsu.mit-license.org/\n[dependency-badge]: https://david-dm.org/evenchange4/react-intl-cra.svg?style=flat-square\n[dependency]: https://david-dm.org/evenchange4/react-intl-cra\n[devdependency-badge]: https://david-dm.org/evenchange4/react-intl-cra/dev-status.svg?style=flat-square\n[devdependency]: https://david-dm.org/evenchange4/react-intl-cra#info=devDependencies\n[peerdependency-badge]: https://david-dm.org/evenchange4/react-intl-cra/peer-status.svg?style=flat-square\n[peerdependency]: https://david-dm.org/evenchange4/react-intl-cra#info=peerDependencies\n[prettier-badge]: https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square\n[prettier]: https://github.com/prettier/prettier\n","readmeFilename":"README.md"}