Skip to content

Commit 029d283

Browse files
committed
Stable Version 2.1.0
1 parent 31a4129 commit 029d283

9 files changed

+1408
-1304
lines changed

.jshintrc

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"node": false,
33
"browser": true,
4+
"asi": true,
45
"esnext": true,
56
"bitwise": true,
67
"camelcase": true,

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
###### Backwards compatible API changes
44
- #20 - DSHttpAdapter.POST does not pick DSHttpAdapter.defaults.basePath
5+
- #25 - Allow urlPath override for httpAdapter PR by @internalfx
56
- #26 - Add support for full url override
67

78
###### Backwards compatible bug fixes

Gruntfile.js

+20
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ module.exports = function (grunt) {
115115
},
116116
ci: {
117117
browsers: ['Chrome', 'Firefox', 'PhantomJS']
118+
},
119+
c9: {
120+
browsers: ['PhantomJS']
118121
}
119122
},
120123
coveralls: {
@@ -124,6 +127,22 @@ module.exports = function (grunt) {
124127
}
125128
});
126129

130+
grunt.registerTask('standard', function () {
131+
var child_process = require('child_process');
132+
var done = this.async();
133+
grunt.log.writeln('Linting for correcting formatting...');
134+
child_process.exec('node node_modules/standard/bin/cmd.js --parser babel-eslint src/*.js src/**/*.js src/**/**/*.js', function (err, stdout) {
135+
console.log(stdout);
136+
if (err) {
137+
grunt.log.writeln('Failed due to ' + (stdout.split('\n').length - 2) + ' lint errors!');
138+
done(err);
139+
} else {
140+
grunt.log.writeln('Done linting.');
141+
done();
142+
}
143+
});
144+
});
145+
127146
grunt.registerTask('version', function (filePath) {
128147
var file = grunt.file.read(filePath);
129148

@@ -135,6 +154,7 @@ module.exports = function (grunt) {
135154
grunt.registerTask('test', ['build', 'karma:ci', 'karma:min']);
136155
grunt.registerTask('build', [
137156
'clean',
157+
'standard',
138158
'webpack',
139159
'uglify:main'
140160
]);

0 commit comments

Comments
 (0)