Skip to content

Commit

Permalink
Build: Add a release script
Browse files Browse the repository at this point in the history
  • Loading branch information
mgol committed Jan 31, 2018
1 parent 730f90c commit 75533de
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions build/release.js
@@ -0,0 +1,30 @@
"use strict";

module.exports = function( Release ) {
var
files = [
"dist/jquery.color.js",
"dist/jquery.color.min.js",
"dist/jquery.color.plus-names.js",
"dist/jquery.color.plus-names.min.js",
"dist/jquery.color.svg-names.js",
"dist/jquery.color.svg-names.min.js"
];

Release.define( {
npmPublish: true,
issueTracker: "github",
cdnPublish: "dist",

/**
* Generates any release artifacts that should be included in the release.
* The callback must be invoked with an array of files that should be
* committed before creating the tag.
* @param {Function} callback
*/
generateArtifacts: function( callback ) {
Release.exec( "grunt", "Grunt command failed" );
callback( files );
}
} );
};

0 comments on commit 75533de

Please sign in to comment.