Skip to content

Commit 30f5557

Browse files
committed
Merge pull request #61 from upfrontIO/bowerify
Bowerify
2 parents 0421326 + eb154e9 commit 30f5557

File tree

6 files changed

+6292
-10
lines changed

6 files changed

+6292
-10
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
# v0.1.0 (2014-01-24)
3+
4+
- Setup Versioning

Gruntfile.js

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ module.exports = function(grunt) {
6464
}
6565
},
6666
clean: {
67-
dist: ['.tmp', 'dist'],
6867
server: '.tmp'
6968
},
7069
jshint: {
@@ -94,7 +93,7 @@ module.exports = function(grunt) {
9493
concat: {
9594
dist: {
9695
files: {
97-
'dist/editable.js': [
96+
'editable.js': [
9897
'vendor/rangy-1.2.3/rangy-core.js',
9998
'vendor/rangy-1.2.3/rangy-selectionsaverestore.js',
10099
'vendor/bowser.js',
@@ -125,8 +124,8 @@ module.exports = function(grunt) {
125124
uglify: {
126125
dist: {
127126
files: {
128-
'dist/editable.min.js': [
129-
'dist/editable.js'
127+
'editable.min.js': [
128+
'editable.js'
130129
],
131130
}
132131
}
@@ -135,12 +134,18 @@ module.exports = function(grunt) {
135134
lukas: {
136135
files: [{
137136
expand: true,
138-
cwd: 'dist/',
139-
src: ['*'],
137+
src: ['editable.js'],
140138
dest: '../livingdocs-engine/vendor/editableJS/'
141139
}]
142140

143141
}
142+
},
143+
bump: {
144+
options: {
145+
files: ['package.json', 'bower.json'],
146+
commitFiles: ['package.json', 'bower.json', 'Changelog.md'], // '-a' for all files
147+
pushTo: 'origin'
148+
}
144149
}
145150

146151
});
@@ -175,7 +180,6 @@ module.exports = function(grunt) {
175180

176181
grunt.registerTask('build', [
177182
'jshint',
178-
'clean:dist',
179183
'clean:server',
180184
'concat:editable',
181185
// 'karma:build',
@@ -189,4 +193,18 @@ module.exports = function(grunt) {
189193
]);
190194

191195
grunt.registerTask('default', ['server']);
196+
197+
198+
// Release a new version
199+
// Only do this on the `master` branch.
200+
//
201+
// options:
202+
// release:patch
203+
// release:minor
204+
// release:major
205+
grunt.registerTask('release', function (type) {
206+
type = type ? type : 'patch';
207+
grunt.task.run('bump:' + type);
208+
});
209+
192210
};

bower.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "EditableJS",
3+
"version": "0.1.0",
4+
"homepage": "https://github.com/upfrontIO/Editable.JS",
5+
"authors": [
6+
"Matteo Agosti<[email protected]>",
7+
"Lukas Peyer<[email protected]>"
8+
],
9+
"description": "Friendly contenteditable API",
10+
"license": "MIT",
11+
"ignore": [
12+
"**/**",
13+
"!editable.js",
14+
"!editable.min.js"
15+
]
16+
}

0 commit comments

Comments
 (0)