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

v5.0.0

Published

My (MaxiJonson) personnal and highly opinionated generator. I use this to kickstart personnal projects. Might not be suitable for everyone!

Downloads

8

Readme

generator-maxijonson

My personnal yeoman generator(s) for creating all kind of projects that tend to have a similar structure.

🤚 DO NOT USE 🛑

This generator is not meant to be used by anyone but me. It is only used for my "solo" personnal projects. You are welcome to use it of course (since it's public!), but this has one goal: suit my needs. These generators are highly opinionated and might not fit your development needs. The first opinionated thing you'll notice is the fact that not only do all generators generate TypeScript projects, but the generators themselves are also all written in TypeScript. Safety starts at the very beginning!

Some of the language used below might sound like I'm talking to you, but I'm actually talking to myself (my future self!) 🙃.

Installation

# 1. Install yeoman, if you haven't already
npm install -g yo

# 2. Install this generator
npm install -g generator-maxijonson

Generators

App (default)

Creates a basic TypeScript + Node application. This generator creates a project folder, so no need to create it manually. If you want to use the current folder, just use "." as project-name.

This is a dead simple setup. It should be used when writing a small app to accomplish a small task rapidly. It's like a scratchpad! Use it when you have an idea that pops in your mind, a small problem to solve or just need a rough draft and not sure how to go about it.

Usage

yo maxijonson [project-name]

CLI

Scaffolds the structure for an app intended to work as a CLI (with NPM).

Usage

Note: includes the same options as App

yo maxijonson:cli [project-name]

React

⚠ This generator still requires some field testing and might not be complete ⚠

Creates a React app using a UI library chosen by the user.

Currently, the generator supports the following UI libraries:

Usage

Note: includes the same options as App

yo maxijonson:react [project-name] [--framework=<framework-name>]

Testing

To test your generator, you can follow these steps:

# 1. Run `npm test`. This will take care of building, preparing the test folder and `npm link` the generator locally.
npm test

# 2. Go to the "test" folder
cd test

# 3. Run your generator
yo maxijonson[:generator-name] [...args]

# 4. Go to your new project folder
cd <project-folder>

# 5. Test your generated files!
npm start

For convenience, I usually have 3 terminals open, one for running npm test, one for running the generator and one for running the generated project.

Another faster way of testing your generator is by using these commands:

# 1. Go to the "test" folder
cd test

# 2. Build and run the generator
npm test && yo maxijonson[:generator-name] [...args]

# No dependencies
npm test && yo maxijonson[:generator-name] [...args] --skip-install