Skip to content

Commit 0e52116

Browse files
committed
0.1.1 release
1 parent 83e181b commit 0e52116

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

Chart.Smith.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*!
2+
* Chart.Smith.js
3+
* Version: 0.1.1
4+
*
5+
* Copyright 2016 Evert Timberg
6+
* Released under the MIT license
7+
* https://github.com/chartjs/Chart.Smith.js/blob/master/LICENSE.md
8+
*/
19
;(function(root, factory) {
210
if (typeof define === 'function' && define.amd) {
311
define(['Chart'], factory);

gulpfile.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var concat = require('gulp-concat'),
22
gulp = require('gulp'),
3+
insert = require('gulp-insert'),
34
jshint = require('gulp-jshint'),
45
karma = require('karma'),
56
package = require('./package.json'),
@@ -13,6 +14,15 @@ var testFiles = './test/**.js';
1314
var buildDir = '.';
1415
var testSrc = ['./node_modules/Chart.js/dist/Chart.js', srcFiles, testFiles];
1516

17+
var header = "/*!\n\
18+
* Chart.Smith.js\n\
19+
* Version: {{ version }}\n\
20+
*\n\
21+
* Copyright 2016 Evert Timberg\n\
22+
* Released under the MIT license\n\
23+
* https://github.com/chartjs/Chart.Smith.js/blob/master/LICENSE.md\n\
24+
*/\n";
25+
1626
gulp.task('build', buildTask);
1727
gulp.task('ci', ['jshint', 'test']); // runs on CI
1828
gulp.task('coverage', coverageTask);
@@ -24,13 +34,14 @@ gulp.task('testWatch', testWatchTask);
2434
function buildTask() {
2535
return gulp.src(srcFiles)
2636
.pipe(concat('Chart.Smith.js'))
27-
.pipe(replace('{{ version }}', package.version))
2837
.pipe(umd({
2938
templateName: 'amdCommonWeb',
3039
dependencies: function() {
3140
return ['Chart']
3241
}
3342
}))
43+
.pipe(insert.prepend(header))
44+
.pipe(replace('{{ version }}', package.version))
3445
.pipe(gulp.dest(buildDir));
3546
}
3647

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"description": "Smith chart implementation for Chart.js",
77
"main": "Chart.Smith.js",
8-
"version": "0.1.0",
8+
"version": "0.1.1",
99
"repository": {
1010
"type": "git",
1111
"url": "https://github.com/etimberg/Chart.Smith.js.git"
@@ -17,6 +17,7 @@
1717
"check-dependencies": "^0.11.0",
1818
"gulp": ">=3.9.0",
1919
"gulp-concat": ">=2.6.0",
20+
"gulp-insert": "^0.5.0",
2021
"gulp-jshint": "^2.0.0",
2122
"gulp-replace": ">=0.5.4",
2223
"gulp-umd": ">=0.2.0",
@@ -30,4 +31,4 @@
3031
"karma-jasmine": "^0.3.8",
3132
"karma-jasmine-html-reporter": "^0.2.0"
3233
}
33-
}
34+
}

0 commit comments

Comments
 (0)