Skip to content
This repository was archived by the owner on Dec 16, 2019. It is now read-only.

Commit ff113b1

Browse files
committed
build control added
1 parent b74711c commit ff113b1

File tree

2 files changed

+41
-27
lines changed

2 files changed

+41
-27
lines changed

Gruntfile.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = function(grunt) {
2121
grunt.loadNpmTasks('grunt-contrib-uglify');
2222
grunt.loadNpmTasks('grunt-contrib-cssmin');
2323
grunt.loadNpmTasks('grunt-contrib-jshint');
24-
grunt.loadNpmTasks('grunt-karma');
24+
grunt.loadNpmTasks('grunt-build-control');
2525

2626
/**
2727
Function that wraps everything to allow dynamically setting/changing grunt options and config later by grunt task. This init function is called once immediately (for using the default grunt options, config, and setup) and then may be called again AFTER updating grunt (command line) options.
@@ -40,6 +40,20 @@ module.exports = function(grunt) {
4040
dest: []
4141
}
4242
},
43+
buildcontrol: {
44+
options: {
45+
dir: 'pages',
46+
commit: true,
47+
push: true,
48+
message: 'Built %sourceName% from commit %sourceCommit% on branch %sourceBranch%'
49+
},
50+
pages: {
51+
options: {
52+
remote: '[email protected]:dotansimha/angularjs-dropdown-multiselect.git',
53+
branch: 'gh-pages'
54+
}
55+
}
56+
},
4357
jshint: {
4458
options: {
4559
//force: true,

package.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
{
2-
"author": "",
3-
"name": "angularjs-dropdown-multiselect-demo",
4-
"version": "0.0.0",
5-
"description": "",
6-
"homepage": "",
7-
"dependencies": {
8-
},
9-
"devDependencies": {
10-
"express":"~3.4.4",
11-
"grunt": "~0.4.1",
12-
"grunt-contrib-concat": "~0.3.0",
13-
"grunt-contrib-less": "~0.8.1",
14-
"grunt-contrib-uglify": "~0.2.5",
15-
"grunt-contrib-cssmin": "~0.7.0",
16-
"grunt-contrib-jshint": "~0.7.0",
17-
"grunt-karma": "~0.6.2"
18-
},
19-
"scripts": {
20-
"test": "echo \"Error: no test specified\" && exit 1"
21-
},
22-
"repository": "",
23-
"engines":{
24-
"node":"0.10.10"
25-
}
26-
}
1+
{
2+
"author": "",
3+
"name": "angularjs-dropdown-multiselect-demo",
4+
"version": "0.0.0",
5+
"description": "",
6+
"homepage": "",
7+
"dependencies": {},
8+
"devDependencies": {
9+
"express": "~3.4.4",
10+
"grunt": "^0.4.5",
11+
"grunt-build-control": "^0.1.3",
12+
"grunt-contrib-concat": "~0.3.0",
13+
"grunt-contrib-cssmin": "~0.7.0",
14+
"grunt-contrib-jshint": "~0.7.0",
15+
"grunt-contrib-less": "~0.8.1",
16+
"grunt-contrib-uglify": "~0.2.5",
17+
"grunt-karma": "~0.6.2"
18+
},
19+
"scripts": {
20+
"test": "echo \"Error: no test specified\" && exit 1"
21+
},
22+
"repository": "",
23+
"engines": {
24+
"node": "0.10.10"
25+
}
26+
}

0 commit comments

Comments
 (0)