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-egg

v0.2.6

Published

Yeoman generator

Downloads

25

Readme

generator-egg

A yeoman generator for egg, a front-end starter kit for Echo & Co.

Very much in development.

Please feel free to take on any of these things below - or add new stuff.

to do

  • Javascript Need to figure out boilerplate js code for integrating new custom bits of js. Also need to consider integrating prototype and a global theme class. Need to connect with @wpatt about this.
    • All custom js will then need to be refactored. Make sure partials can call from eachother (cover/offcanvas/modal all need to work together)
    • a egg:newjs sub generator will then need to be created
  • Moar Usage. I generally need to just use everything more and make more sites. Specifically need to pay attention to:
    • Layout and grid mixins. I think this could be better.
    • Chosen and select element integration. This seems buggy.
    • mobile menus and hamburger icon integration. Seems buggy.
    • Text styles. Always a bit of a pain - consider ways to use yeoman to speed up.
    • Post feilds (filtering interface, subtitle, author, etc.). Consider using yeoman to add.
    • Sass partial folders and Pattern library groupings. Consider renaming these, or bringing them inline with eachother as much as possible.

Phase 2 Considerations

  • Offical Style Guide. It might be a good idea to have a tab in the pattern library for typical style guide type things. Client logo, main typography, colors, etc. Not necessarily web elements or classes, but a general overview of what the look and feel of the organization is. Coule be client facing.
  • Performance Metrics. Currently there is a 'grunt stats' task that will output some stats on the compiled css. I'd love for there to be more stuff here. JS stats, Performance stats, etc. Something that we can use to develop benchmarks. We need to figure out those benchmarks first though - not sure how best to integrate all of this. Seems like a Phase 2 type of thing.
  • Linting.
    • Scss linting. The only grunt plugin for scss-lint requires a ruby dependency - which we don't want.
    • CSS linting. I would love to lint the compiled css to make sure everything is getting outputted properly - but the CSSLint task throws errors on more complicated and modern css properties - rendering it useless (for now at least). Worth checking up on at a future date and integrating back in.
    • JS linting. We currently have jslint integration, but I don't quite understand it. It seems way overly strict. Would like to devote some time to getting this how we need it.
  • Stress testing. It would be great if there was a way to deliver different amounts of content to elements to test how things would look with varrying lengths/types of text of images. Not sure how that would work, but it would be a good feature.

Stuff on hold

  • Critical CSS. This requires scanning a compiled HTML document. Really only possible if doing a simple static site - otherwise this should be a discussion with the backend dev.
  • Uncss. Similar to Critical CSS in that it requires scanning HTML. Discuss with backend dev as necessary.
  • takana. Takana requires v0.12 of node to work properlly. I would love to figure out how to use the most recent version of node (v4) and still have Takana work. This is a Takana issue and not an Egg one ... figured I'd mention it here though.

Contributing

Setup

  • Clone this repo.

  • From the directory root, install dependencies, link to node.

cd path/to/generator-egg
npm install
npm link

Running

  • Start a new terminal session

  • Run the generator by name

yo egg

  • Follow the prompts