Skip to content

Commit 9ec1dd4

Browse files
authored
build: include plugins-combination in dist and clear some old grunt configs (#1313)
* build: include plugins-combination in dist and clear some old grunt configs * build: Rebuild all plugins with latest raven version
1 parent 258c024 commit 9ec1dd4

File tree

113 files changed

+106352
-83581
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+106352
-83581
lines changed

Gruntfile.js

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@ module.exports = function(grunt) {
2424
// custom browserify transformer to re-write plugins to
2525
// self-register with Raven via addPlugin
2626
function AddPluginBrowserifyTransformer() {
27-
var noop = function (chunk, _, cb) { cb(null, chunk); };
28-
var append = function (cb) { cb(null, "\nrequire('../src/singleton').addPlugin(module.exports);"); };
27+
var noop = function(chunk, _, cb) {
28+
cb(null, chunk);
29+
};
30+
var append = function(cb) {
31+
cb(null, "\nrequire('../src/singleton').addPlugin(module.exports);");
32+
};
2933
return function(file) {
3034
return through(noop, /plugins/.test(file) ? append : undefined);
3135
};
@@ -222,25 +226,6 @@ module.exports = function(grunt) {
222226
}
223227
},
224228

225-
connect: {
226-
test: {
227-
options: {
228-
port: 8000,
229-
debug: true,
230-
keepalive: true
231-
}
232-
},
233-
234-
docs: {
235-
options: {
236-
port: 8000,
237-
debug: true,
238-
base: 'docs/_build/html',
239-
keepalive: true
240-
}
241-
}
242-
},
243-
244229
copy: {
245230
dist: {
246231
expand: true,
@@ -306,7 +291,6 @@ module.exports = function(grunt) {
306291
// Grunt contrib tasks
307292
grunt.loadNpmTasks('grunt-contrib-uglify');
308293
grunt.loadNpmTasks('grunt-contrib-clean');
309-
grunt.loadNpmTasks('grunt-contrib-connect');
310294
grunt.loadNpmTasks('grunt-contrib-copy');
311295

312296
// 3rd party Grunt tasks
@@ -326,6 +310,7 @@ module.exports = function(grunt) {
326310
'_prep',
327311
'browserify:plugins-combined'
328312
]);
313+
grunt.registerTask('build', ['build.core', 'build.plugins-combined']);
329314
grunt.registerTask('build.test', ['_prep', 'browserify.core', 'browserify:test']);
330315
grunt.registerTask('build.core', ['browserify.core', 'uglify', 'sri:dist']);
331316
grunt.registerTask('build.plugins-combined', [
@@ -334,14 +319,7 @@ module.exports = function(grunt) {
334319
'sri:dist',
335320
'sri:build'
336321
]);
337-
grunt.registerTask('build', ['build.plugins-combined']);
338-
grunt.registerTask('dist', ['build.core', 'copy:dist']);
339-
322+
grunt.registerTask('dist', ['build', 'copy:dist']);
323+
grunt.registerTask('publish', ['build', 's3']);
340324
grunt.registerTask('test:ci', ['config:ci', 'build.test']);
341-
342-
// Webserver tasks
343-
grunt.registerTask('run:test', ['build.test', 'connect:test']);
344-
grunt.registerTask('run:docs', ['connect:docs']);
345-
346-
grunt.registerTask('publish', ['build.plugins-combined', 's3']);
347325
};

0 commit comments

Comments
 (0)