https://github.com/jorgeatgu/base-rollup
🚀 Starter kit: rollup + d3 + postcss
https://github.com/jorgeatgu/base-rollup
bash d3 javascript postcss rollup script starter-kit
Last synced: 6 months ago
JSON representation
🚀 Starter kit: rollup + d3 + postcss
- Host: GitHub
- URL: https://github.com/jorgeatgu/base-rollup
- Owner: jorgeatgu
- License: mit
- Created: 2020-02-18T19:49:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-23T23:19:00.000Z (almost 2 years ago)
- Last Synced: 2025-03-27T03:05:09.684Z (about 1 year ago)
- Topics: bash, d3, javascript, postcss, rollup, script, starter-kit
- Language: JavaScript
- Homepage:
- Size: 146 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Base Rollup
A small starter kit to create data projects or static web projects from scratch.
At first, the script allows you to choose between a static or data project. The difference is that the data project has built-in d3, nothing more. Then select the name of your project folder, and you will have little scaffolding ready to work.
The starter kit is ready to work with a reduced version of d3 based on importing only the [necessary modules](https://github.com/jorgeatgu/base-rollup-d3/blob/master/src/js/d3.js).
## How to use
Download the script, and simply run it
```
bash init.sh
```
## DEMO
[](https://asciinema.org/a/306571)
## Getting Started
```
yarn install
```
```
yarn serve
```
## Plugins
**Linters**: eslint[ JavaScript ] & Stylelint[ CSS ]
**Minifiy**: teser[ JavaScript ] & CSSnano[ CSS ]
**Server**: Browsersync
**Lint-staged**: lint CSS files with Stylelint and JS files with Eslint before push to repository
## Script to init
The script create a structure like this:
```
├─ src/
│ ├─ css/
│ ├─ img/
│ └─ js/
│
├─ css/
├─ js/
├─ img/
├─ .gitignore
├─ .eslintrc
├─ .stylelintrc
├─ .prettierrc.json
├─ index.html
├─ rollup.config.js
└─ package.json
```
## License
[MIT](LICENSE) © Jorge Aznar