Skip to content

iketari/grunt-jam-publish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-jam-publisher

Task for publishing jam packages

Getting Started

This plugin requires Grunt.

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-jam-publisher --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-jam-publisher');

The "jam_publisher" task

Overview

In your project's Gruntfile, add a section named jam_publisher to the data object passed into grunt.initConfig().

grunt.initConfig({
  jam_publisher: {
    options: {
        repo: 'URL string', // URL with auth data to NPM like repo for JAM packages,
        level: 'error', // log level,
        cfg: require('./package.json'), // package.json of your project
        remote: 'origin' // name of a remote which used for finding tags with version names
    }
  },
})

Options

options.repo

Type: String Default value: undefined

A string value that explain how and where exactly you want to publish your stuff. Format: 'http://<username>:<password>@host:PORT/resource'

options.level

Type: String Default value: null

A string value that explain which log level do you need

options.cfg

Type: Object Default value: undefined

Parsed package.json file of your package. For each publish jam-publisher try to find in remote tag with the name the same of as that specified in current version

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

0.2.2 Check tags exists before each publish

0.1.0 First working release

License

Copyright (c) 2015 Artsiom Mezin. Licensed under the MIT license.

About

Grunt task for publishing jam packages

Resources

Stars

Watchers

Forks

Packages

No packages published