Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generator-francis-craft

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-francis-craft

Scaffold out a Craft website

  • 0.7.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

generator-francis-craft

Francis Bond's Yeoman generator for scaffolding a Craft website with Gulp, Bower, Sass, inuit.css, Modernizr, and jQuery.

Features

  • Set up a fresh copy of Craft
  • Generate a Vagrantfile with provisioning via Puppet
  • Deploy to a Dokku-powered server
  • Copy databases between local and remote environments
  • Automatically compile Sass with Autoprefixing
  • Automatically lint your Javascript
  • Image optimization (png, jpg, gif)
  • Optionally include inuit.css and jQuery

Initialization

  • Install: npm install -g francisbond/generator-francis-craft
  • Run: yo francis-craft
  • Run gulp build for building and gulp watch for preview
  • 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 push and pull databases between local and remote environments

Requirements

  • For using the provided development environment, VirtualBox, Vagrant, and the Vagrant Host Manager plugin must be installed.
  • The generator requires Ruby and Sass to be installed, and inuit.css requires at least Sass 3.3. Using the newest version available is recommended: gem install sass.
  • Yeoman, Bower, and gulp.js should be installed globally via npm.

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

    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. Skips some non-critical resource-intensive processes (e.g. image optimization).

  • 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.

  • bundle install

    Install sass and sass-globbing which are required by the build system.

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.

Keywords

FAQs

Package last updated on 08 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc