Skip to content

Commit

Permalink
Beta.1 release zip
Browse files Browse the repository at this point in the history
+ grunt task to create it.
  • Loading branch information
mmarcon committed Oct 10, 2015
1 parent f629ee3 commit bd1c788
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
17 changes: 15 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

var path = require('path');
var path = require('path'),
version = require('./package.json').version;

module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
Expand Down Expand Up @@ -139,10 +140,22 @@ module.exports = function(grunt) {
layout: 'docs/markdown-template.hbs'
}
}
},
// make a zipfile
compress: {
main: {
options: {
archive: 'dist/jhere.zip',
pretty: true
},
files: [
{expand: true, cwd: './dist/', src: ['*.js'], dest: 'jhere-' + version, filter: 'isFile'}
]
}
}
});

grunt.registerTask('default', 'Creates distribution', ['jshint', 'webpack:dist', 'uglify:jhere']);
grunt.registerTask('default', 'Creates distribution', ['jshint', 'webpack:dist', 'uglify:jhere', 'compress']);
grunt.registerTask('dev', 'Creates distribution', ['jshint', 'webpack:dev']);
grunt.registerTask('docs', 'Generates documentation', ['doxdox']);
};
Binary file added dist/jhere.zip
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jHERE",
"version": "1.0.0",
"version": "1.0.0-beta.1",
"description": "Maps made easy.",
"main": "index.js",
"directories": {
Expand All @@ -26,6 +26,7 @@
"babel-loader": "^5.3.2",
"grunt": "^0.4.5",
"grunt-babel": "^5.0.1",
"grunt-contrib-compress": "^0.13.0",
"grunt-contrib-jshint": "^0.11.2",
"grunt-contrib-uglify": "^0.9.1",
"grunt-doxdox": "mmarcon/grunt-doxdox",
Expand Down

0 comments on commit bd1c788

Please sign in to comment.