Task for publishing jam packages
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');
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
}
},
})
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'
Type: String
Default value: null
A string value that explain which log level do you need
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
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.
0.2.2 Check tags exists before each publish
0.1.0 First working release
Copyright (c) 2015 Artsiom Mezin. Licensed under the MIT license.