Skip to content

Commit dede592

Browse files
authored
chore: remove unused deps (#4814)
1 parent f6f996d commit dede592

File tree

3 files changed

+0
-665
lines changed

3 files changed

+0
-665
lines changed

build/grunt.js

Lines changed: 0 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {gruntCustomizer, gruntOptionsMaker} from './options-customizer.js';
2-
import chg from 'chg';
32
import npmRun from 'npm-run';
43
import isDocsOnly from './docs-only.js';
54

@@ -28,22 +27,6 @@ module.exports = function(grunt) {
2827
]
2928
};
3029

31-
const githubReleaseDefaults = {
32-
options: {
33-
release: {
34-
tag_name: 'v'+ version.full,
35-
name: version.full,
36-
body: npmRun.execSync('conventional-changelog -p videojs', {
37-
silent: true,
38-
encoding: 'utf8'
39-
})
40-
},
41-
},
42-
files: {
43-
src: [`dist/video-js-${version.full}.zip`] // Files that you want to attach to Release
44-
}
45-
};
46-
4730
/**
4831
* Customizes _.merge behavior in `browserifyGruntOptions` to concatenate
4932
* arrays. This can be overridden on a per-call basis to
@@ -71,9 +54,6 @@ module.exports = function(grunt) {
7154
*/
7255
const browserifyGruntOptions = gruntOptionsMaker(browserifyGruntDefaults, browserifyGruntCustomizer);
7356

74-
const githubReleaseCustomizer = gruntCustomizer;
75-
const githubReleaseOptions = gruntOptionsMaker(githubReleaseDefaults, githubReleaseCustomizer);
76-
7757
/**
7858
* Creates processor functions for license banners.
7959
*
@@ -231,16 +211,6 @@ module.exports = function(grunt) {
231211
ie9_bs: { browsers: ['ie9_bs'] },
232212
ie8_bs: { browsers: ['ie8_bs'] }
233213
},
234-
vjsdocs: {
235-
all: {
236-
// TODO: Update vjsdocs to support new build, or switch to jsdoc
237-
src: '',
238-
dest: 'docs/api',
239-
options: {
240-
baseURL: 'https://github.com/videojs/video.js/blob/master/'
241-
}
242-
}
243-
},
244214
vjslanguages: {
245215
defaults: {
246216
files: {
@@ -260,67 +230,13 @@ module.exports = function(grunt) {
260230
}
261231
},
262232
version: {
263-
options: {
264-
pkg: 'package.json'
265-
},
266-
major: {
267-
options: {
268-
release: 'major'
269-
},
270-
src: ['package.json']
271-
},
272-
minor: {
273-
options: {
274-
release: 'minor'
275-
},
276-
src: ['package.json']
277-
},
278-
patch: {
279-
options: {
280-
release: 'patch'
281-
},
282-
src: ['package.json']
283-
},
284-
prerelease: {
285-
options: {
286-
release: 'prerelease'
287-
},
288-
src: ['package.json']
289-
},
290233
css: {
291234
options: {
292235
prefix: '@version\\s*'
293236
},
294237
src: 'build/temp/video-js.css'
295238
}
296239
},
297-
'github-release': {
298-
options: {
299-
repository: 'videojs/video.js',
300-
auth: {
301-
user: process.env.VJS_GITHUB_USER,
302-
password: process.env.VJS_GITHUB_TOKEN
303-
}
304-
},
305-
release: githubReleaseOptions(),
306-
prerelease: githubReleaseOptions({
307-
options: {
308-
release: {
309-
prerelease: true
310-
}
311-
}
312-
})
313-
},
314-
babel: {
315-
es5: {
316-
files: [{
317-
expand: true,
318-
cwd: 'src/js/',
319-
src: ['**/*.js', '!base-styles.js'],
320-
dest: 'es5/'
321-
}]
322-
}
323-
},
324240
browserify: {
325241
build: {
326242
options: browserifyGruntOptions(),
@@ -520,8 +436,6 @@ module.exports = function(grunt) {
520436

521437
// load all the npm grunt tasks
522438
require('load-grunt-tasks')(grunt);
523-
grunt.loadNpmTasks('videojs-doc-generator');
524-
grunt.loadNpmTasks('chg');
525439
grunt.loadNpmTasks('grunt-accessibility');
526440

527441
grunt.registerTask('build', [

0 commit comments

Comments
 (0)