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

v1.0.3

Published

Enyo bootplate Yeoman generator

Downloads

8

Readme

generator-enyo

Yeoman generator

Getting Started

What is Yeoman?

Yeoman is a highly configurable command line scaffolding tool for modern webapps. It makes big tasks simpler and prettier, such as creating and modifying webapp templates.

Yeoman can be found on npm package repository. Using additional packages, known as Yeoman generators, Yeoman can create virtually any kind of appliaction, such as Enyo, Backbone, or even Chrome extensions.

Enyo bootplate generator

This Enyo generator is a quick simple way to make an Enyo bootplate project.

To install generator-enyo from npm, run:

npm install -g generator-enyo

As a plus, it will install Yeoman if you don't already have it. From there, creating a new projects is as simple as:

yo enyo MyApp

An enyo bootplate, of the current release, will be created into the directory MyApp. Options are included to specify a particular build version, change to a particular mode configuration (onyx, moonstone, sampler, etc.) and more! The full list of options can be see via yo enyo -h

All the bells and whistles

Beyond initial application creation, included are a number of subgenerators for post-creation usage, each with their own -h help messages outlining full options available.

  • yo enyo:lib is focused around adding and removing libraries, including remote ones on git repositories and bower packages
  • yo enyo:update will update Enyo and first-party Enyo libraries to the current stable release (or a specific release)
  • yo enyo:deploy deploys the bootplate project
  • yo enyo:webos adds the webOS specific components (appinfo.json primarily)

Cordova integration

Among the bootplate creation options is the --cordova flag, which creates a Cordova 3.x project with an Enyo bootplate within. Enyo bootplate is hooked up and setup to build on any supported platform via normal Cordova CLI operations. Two handy Cordova project hooks are also provided. Whenever the Cordova prepare or build actions are used, these hooks run.

  • enyo-deploy-hook.js - runs the minification deploy script in the bootplate, and updates the www directory symlink to point towards the deployed webapp directory. This allows the minified webapp to be used as the content copied over to each platform's local www directory.
  • enyo-deploy-cleanup-hook.js - restores the www symlink to the original bootplate root after the prepare or build operator is completed

These are completely hands-off hooks that automate the bootplate minification/deploy process inline with the standard cordova-cli operation flow.

To skip the deploy process, using the uncompressed files for each platform, include the --no-deploy flag. For example:

cordova build --no-deploy
Manual hook usage

While generator-enyo usage to make an Enyo bootplate Cordova project is preferred, given it automates the process, you can manually copy the hooks from this repository into any Cordova project for the same bootplate deploying effect.

  • common/hooks/enyo-deploy-hook.js to hooks/before_prepare/enyo-deploy-hook.js
  • common/hooks/enyo-deploy-cleanup-hook.js to hooks/after_prepare/enyo-deploy-cleanup-hook.js

If a bootplate is in the www directory, the hooks will run the deploy script. If a bootplate is in the project root, in a dedicated directory (for example "bootplate/"), and the www directory is empty or deleted, the hooks will detect this and setup the full smart deploying symlink technique mentioned above.

License

Apache 2.0