{"id":29395228,"url":"https://github.com/talvanes/babel-minimal","last_synced_at":"2026-05-10T02:13:55.424Z","repository":{"id":302956282,"uuid":"1014051352","full_name":"talvanes/babel-minimal","owner":"talvanes","description":"Minimal Node.js application project template using Babel for ES6+ support","archived":false,"fork":false,"pushed_at":"2025-07-05T13:10:57.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-05T14:30:14.959Z","etag":null,"topics":["babel","babeljs","es6","javascript","node","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/talvanes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2025-07-05T00:35:52.000Z","updated_at":"2025-07-05T13:16:08.000Z","dependencies_parsed_at":"2025-07-05T14:30:17.748Z","dependency_job_id":null,"html_url":"https://github.com/talvanes/babel-minimal","commit_stats":null,"previous_names":["talvanes/babel-node","talvanes/babel-minimal"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/talvanes/babel-minimal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talvanes%2Fbabel-minimal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talvanes%2Fbabel-minimal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talvanes%2Fbabel-minimal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talvanes%2Fbabel-minimal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/talvanes","download_url":"https://codeload.github.com/talvanes/babel-minimal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talvanes%2Fbabel-minimal/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264572219,"owners_count":23630203,"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","babeljs","es6","javascript","node","nodejs"],"created_at":"2025-07-10T11:27:16.223Z","updated_at":"2026-05-10T02:13:55.416Z","avatar_url":"https://github.com/talvanes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Babel Minimal\n\nA minimalistic Node.js project template using Babel for ES6+ support, focusing on modern JavaScript practices and built-in code quality tools.\n\n## Features\n\n- Babel with `@babel/preset-env` for modern JavaScript syntax\n- Example [`Car`](src/car.js) class using ES6 modules\n- Entry point: [`index.js`](src/index.js) demonstrates usage of the Car class\n- Development mode with hot-reloading via Nodemon and Babel Node\n- Production-ready build process with transpiled output to `dist/`\n- Enhanced module resolution:\n  - Configured module aliases (`@`, `@root`, `@tests`)\n  - Simplified imports with absolute-like paths\n  - Clean and maintainable import statements\n- Code quality tools:\n  - ESLint for code linting and best practices enforcement\n  - Prettier for consistent code formatting\n  - Integration of ESLint with Prettier for conflict-free operation\n\n## Getting Started\n\n1. **Install dependencies:**\n   ```sh\n   npm install\n   ```\n\n2. **Run in development mode:**\n   ```sh\n   npm run dev\n   ```\n   This uses Nodemon and Babel Node to run [`src/index.js`](src/index.js) with automatic reload on changes.\n\n3. **Build for production:**\n   ```sh\n   npm run build\n   ```\n   This transpiles the source code from `src/` to the `dist/` directory using Babel.\n\n4. **Run in production mode:**\n   ```sh\n   npm start\n   ```\n   This builds the project (if not already built) and runs the transpiled code from the `dist/` directory.\n\n5. **Code Quality:**\n   ```sh\n   # Run ESLint to check for issues\n   npm run lint\n\n   # Fix auto-fixable ESLint issues\n   npm run lint:fix\n   ```\n   The project uses ESLint with Prettier integration for consistent code style and quality.\n\n## Code Style \u0026 Linting\n\nThis project uses modern ESLint flat configuration (`eslint.config.mjs`) with the following features:\n- Latest ESLint configuration format using ES modules\n- Node.js global environment pre-configured\n- Customized rules:\n  - Warning level for unused variables and undefined references\n  - Recommended JavaScript rules enabled\n- Intelligent file ignores for `node_modules`, `dist`, `coverage`, etc.\n- Seamless integration with Prettier\n\nPrettier enforces consistent code style with these settings:\n- Semi-colons required\n- Single quotes for strings\n- 4 spaces indentation\n- ES5-style trailing commas\n\nThe ESLint configuration uses the new flat config format introduced in ESLint 9.0, providing better performance and more flexible configuration options. It integrates perfectly with Prettier through `eslint-config-prettier` and `eslint-plugin-prettier`.\n\n## Module Resolution\n\nThis project uses Babel's module-resolver plugin to enable clean and maintainable import paths. The following aliases are configured:\n\n- `@` or `@root` - Points to the `./src` directory\n  ```javascript\n  // Instead of\n  import Car from '../../../src/car'\n\n  // You can use\n  import Car from '@/car'\n  // or\n  import Car from '@root/car'\n  ```\n- `@tests` - Points to the `./tests` directory\n  ```javascript\n  // Instead of\n  import { testHelper } from '../../../tests/helpers'\n\n  // You can use\n  import { testHelper } from '@tests/helpers'\n  ```\n\nThis configuration helps maintain cleaner import statements and reduces the need for complex relative paths.\n\n## Project Structure\n\n```\n.\n├── src/              # Source directory\n│   ├── index.js      # Entry point, imports and uses Car class\n│   └── car.js        # Car class (ES6 module)\n├── dist/             # Production build output (generated)\n├── eslint.config.mjs # ESLint flat configuration (modern format)\n├── .prettierrc      # Prettier configuration\n├── babel.config.js  # Babel configuration\n├── package.json     # Project metadata and scripts\n├── nodemon.json     # Nodemon configuration for development\n├── LICENSE.txt      # License file\n└── ...\n```\n\n## License\n\nSee [`LICENSE`](LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalvanes%2Fbabel-minimal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalvanes%2Fbabel-minimal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalvanes%2Fbabel-minimal/lists"}