From e66ec3b7a3078f97a63d32c6cc32cd234adb66e3 Mon Sep 17 00:00:00 2001 From: Shahar Talmi Date: Thu, 2 Jan 2014 09:50:01 +0200 Subject: [PATCH] chore(bower): support publishing to bower added bower.json and grunt configuration so that we can 'grunt release' instead of editing, tagging and pushing manually. also renamed tree-control.js to conform with other angular modules convetions. --- Gruntfile.js | 17 ++++++++++++++++ tree-control.js => angular-tree-control.js | 0 bower.json | 12 +++++++++++ package.json | 23 ++++++++++++++++++++++ 4 files changed, 52 insertions(+) create mode 100644 Gruntfile.js rename tree-control.js => angular-tree-control.js (100%) create mode 100644 bower.json create mode 100644 package.json diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..097087d --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,17 @@ +module.exports = function(grunt) { + grunt.initConfig({ + release: { + options: { + file: 'bower.json', + npm: false, + github: { + repo: 'wix/angular-tree-control', + usernameVar: 'GITHUB_USERNAME', + passwordVar: 'GITHUB_PASSWORD' + } + } + } + }); + + grunt.loadNpmTasks('grunt-release'); +}; diff --git a/tree-control.js b/angular-tree-control.js similarity index 100% rename from tree-control.js rename to angular-tree-control.js diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..5d5dbac --- /dev/null +++ b/bower.json @@ -0,0 +1,12 @@ +{ + "name": "angular-tree-control", + "version": "0.1.0", + "main": "./angular-tree-control.js", + "ignore": [ + "Gruntfile.js", + "package.json" + ], + "dependencies": { + "angular": "~1.2.6" + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..99368b0 --- /dev/null +++ b/package.json @@ -0,0 +1,23 @@ +{ + "name": "angular-tree-control", + "version": "0.1.0", + "description": "Angular Tree Control", + "main": "angular-tree-control.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git://github.com/wix/angular-tree-control.git" + }, + "author": "", + "license": "ISC", + "bugs": { + "url": "https://github.com/wix/angular-tree-control/issues" + }, + "homepage": "https://github.com/wix/angular-tree-control", + "devDependencies": { + "grunt": "~0.4.2", + "grunt-release": "~0.6.0" + } +}