Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

better-base-template

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

better-base-template

An awesome base-template generator.

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by400%
Maintainers
1
Weekly downloads
 
Created
Source

Better Base Template

A base-template generator!

Features

  • Base template:
    • Generates preset margin or padding
    • Generates Bootsrap like column system
    • Generates media-breakpoints mixin
    • Generates color-scheme mixin
    • Generates text formatting: preset* font-size, font-weight...
    • Preset base element style - COMING SOON
How mixin generation works?
  • Task base-template is responsible for that.
  1. Read SCSS config file (_config.scss) with sass-extract.
  2. Parses necessary variables, converts them into mixin's name, attributes, content.
  3. Passes parsed data into function, which returns mixin string.
  4. Writes string returned from function in to file using fs package.
  5. Adds generated files to filter (so that gulp-scss-lint) will not check them.

Installing

  1. Install npm package.
npm install --save-dev better-base-template
  1. Require package and pass your configuration.
const baseTemplate = require('better-base-template');
let options = { /** pass your options here */ };
baseTemplate.init(options);
  1. Import generated styles in your SCSS
@import 'path/to/node_modules/better-base-template/src/base-template'; 

Keywords

FAQs

Package last updated on 10 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc