{"_id":"@amjs/js-fw","name":"@amjs/js-fw","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@amjs/js-fw","version":"1.0.0","description":"Framework tools to work in any CJS or ES6+ project.","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/Wolfchamane/amjs-js-fw.git"},"homepage":"https://github.com/Wolfchamane/amjs-js-fw.git","issues":"https://github.com/Wolfchamane/amjs-js-fw/issues","keywords":["js","es6+","fw","framework","tools"],"author":{"name":"Arturo Martínez Díaz","email":"arturo.martinez@amartinez.dev"},"license":"MIT","dependencies":{"@amjs/file-resolver":"^0.1.1","@babel/core":"^7.22.5","@babel/eslint-parser":"^7.22.5","@babel/plugin-proposal-class-properties":"^7.18.6","@babel/plugin-proposal-private-methods":"^7.18.6","@babel/plugin-proposal-throw-expressions":"^7.22.5","@babel/plugin-transform-modules-commonjs":"^7.22.5","@babel/plugin-transform-runtime":"^7.22.5","@babel/preset-env":"^7.22.5","@jf/node-env-tools":"^2.0.0","babel-jest":"^29.5.0","babel-plugin-istanbul":"^6.1.1","babel-runtime":"^6.26.0","chalk":"^4.0.0","eslint":"^8.43.0","eslint-friendly-formatter":"^4.0.1","jest":"^29.5.0"},"gitHead":"da249b8495f257a2a7457ea5feaa916b2e78eb7e","bugs":{"url":"https://github.com/Wolfchamane/amjs-js-fw/issues"},"_id":"@amjs/js-fw@1.0.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-/ZwJ7tXjVRHHhQRoMnRTcE6XLeGlkpYo+kgNfpnhmLuAKjee3NlUv0bGw4vxjtRd27tgaZG3a74apUnaPSNDYA==","shasum":"e168d3eb5a91f768bb77dbbb61bce4db0155caba","tarball":"https://registry.npmjs.org/@amjs/js-fw/-/js-fw-1.0.0.tgz","fileCount":11,"unpackedSize":25825,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDB9kml8kFew2YiXkeTd4umHF99aeOK8tQDjH474fbFuAiA9Ls1xO1D6bo38aQG+/v1c9k/lZbflQ8wwPZIp+IJsMw=="}]},"_npmUser":{"name":"amjs","email":"arturo.martinez@amartinez.dev"},"directories":{},"maintainers":[{"name":"amjs","email":"arturo.martinez@amartinez.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-fw_1.0.0_1687873814627_0.7126040712144335"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-27T13:50:14.479Z","1.0.0":"2023-06-27T13:50:14.828Z","modified":"2023-06-27T13:50:15.091Z"},"maintainers":[{"name":"amjs","email":"arturo.martinez@amartinez.dev"}],"description":"Framework tools to work in any CJS or ES6+ project.","homepage":"https://github.com/Wolfchamane/amjs-js-fw.git","keywords":["js","es6+","fw","framework","tools"],"repository":{"type":"git","url":"git+ssh://git@github.com/Wolfchamane/amjs-js-fw.git"},"author":{"name":"Arturo Martínez Díaz","email":"arturo.martinez@amartinez.dev"},"bugs":{"url":"https://github.com/Wolfchamane/amjs-js-fw/issues"},"license":"MIT","readme":"# @amjs/js-fw\n\n![version](https://img.shields.io/npm/v/@amjs/js-fw?style=flat-square)\n\nFramework tools to work in any CJS source code.\n\nWhat's included:\n\n- Default configuration for [BabelJS](https://babeljs.io/).\n- Unitary testing solution with [Jest](https://jestjs.io/).\n- Default configuration with [EslintJS](https://eslint.org/) for linting any `*.m?js` source code.\n\n> **NOTICE**: The linting configuration is **strongly** opinionated.\n>\n> Checkout configuration at [.estlintrc.js](.eslintrc.js) file.\n\n## Installation\n\n```bash\nnpm i --save-dev @amjs/js-fw\n```\n\nAdd this to your `package.json` scripts:\n\n```json\n{\n    \"scripts\": {\n        \"test\": \"NODE_ENV=test node node_modules/@amjs/js-fw/scripts/test\",\n        \"lint:js:check\": \"node node_modules/@amjs/js-fw/scripts/lint\",\n        \"lint:js:fix\": \"node node_modules/@amjs/js-fw/scripts/lint -- --fix\"\n    }\n}\n```\n\n## How to extend default configurations\n\nIn your project root folder you can extend locally any of provided `.babelrc.js`, `.eslintrc.js` or `jest.config.js`\nconfiguration files.\n\nIn the following example you can see how to override the [semi](https://eslint.org/docs/latest/rules/semi)\nrule of `Eslint`, for example:\n\n```javascript\n// at your local \".eslintrc.js\" file\nconst defaultConfig = require('@amjs/js-fw/.eslintrc.js');\n\ndefaultConfig.rules.semi = 0;\n\nmodule.exports = defaultConfig;\n```\n\n- Use [estlinjs documenation](https://eslint.org/docs/latest/) to explore rules in order to configure at your project.\n- Use [jest.io configuration](https://jestjs.io/docs/configuration) to explore how to configure `Jest`.\n- Use [babeljs documentation](https://babeljs.io/docs/) to explore how to configure `BabelJS`.\n","readmeFilename":"README.md"}