{"id":19018923,"url":"https://github.com/devunltd/js-library-boilerplate","last_synced_at":"2025-04-07T15:05:22.302Z","repository":{"id":33258317,"uuid":"156781560","full_name":"DevUnltd/js-library-boilerplate","owner":"DevUnltd","description":"Javascript Starter Boilerplate - Webpack 4, Babel 7, UMD, Hot Reloading, and more","archived":false,"fork":false,"pushed_at":"2025-03-24T08:53:30.000Z","size":50417,"stargazers_count":234,"open_issues_count":1,"forks_count":28,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T21:02:53.676Z","etag":null,"topics":["babel","babel7","boilerplate","javascript","javascript-library","library-boilerplate","starter-kit","webpack","webpack4"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@hodgef/js-library-boilerplate","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/DevUnltd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"custom":"https://hge.to/thanks"}},"created_at":"2018-11-08T23:16:49.000Z","updated_at":"2025-03-21T08:22:48.000Z","dependencies_parsed_at":"2024-03-07T11:27:09.589Z","dependency_job_id":"80508e0b-d57f-47b9-afec-e297827ea5d2","html_url":"https://github.com/DevUnltd/js-library-boilerplate","commit_stats":{"total_commits":3539,"total_committers":7,"mean_commits":"505.57142857142856","dds":"0.42215315060751624","last_synced_commit":"28f1716b9174501d0f5349002114f4d8dc39aae8"},"previous_names":["hodgef/js-library-boilerplate"],"tags_count":2,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevUnltd%2Fjs-library-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevUnltd%2Fjs-library-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevUnltd%2Fjs-library-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevUnltd%2Fjs-library-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevUnltd","download_url":"https://codeload.github.com/DevUnltd/js-library-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675597,"owners_count":20977376,"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","babel7","boilerplate","javascript","javascript-library","library-boilerplate","starter-kit","webpack","webpack4"],"created_at":"2024-11-08T20:10:10.870Z","updated_at":"2025-04-07T15:05:22.281Z","avatar_url":"https://github.com/DevUnltd.png","language":"JavaScript","funding_links":["https://hge.to/thanks"],"categories":[],"sub_categories":[],"readme":" \u003cdiv align=\"center\"\u003e\n \u003cimg align=\"center\" width=\"230\" src=\"https://i.imgur.com/62VsVXD.png\" /\u003e\n  \u003ch2\u003eJavascript Library Boilerplate\u003c/h2\u003e\n  \u003cblockquote\u003eLibrary Starter Kit for your Javascript projects\u003c/blockquote\u003e\n \n  \u003ca href=\"https://www.npmjs.com/package/@hodgef/js-library-boilerplate\"\u003e\u003cimg src=\"https://badgen.net/npm/v/@hodgef/js-library-boilerplate?color=blue\" alt=\"npm version\"\u003e\u003c/a\u003e \u003ca href=\"https://github.com/hodgef/js-library-boilerplate\"\u003e\u003cimg src=\"https://img.shields.io/github/last-commit/hodgef/js-library-boilerplate\" alt=\"latest commit\"\u003e\u003c/a\u003e \u003ca href=\"https://github.com/hodgef/js-library-boilerplate/actions\"\u003e\u003cimg alt=\"Build Status\" src=\"https://github.com/hodgef/js-library-boilerplate/workflows/Build/badge.svg?color=green\" /\u003e\u003c/a\u003e \u003ca href=\"https://github.com/hodgef/js-library-boilerplate/actions\"\u003e \u003cimg alt=\"Publish Status\" src=\"https://github.com/hodgef/js-library-boilerplate/workflows/Publish/badge.svg?color=green\" /\u003e\u003c/a\u003e\n\n\u003cstrong\u003eThis is a more robust library boilerplate. For a minimal alternative, check out [js-library-boilerplate-basic](https://github.com/hodgef/js-library-boilerplate-basic).\u003c/strong\u003e\n\n\u003c/div\u003e\n\n## ⭐️ Features\n\n- Webpack 5\n- Babel 7\n- Hot Reloading (`npm start`)\n- CSS Autoprefixer\n- SASS/SCSS support\n- UMD exports, so your library works everywhere.\n- Based on [CRA v5.0.0](https://github.com/facebook/create-react-app/releases/tag/v5.0.0) (For Vanilla JS libs or React libs)\n- Jest unit testing\n- `npm run demo` To build a ready-for-deployment demo [(Example)](https://github.com/hodgef/js-library-boilerplate/tree/master/demo)\n- Customizable file headers for your build [(Example 1)](https://github.com/hodgef/js-library-boilerplate/blob/master/build/index.js) [(Example2)](https://github.com/hodgef/js-library-boilerplate/blob/master/build/index.css)\n- Configurable `postinstall` message [(Example)](https://github.com/hodgef/js-library-boilerplate/blob/master/bin/postinstall)\n- Daily [dependabot](https://dependabot.com) dependency updates\n\n## 📦 Getting Started\n\n```\ngit clone https://github.com/hodgef/js-library-boilerplate.git myLibrary\nnpm install\n```\n\n## 💎 Customization\n\n\u003e Before shipping, make sure to:\n\n1. Edit `LICENSE` file\n2. Edit `package.json` information (These will be used to generate the headers for your built files)\n3. Edit `library: \"MyLibrary\"` with your library's export name in `./config/webpack.config.js`\n4. Edit `./bin/postinstall` (If you would like to display a message on package install)\n\n## 🚀 Deployment\n\n1. `npm publish`\n2. Your users can include your library as usual\n\n### npm\n\n```\nimport MyLibrary from 'my-library';\nimport 'my-library/build/index.css' // If you import a css file in your library\n\nlet libraryInstance = new MyLibrary();\n...\n```\n\n### self-host/cdn\n\n```\n\u003clink href=\"build/index.css\" rel=\"stylesheet\"\u003e\n\u003cscript src=\"build/index.js\"\u003e\u003c/script\u003e\n\nlet MyLibrary = window.MyLibrary.default;\nlet libraryInstance = new MyLibrary();\n...\n```\n\n## ✅ Libraries built with this boilerplate\n\n\u003e Made a library using this starter kit? Share it here by [submitting a pull request](https://github.com/hodgef/js-library-boilerplate/pulls)!\n\n- [hovercard](https://github.com/AnandChowdhary/hovercard) - Wikipedia summary cards for the web\n- [perfect-immutable](https://github.com/Lukasz-pluszczewski/perfect-immutable) - Library to provide immutable methods\n- [react-simple-keyboard](https://github.com/hodgef/react-simple-keyboard) - React Virtual Keyboard\n- [redux-better-promise](https://github.com/Lukasz-pluszczewski/redux-better-promise) - Simple and powerful redux middleware\n- [redux-breeze](https://github.com/Lukasz-pluszczewski/reduxBreeze) - Powerful redux wrapper\n- [regex-colorizer](https://github.com/geongeorge/regex-colorizer) - Highlighter for Javascript regex syntax\n- [simple-keyboard](https://github.com/hodgef/simple-keyboard) - Javascript Virtual Keyboard\n- [simple-keyboard-layouts](https://github.com/hodgef/simple-keyboard-layouts) - Layout kit for simple-keyboard\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevunltd%2Fjs-library-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevunltd%2Fjs-library-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevunltd%2Fjs-library-boilerplate/lists"}