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-fly-webapp

v1.1.0

Published

Scaffold out a front-end web app

Downloads

12

Readme

generator-fly-webapp

Yeoman generator which scaffolds out a front-end web app with gulp.

Build Status

Getting Started

Yeoman is THE WEB'S SCAFFOLDING TOOL FOR MODERN WEBAPPS.

Yeoman helps yo u to kickstart new projects, prescribing best practices and tools to help you stay productive.

To do so, we provide a generator ecosystem. A generator is basically a plugin that can be run with the yo command to scaffold complete projects or useful parts.

And generator-fly-webapp is a generator to help you to scaffold out a front-end web app.

Installation

To install generator-fly-webapp from npm, run:

npm install -g yo generator-fly-webapp

Then, initiate the generator:

yo fly-webapp [appName]

Finally, start the app:

# if dependencies were installed, ignore next line
npm install && bower install

gulp serve

You can visit http://0.0.0.0:7000/.

Features

    ✓ Powerful development server(BrowserSync for static files, Koa for API proxy and template rendering). Automatically restart server by nodemon.     ✓ Handlebars templating support. And every view file can use yaml head to specify layout, data file and other settings.     ✓ CSS preprocessor(sass), postprocessor(postcss) and sourcemap. Watch .sass file and automatically process it.     ✓ Lint scripts automatically(use eslint).     ✓ Automagically wire-up dependencies installed with Bower     ✓ The gulpfile is wrote in ES2015 features.

Koa Server

Koa is used to render handlebars templates and proxy API currently. But it's easy to enhance it and serve as a product server.

Handlebars

Handlebars is the default template. And some excited features are supported.

  1. Every view file can has a yaml head, just like github jekyll blog system. And inside head we can specify its own layout, data file and so on.
  2. The data file means data for template rendering. The plugin will load the data file with the same name of view file default.
  3. It's ok to set layout: false inside yaml head, and this will close layout and render template just like static html file.

ES2015

Besides gulpfile, the whole server side code is wrote in ES2015. Feel ease and embrace it.

Credits

  • koa-handlebars.es6.js rewrite based on koa-hbs. Because of yaml support, layout dynamic load and other features, rewrite koa-hbs instead of depend on it.
  • Borrowed base config and some gulp tasks from generator-gulp-webapp.

Thanks for their great work.

Release History

0.x is deprecated.

2015-10-26    v1.1.0    upgrade build task.

2015-10-21    v1.0.1    fix render data priority.

2015-10-21    v1.0.0    modify templating and rendering process; other changes.

2015-10-08    v0.3.0    add raw html demo; add gitignore config prompt.

2015-10-08    v0.2.0    serve raw html(no templating); config file change/enhance and others.

2015-09-23    v0.1.1    include normolize.css correctly; other small changes.

2015-09-22    v0.1.0    init

License

MIT