{"id":21492880,"url":"https://github.com/crystal-ball/babel-base","last_synced_at":"2026-01-05T16:04:46.488Z","repository":{"id":37021865,"uuid":"241655293","full_name":"crystal-ball/babel-base","owner":"crystal-ball","description":"🔮 Projects - Babel configs","archived":false,"fork":false,"pushed_at":"2023-08-26T20:36:56.000Z","size":646,"stargazers_count":2,"open_issues_count":6,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-09T03:15:55.414Z","etag":null,"topics":["babel","crystal-ball"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crystal-ball.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2020-02-19T15:49:58.000Z","updated_at":"2022-11-08T03:01:40.000Z","dependencies_parsed_at":"2023-02-18T21:16:05.817Z","dependency_job_id":null,"html_url":"https://github.com/crystal-ball/babel-base","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crystal-ball%2Fbabel-base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crystal-ball%2Fbabel-base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crystal-ball%2Fbabel-base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crystal-ball%2Fbabel-base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crystal-ball","download_url":"https://codeload.github.com/crystal-ball/babel-base/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226063961,"owners_count":17568025,"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":["babel","crystal-ball"],"created_at":"2024-11-23T15:34:05.461Z","updated_at":"2026-01-05T16:04:46.391Z","avatar_url":"https://github.com/crystal-ball.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"right\"\u003e\n  \u003ch1 align=\"right\"\u003e\n    \u003cimg height=75 src=\"./docs/assets/readme-header.png\" alt=\"babel base\"\u003e\n  \u003c/h1\u003e\n\n  \u003c!-- prettier-ignore-start --\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@crystal-ball/babel-base\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/@crystal-ball/babel-base\" alt=\"Package version\" valign=\"text-top\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@crystal-ball/babel-base\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dt/@crystal-ball/babel-base?color=blue\" alt=\"NPM downloads\" valign=\"text-top\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/crystal-ball/babel-base/actions?workflow=CI%2FCD\"\u003e\n    \u003cimg src=\"https://github.com/crystal-ball/babel-base/workflows/CI%2FCD/badge.svg\" alt=\"Build status\" valign=\"text-top\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://snyk.io/test/github/crystal-ball/babel-base?targetFile=package.json\"\u003e\n    \u003cimg src=\"https://snyk.io/test/github/crystal-ball/babel-base/badge.svg?targetFile=package.json\" alt=\"Known vulnerabilities\" valign=\"text-top\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codeclimate.com/github/crystal-ball/babel-base/test_coverage\"\u003e\n    \u003cimg src=\"https://api.codeclimate.com/v1/badges/be98f6c629b6473bd3f6/test_coverage\" alt=\"Test coverage\" valign=\"text-top\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codeclimate.com/github/crystal-ball/babel-base/maintainability\"\u003e\n    \u003cimg src=\"https://api.codeclimate.com/v1/badges/be98f6c629b6473bd3f6/maintainability\" alt=\"Maintainability\" valign=\"text-top\" /\u003e\n  \u003c/a\u003e\n  \u003ccode\u003e:status\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/code\u003e\n\n  \u003cbr /\u003e\n  \u003ca href=\"https://renovatebot.com/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Renovate-enabled-32c3c2.svg\" alt=\"Renovate\" valign=\"text-top\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://commitizen.github.io/cz-cli/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Commitizen-%E2%9C%93%20friendly-10e67b\" alt=\"Commitizen friendly\" valign=\"text-top\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/crystal-ball/babel-base#workspaces/-projects-5b88b5c9af3c0a2186966767/board?repos=136812233\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/ZenHub-managed-5e60ba.svg\" alt=\"ZenHub\" valign=\"text-top\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://semantic-release.gitbook.io/semantic-release/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/%F0%9F%93%A6%F0%9F%9A%80-semantic_release-e10079.svg\" alt=\"Semantic Release\" valign=\"text-top\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"./CODE_OF_CONDUCT.md\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Contributor%20Covenant-v2.0-de8cf2.svg\" alt=\"Contributor Covenant\" valign=\"text-top\" /\u003e\n  \u003c/a\u003e\n  \u003ccode\u003e:integrations\u003c/code\u003e\n\n  \u003cbr /\u003e\n  \u003ca href=\"https://github.com/crystal-ball\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/%F0%9F%94%AE%E2%9C%A8-contains_magic-D831D7.svg\" alt=\"Contains magic\" valign=\"text-top\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/crystal-ball/crystal-ball.github.io\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/%F0%9F%92%96%F0%9F%8C%88-full_of_love-F5499E.svg\" alt=\"Full of love\" valign=\"text-top\" /\u003e\n  \u003c/a\u003e\n  \u003ccode\u003e:flair\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/code\u003e\n  \u003c!-- prettier-ignore-end --\u003e\n\n  \u003ch1\u003e\u003c/h1\u003e\n  \u003cbr /\u003e\n  \u003cp align=\"center\"\u003e\n    \u003cem\u003eThis package generates a base Babel configuration and dependencies for\n    React applications and Node services. Users can customize the generated base\n    configurations to meet the specific needs of any project.\u003c/em\u003e\n  \u003c/p\u003e\n  \u003cbr /\u003e\n\u003c/div\u003e\n\n## ⚙️ Setup\n\n**1. Install**\n\n```sh\nnpm i @crystal-ball/babel-base -DE\nnpm i @babel/runtime -E\n```\n\n**2. Setup a Babel config**\n\n```javascript\n// babel.config.js\n'use strict'\n\nconst { babelBase } = require('@crystal-ball/babel-base')\n\nmodule.exports = function babelConfigs() {\n  // Generate base Babel configs for your target project type\n  const baseConfigs = babelBase({\n    env: 'development|production|test',\n    target: 'node|react',\n  })\n\n  /* Optionally override the base configs as needed... */\n\n  return baseConfigs\n}\n```\n\n## React projects\n\n**1. Install packages**\n\n```sh\n# Install polyfills included in application bundle\nnpm i core-js regenerator-runtime -E\n\n# Install Linaria preset as a dev dependency\nnpm i @linaria/babel-preset react-refresh -DE\n```\n\n**2. Import polyfills**\n\n```javascript\n// src/index.js\n/**\n * Polyfill environments, these imports will be transformed to just the\n * polyfills needed to meet the browserslist targets by the `entry` config for\n * `@babel/preset-env`\n */\nimport 'core-js'\nimport 'regenerator-runtime/runtime'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrystal-ball%2Fbabel-base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrystal-ball%2Fbabel-base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrystal-ball%2Fbabel-base/lists"}