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

v2.1.0

Published

A Yeoman Generator for Mortar JS projects

Downloads

8

Readme

Yeoman Generator for Mortar.js Projects Slack Status

Mortar.js is an open source framework built with React that makes interacting and updating data quick, easy, and powerful. It can best be described as an Admin User Interface that allows developers to quickly and safely build sites to interface with an API without accessing the database directly.

This generator makes it extremely easy to begin a React & Mortar project by taking care of the directory structure, installing dependencies, and the build process. The end result will allow you to build using React, JSX, ES6, and — of course — Mortar.

Prerequisites

  • Yeoman and Gulp through npm install -g yo gulp

Installation

  1. Run npm install -g generator-mortar to install the generator.
  2. Run yo mortar to start the generator.
  3. Follow the command line prompts. You will have the option to include authentication if your application & API requires it.
  4. Grab a cup of :coffee: and relax while the generators churns.
  5. Scaffolding is done! Start the development server with npm run open !

Development

  1. Clone this repository.
  2. Run npm install to install generator dev dependencies.
  3. Use npm link to install the mortar yeoman generator locally for testing.
  4. Test suite is managed by gulp and executed with npm test.

Mortar Project Directory Structure

The end result of this yeoman generator will produce the following project structure:

  • node_modules Installed third party packages including Mortar.js.
  • src
    • components
      • app.js
    • config
      • config.js
    • styles
      • external
    • assets.js
    • main.js Required entry point for Webpack
    • index.html
    • routes.js
  • .gitignore Git ignore rules for Mortar.js projects.
  • .eslintrc Custom javascript hinting rules applied using ESLint.
  • package.json List of npm dependencies and commands to build / compile your application.
  • README.md
  • webpack.config.js Webpack bundler process to build and unify all javascript, css, sass, image, and font dependencies.