npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-scaffold

v2.3.43

Published

Generator to automate the most common tasks in day-to-day of a Front End project

Downloads

80

Readme

NPM version NPM downloads License Tyoe Dependency Status Build Status

Scaffold

Yeoman + Grunt + Bower

Introduction

Scaffold is a generator to automate the most common tasks in day-to-day of a Front End project. He uses some tools like Yeoman, Grunt e Bower. This generator is all-in-one and have six versions: Mobile, Web, Responsive, Single Page, Single Page Mobile and Single Page Responsive. So you don't need to download each version to scaffolding your project. Just select which version is perfect for you and let the generator do all the stuff.

Features

  • Built-in preview server with cross device Browser Sync
  • HTML Templating
  • CSS Autoprefixing
  • Automatically compile LESS
  • Automatically lint javascript
  • Automatically wire up your Bower components
  • Image Optimization
  • Leaner Modernizr builds
  • Minify HTML, XML, CSS and JS
  • Configure a new git repository (optional)
  • Increase the project version (optional)
  • Include AngularJS
  • And more...

Getting Started

*If you are new to Yeoman, you will find a lot of answers to your questions in their getting started guide.

  • Install: npm install -g generator-scaffold
  • To init your project: yo scaffold and follow all the steps on the screen.
  • To start the server and develop your app: yo scaffold:run
  • To build your project: yo scaffold:build
  • To view the build in browser: yo scaffold:run build

Scaffold

Install dependencies from a existent project

If a previous project was built using Scaffold you will need to install all dependencies locally to run. For this you just need to execute yo scaffold:install and the generator will install all NPM packages and all Bower dependencies.

Automate the creation of pages

The Scaffold has a sub generator to help you to create files more quickly.
Just execute yo scaffold:create and follow the steps to generate a new blank page, with a new .less and .js (optional). Only works with non single page projects.

Grunt tasks

This generator make use of various tools to improve your web development workflow when using Grunt:

Folder structure

The Scaffold uses some default folders to work. These folders follow a pattern and cannot be renamed.

Folder Structure

  • dev: All development files without any compression, including HTML templates, images, LESS files and JS.

  • staging: All stage files. Everytime that you start the server, the Scaffold generator will generate all needed files for view in browser. That is the version of your project without any optimization. The code you see on the browser is exactly the same inside this folder. Is important that you do not delete this because bower put all dependencies inside this folder.

  • build: Every build that you do the generator put all files on this folder. These files were highly optimized using several Grunt tasks and are ready to be published on your web server.

  • grunt: The core of Scaffold. All tasks and options used for Grunt. Is highly recommended that you do not modify this files.

License

MIT