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

v0.8.6

Published

Scaffold out a Craft website

Downloads

129

Readme

Generator Craftsman

A Yeoman generator for scaffolding a Craft website with Gulp, Bower, Sass, Babel, inuit.css, and more.

Features

  • Create a fresh installation of craft
  • Generate a Vagrantfile and Puppet provisioning scripts
  • Deploy to a Dokku-powered hosting environment
  • Copy databases to and from from Dokku hosts
  • Automatically compile Sass with Autoprefixing
  • Automatically lint your Javascript
  • Image optimization (png, jpg, gif)
  • Optionally include inuit.css and jQuery

Installation

npm install -g generator-craftsman

Requirements

  • For using the provided development environment, VirtualBox, Vagrant, and the Vagrant Host Manager plugin must be installed.
  • Yeoman, Bower, and gulp.js should be installed globally via npm: npm i -g yo bower gulp

Project Setup

  • Create a new directory with mkdir my-craft-project
  • Change to the project directory with cd my-craft-project
  • Run yo craftsman and follow the prompts

Development

  • Run gulp build to build to /public
  • Run gulp watch to watch for changes and live-reload via BrowserSync

Deployment

Hint: Use the --env flag to specify an environment listend in env.json, e.g., gulp deploy --env production.

  • Use gulp deploy-init to initalise a deployment environment
  • Run gulp deploy after committing changes to deploy them
  • Use gulp db-push and gulp db-pull to copy databases to and from an environment

Available Commands

Deployment

  • gulp deploy-init

    Initialize a Dokku container for use in the project's deployment.

    1. Adds a git remote corresponding with the Dokku server.
    2. Pushes the repository to the Dokku remote.
    3. Defines a Buildpack for Dokku to use in the project's deployment.
    4. Sets up and links a new MariaDB container.

    You should follow this command with gulp db-push.

  • gulp deploy

    Pushes the repository to the Dokku remote.

  • gulp db-push

    Dumps the local database to /.tmp, and imports it to the linked Dokku MariaDB container.

  • gulp db-pull

    Dumps the remote Dokku MariaDB database to /.tmp, and imports it to the local environment.

  • gulp db-backup

    Dumps the local and remote databases, and saves them to /databases.

Development

  • gulp watch

    Watches the project for changes in images, styles, javascript, HTML, etc. and performs appropriate actions.

  • gulp build

    Build the project for deployment. Performs all tasks including minification and image optimization.

Miscellaneous

  • bower install

    Install project-specific Bower packages defined in bower.json. You should run this command when cloning an already initialized repository.

  • npm install

    Install project-specific npm packages defined in the package.json. You should run this command when cloning an already initialized repository.

Known Issues

  • Rerunning gulp deploy-init will fail, since a Dokku remote has already been created. Running git remote remove dokku will resolve this.
  • gulp deploy will sometimes fail if a newer commit has been deployed but not pushed to the repository. You can override this by running git push origin dokku --force.