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

tamia-grunt

v0.5.1

Published

Tâmia workflow for Grunt.

Downloads

4

Readme

Tâmia Grunt

Build Status

Tâmia workflow for Grunt.

Installation

npm install --save-dev tamia-grunt

Notes

The tamia-grunt will check all required Grunt plugins and ask you to install missed ones. It also will load all installed Grunt plugins via load-grunt-tasks.

Example

module.exports = function(grunt) {
	'use strict';

	require('tamia-grunt')(grunt, {
		tamia: {
			author: 'Artem Sapegin, http://sapegin.me'
		},
		concat: {
			main: {
				nonull: true,
				src: [
					'<%= bower_concat.main.dest %>',
					'<%= modernizr.main.outputFile %>',
					'tamia/vendor/*.js',
					'tamia/tamia/tamia.js',
					'tamia/tamia/component.js',
					'tamia/modules/form/script.js',
					'js/components/*.js',
					'js/main.js'
				],
				dest: 'build/scripts.js'
			}
		},
		// All other Grunt plugins
	});

	grunt.registerTask('default', ['styles', 'scripts', 'images']);
};

Config:

tamia: {
	author: 'Artem Sapegin, http://sapegin.me',  // Required
	src: '',  // Optional
	dest: '',  // Optional
	tamiaSrc: '',  // Optional
	modernizr: false,  // Optional: disable Modernizr
	stylobuild: {}  // Optional: Stylobuild options
}

Modules

Styles

Put your Stylus files into styles folder. styles/index.styl should exists. Then run grunt styles.

Config:

tamia: {
	stylesSrc: '',  // Optional
	stylesDest: ''  // Optional: destination folder
	stylesDestFile: ''  // Optional: destination file
	stylobuild: {}  // Stylobuild config, optional
}

Includes:

Scripts

There are three types of scripts:

  • Regular scripts: js/**/*.js. js/main.js should exists. Add concat section to your Gruntfile as in an example above.
  • Inlines: js/inlines/*.js. They will be uglifyed and put into build/inlines folder.
  • Bower components. They will be concatenated and into build/_bower.js.

Don’t forget to add .jshintrc to enable JSHint.

Run grunt scripts.

Config:

tamia: {
	scriptsSrc: '',  // Optional
	scriptsDest: '',  // Optional
	scripts: false,  // Override auto detection of regular scripts, optional
	inlines: true,  // Override auto detection uglifying inline scripts, optional
	bower: false  // Override auto detection for Bower concatenation, optional
}

Includes:

Images

Put your images into images_src folder. Then run grunt images.

Config:

tamia: {
	imagesSrc: '',  // Optional
	imagesDest: '',  // Optional
	pngquant: false  // Disable pngquant
}

Includes:

Modernizr

Custom Modernizr build. Will run automatically for either styles or scripts tasks.

Includes:

Doctor

Checks project configuration: required dependencies (more later). Run grunt doctor.

Changelog

The changelog can be found in the Changelog.md file.

Author


License

The MIT License, see the included License.md file.