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-web-initium

v0.1.0

Published

A yeoman generator that will help you bootstrap your webapp with gulp.

Downloads

12

Readme

generator-web-initium

NPM info

Build Status dependencies Coverage Status

Web Initium is a yeoman generator that will help you bootstrap your webapp with gulp. Choose your favorite pre-processor, JS libraries etc... and let Web Initium do the rest.

There are of course lots of webapp scaffolding generators out there (for example the awesome generator-gulp-webapp. This repo, however, is made to make the build and develop process more personal, richer and efficient. In other words, the developer can choose from a broad variety of customizations and automated tasks, ready to make it big and rich! :)

Dependencies

Please make sure you have the following installed globally:

Features

  • SASS preprocessing
  • Create CSS sourcemaps
  • CSS Autoprefixer
  • BrowserSync (livereload, sync on other devices)
  • Twig Templating Engine
  • Image resizer (e.g. for generating favicons)
  • JSDoc generator
  • SASSdoc generator
  • Style Guide generator
  • JSHint
  • Create a build folder:
    • Bump a version number (also git tag)
    • Automatic image optimization
    • Concat and minify JS
    • Minifies HTML
    • Copies all necessary files

How to install

Make sure you have the dependencies described above installed:

NodeJS:

Go to nodejs.org and download & install NodeJS on your System.

Bower

Run npm install -g bower to install bower globally on your system

Yeoman

Run npm install -g yo to install yeoman globally on your system

Web Initium Generator

Run npm install -g generator-web-initium. Also, make sure GraphicsMagick or ImageMagick is installed on your system and properly set up in your PATH.

Ubuntu:

apt-get install imagemagick
apt-get install graphicsmagick

Mac OS X (using Homebrew):

brew install imagemagick
brew install graphicsmagick

Windows & others:

Confirm that GraphicsMagick or ImageMagick is properly set up by executing gm -version or convert -version in a terminal.

Configurations

In the generated gulpfile.js file, please adjust the global var config to your needs.

Start

Run yo web-initium and follow the steps. After successfully installed everything, run gulp serve (or alternatively npm start) to start the server with your generated webapp.

How to build

Run gulp build, this will create a dist folder with all the necessary files

How it works

All the dev files are situated in the src directory:

  • CSS If you are using a css pre-processor, use the corresponding folder (src/scss, src/less, src/styl). A css file will be generated in the css folder. Sourcemap files will also be generated in this folder. If you are NOT using a css pre-processor, then just use files in the src/css folder.
  • HTML HTML files are in the src/views folder. Since we are using twig as a template language, we have a src/views/layout.twig file, that can be used for all pages. All twig files in the src/views/pages folder should have the same name as the .json files. This way, content and markup are nicely separated.
  • Assets All images, fonts, icons and other non-script files should be put in the src/assets directory.
  • JavaScript Use the src/js folder. If you need to add scripts to your html files, please do so in between the <!-- build:js /js/bundle.js --> <!-- endbuild --> comments in the src/views/layout file, as this will make sure your script will be concatenated and minified together with all the other scripts.
  • Documentation The src/doc folder is where all the generated documentation will be. For JavaScript, we'll be using JSDoc, for SASS SassDoc.
  • Style Guide We'll be using SC5 Style Guide. The generated content will be written to ./styleguide. This will be automaticaly served on port 3002 (default) if you run gulp.

Todo's:

  • Support LESS and Stylus
  • Looking into gulp-load-plugins
  • Support for coffeescript & typescript
  • Add options for using sourcemaps, docs and stylesheet.
  • Generate favicons / apple icons
  • Improve tests
  • Documentation

License

generator-web-initium is distributed under the MIT License.