{"id":19664673,"url":"https://github.com/wisersolutions/transpile-js","last_synced_at":"2025-04-28T21:33:49.789Z","repository":{"id":36456940,"uuid":"150229225","full_name":"WiserSolutions/transpile-js","owner":"WiserSolutions","description":"Provides default Babel config and build scripts for other modules.","archived":false,"fork":false,"pushed_at":"2023-07-19T11:11:21.000Z","size":870,"stargazers_count":1,"open_issues_count":4,"forks_count":1,"subscribers_count":38,"default_branch":"master","last_synced_at":"2024-04-14T04:48:48.291Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WiserSolutions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-25T08:07:14.000Z","updated_at":"2024-06-21T04:19:51.915Z","dependencies_parsed_at":"2024-06-21T04:19:42.431Z","dependency_job_id":null,"html_url":"https://github.com/WiserSolutions/transpile-js","commit_stats":{"total_commits":59,"total_committers":5,"mean_commits":11.8,"dds":"0.27118644067796616","last_synced_commit":"a4c473a7be791ce87ed5b1cd3341f93daad086ef"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WiserSolutions%2Ftranspile-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WiserSolutions%2Ftranspile-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WiserSolutions%2Ftranspile-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WiserSolutions%2Ftranspile-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WiserSolutions","download_url":"https://codeload.github.com/WiserSolutions/transpile-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224133847,"owners_count":17261324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T16:18:34.143Z","updated_at":"2024-11-11T16:18:35.070Z","avatar_url":"https://github.com/WiserSolutions.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# transpile-js\n\nDefault Babel config and build scripts for other JavaScript packages\n\n## Use\n\n1. Install using:\n    ```sh\n    npm install @wisersolutions/transpile-js\n    ```\n1. Create a `babel.config.js` or `.babelrc.js` file in the root folder of your package:\n    ```javascript\n    module.exports = require('@wisersolutions/transpile-js/babel.config')\n    ```\n    _This step is optional, but needed if you use any other tools that rely on Babel, such as\n    Eslint or Jest. However, if you do this, you need to install the used presets\n   (`@babel/preset-env` \u0026 `@babel/preset-react`) in your project as well._\n1. Add a pre-publish task to `package.json` and set the entry points for the published package:\n    ```json5\n    {\n      \"main\": \"./lib/index.js\",\n      \"module\": \"./es/index.js\",\n      \"scripts\": {\n        \"prepublishOnly\": \"transpile-js\"\n      }\n    }\n    ```\n    (assuming your entry point is `src/index.js`).\n1. Add `/es` and `/lib` to `.gitignore` and create (and populate if needed) a `.npmignore` file,\n  so that the transpiled code isn't added to VCS, but it _is_ published.\n\n## Development\n\n### Install\n\nInstall dependencies using:\n\n```sh\nnpm install\n```\n\n### Develop\n\nAfter you modify sources, run the following (or set up your IDE to do it for you):\n\n- format the code using `npm run format`\n- lint it using `npm run lint`\n\nand fix the errors, if there are any.\n\n### Publish\n\nPublishing is done in two steps:\n\n1. Create a new version tag and push it to the repository:\n    ```sh\n    npm version \u003cpatch|minor|major\u003e\n    git push --follow-tags\n    ```\n1. Build and publish the new version as a npm package:\n    ```sh\n    npm publish --access public\n    ``` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwisersolutions%2Ftranspile-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwisersolutions%2Ftranspile-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwisersolutions%2Ftranspile-js/lists"}