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-drupal-module-theme

v0.1.2

Published

Drupal Custom module and Custom theme skeleton with basic code for webapp development Integrated with JSHint, sprite image, minification and concatenation and Grunt.

Downloads

3

Readme

Drupal YEOMAN

generator-drupal-module-theme

Drupal Custom Module and Custom Theme Generator integrated with options of grunt optimization tasks(jshint, minification, concatenation, sprite-image creation)

Fast and easy way to setup a module scaffolding with the most important files and functions you need to start developing.

Installation

First, Install Yeoman and this generator using npm(prequisites: nodejs should be pre-installed):

npm install -g yo
npm install -g generator-drupal-module-theme

#Note: To download external libraries install bower globally while setting up the project, Please run below command -

npm install -g bower

And then go to your sites/all path of your site folder and run -

yo drupal-module-theme

And answer the below questions to get started -

  • Would you like to add Custom Theme?
  • Which Drupal version? Drupal 7
  • Name your Child theme:
  • Describe your Child theme:
  • Would you like to add Custom Module?
  • what is your module Name?
  • Describe your custom module:
  • Would you like to add install file?
  • Would you like to add some hooks? hook_permission, hook_menu, hook_theme, hook_block_[info|view|configure]

Optionally, To optimize your project using grunt after changes - Run below command from your sites/all/ folder where gruntfile.js is present

grunt serve

A "Dist" folder will be created with all the optimized files

Generated file structure: |-src |- Modules |- Contrib |- Custom |- Modulefolder |- modulename.info |- modulename.install |- modulename.module |- CSS Folder -> CSS File |- JS Folder -> JS File |- Folders like images and templates |- Themes |- ThemeFolder |- themename.info |- template.php |- templates folder with all basic template files - block.tpl,node.tpl,html.tpl etc |- CSS Folder -> CSS File |- JS Folder -> JS File |- Images folder and dummy images like logo and screenshot. |- Libraries |- Third party libraries like Angular, jquery etc downloaded by bower

Additionally, grunt folder will be installed with all the tasks files to make any path changes in future, bower.json, gruntfile.js, package.json, (.jshintrc, .editorconfig to maintain coding standards)