{"id":16677882,"url":"https://github.com/yamafaktory/buble-react-rollup-starter","last_synced_at":"2025-03-17T00:32:21.283Z","repository":{"id":57190837,"uuid":"58934069","full_name":"yamafaktory/buble-react-rollup-starter","owner":"yamafaktory","description":"A simple starter project to build cool React applications with Bublé and Rollup.","archived":false,"fork":false,"pushed_at":"2020-05-06T06:11:24.000Z","size":240,"stargazers_count":73,"open_issues_count":3,"forks_count":7,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-04-26T20:06:54.264Z","etag":null,"topics":["boilerplate","buble","react","rollup"],"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/yamafaktory.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}},"created_at":"2016-05-16T13:22:39.000Z","updated_at":"2021-12-06T05:21:12.000Z","dependencies_parsed_at":"2022-09-15T15:42:12.943Z","dependency_job_id":null,"html_url":"https://github.com/yamafaktory/buble-react-rollup-starter","commit_stats":null,"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yamafaktory%2Fbuble-react-rollup-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yamafaktory%2Fbuble-react-rollup-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yamafaktory%2Fbuble-react-rollup-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yamafaktory%2Fbuble-react-rollup-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yamafaktory","download_url":"https://codeload.github.com/yamafaktory/buble-react-rollup-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221669335,"owners_count":16860855,"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":["boilerplate","buble","react","rollup"],"created_at":"2024-10-12T13:27:48.484Z","updated_at":"2024-10-27T11:35:23.628Z","avatar_url":"https://github.com/yamafaktory.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# buble-react-rollup-starter [![Build Status](https://travis-ci.org/yamafaktory/buble-react-rollup-starter.svg?branch=master)](https://travis-ci.org/yamafaktory/buble-react-rollup-starter) [![npm version](https://img.shields.io/npm/v/buble-react-rollup-starter.svg?style=flat)](https://www.npmjs.com/package/buble-react-rollup-starter) [![Standard - JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)\n\n\u003e A simple boilerplate for web apps with [React](https://facebook.github.io/react/), [Bublé](https://buble.surge.sh/guide/) and [Rollup](http://rollupjs.org/).\n\nThe aim of this project is to provide a simple boilerplate to get started with React bundled as an ES2015 module via Rollup, compiled by Bublé.\n\nTo sum up and give an overview of what can be achieved like a breath of fresh air:\n\n```JavaScript\n// Import React, ReactDOM and the DummyComponent.\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport { DummyComponent } from './components/dummy-component.jsx'\n\n// Define the root element.\nconst root = document.querySelector('main')\n\n// Append the DummyComponent instance to the root element.\nReactDOM.render(\u003cDummyComponent /\u003e, root)\n```\n\nRollup will magically includes only what you need in your bundle depending on the imports!\n\n## Prerequisite\n\n### NodeJS\n\nThe easiest way to go is to use [nvm](https://github.com/creationix/nvm) and to install one of the recent NodeJS versions bundled with npm 3 by default (i.e. *NodeJS \u003e= 5.0.0*).\n\n## Installation\n\nVia **npm** into a fresh project:\n\n```sh\nnpm i buble-react-rollup-starter\n```\n\nOr using Git:\n\n```sh\ngit clone https://github.com/yamafaktory/buble-react-rollup-starter.git\ncd buble-react-rollup-starter\nnpm i\n```\n\nFor a faster installation, use [yarn](https://yarnpkg.com/en/) instead of npm.\n\n## Usage\n\n### Development\n\nA basic workflow involving [Browsersync](https://www.browsersync.io/) is already implemented. Running the following command will open your default browser pointing to the `html/index-dev.html` file. Any modification of one of the files included in the *src* directory will trigger a new development build and refresh your browser:\n\n```bash\nnpm start\n```\n\nYou can also generate a development build by running the following command:\n\n```bash\nnpm run build:dev\n```\n\n### Production\n\nFirst run the following command:\n\n```bash\nnpm run build\n```\n\nThen open the `html/index.html` file in your browser.\n\nThe Rollup production configuration file switch the NodeJS environment to production and minifies the code with [UglifyJS](http://lisperator.net/uglifyjs/).\n\n## Linting\n\nThe code quality is checked by the [JavaScript Standard Style](http://standardjs.com/).\n\n## License\n\nReleased under the [MIT license](https://opensource.org/licenses/MIT) by Davy Duperron.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyamafaktory%2Fbuble-react-rollup-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyamafaktory%2Fbuble-react-rollup-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyamafaktory%2Fbuble-react-rollup-starter/lists"}