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.
How to use
Download the script, and simply run it
bash init.sh
DEMO
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 Β© Jorge Aznar