Skip to content

β°πŸ“Œ Boilerplate with Parcel.js, Sass, Babel & Bootstrap

License

Notifications You must be signed in to change notification settings

abhijithvijayan/parcel-sass-bootstrap-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

parcel-sass-bootstrap-boilerplate

gulp Bootstrap node-sass jQuery livereload

SASS Β· Babel Β· Bootstrap Β· Parcel.JS Β· JQuery Β· Popper.JS

πŸ™‹β€β™‚οΈ Made by @abhijithvijayan

Donate: PayPal, Patreon

Buy Me a Coffee


logo

This Parcel-Sass-bootstrap starter contains the features and scripts you need to get started quickly with Parcel bundler.

It contains the following features:

  • ParcelJs
  • Babel ES6 Compiler
  • Bootstrap v4
  • JQuery v3.3.1
  • PopperJS
  • Concatenate and minify JavaScript.
  • Compile, minify, autoprefix SASS.
  • Hot-Reloading
  • Optimize and Cache Images

Getting Started

Dependencies

Make sure these are installed first.

Quick Start

  1. Clone the repo :

    git clone https://github.com/abhijithvijayan/parcel-sass-bootstrap-boilerplate.git

  2. In bash/terminal/command line, cd parcel-sass-bootstrap-boilerplate into project directory.

  3. Run npm install to install required files and dependencies.

  4. Launch the development environment with :

    npm run dev

Note: For Production, Use:

npm run build

This will build files and assets to dist/ directory.


Documentation

Workflow structure

src - > source directory

.
β”œβ”€β”€ src
β”‚   β”œβ”€β”€ assets
β”‚   β”‚   └── trollHuntersArcadia.png
β”‚   β”œβ”€β”€ sass
β”‚   β”‚   β”œβ”€β”€ _fonts.scss
β”‚   β”‚   β”œβ”€β”€ _reset.scss
β”‚   β”‚   β”œβ”€β”€ _variables.scss
β”‚   β”‚   └── main.scss
β”‚   β”œβ”€β”€ index.js
β”‚   └── index.html
.

Instructions

  • Add your HTML files by inserting or including them in the src directory (By default index.html is added to the directory, feel free to edit it with the changes seen live.)

    • For the new HTML file(s), link the index.js (in body tag) file in the HTML files as they are created.

      <head>
          :
          <link href="sass/main.scss" rel="stylesheet" />
      
      </head>
      <body>
          :
          <script src="index.js"></script>
      </body>
      
  • Add sass(SCSS) files to src/sass folder.

    • Make sure you import the scss file in main.scss
      @import "filename";
      
  • Add images to src/assets folder.

Licence

Code released under the MIT License