remove packages to get npm audit to pass (#11)
* remove packages to get `npm audit` to pass * fix grunt.config.init() call lost in split up * remove integration tests, they don't work and nobody is running them * fix upload_to_s3 task after refactor
This commit is contained in:
44
Gruntfile.js
44
Gruntfile.js
@ -2,23 +2,35 @@ const { resolve } = require('path');
|
||||
|
||||
module.exports = function(grunt) {
|
||||
// load plugins
|
||||
require('load-grunt-config')(grunt, {
|
||||
configPath: resolve(__dirname, 'grunt/config'),
|
||||
init: true,
|
||||
config: {
|
||||
distDir: resolve(__dirname, 'dist'),
|
||||
bowerSubmodule: resolve(__dirname, 'src/bower_es_js'),
|
||||
meta: {
|
||||
banner:
|
||||
'/*! <%= package.name %> - v<%= package.version %> - ' +
|
||||
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
|
||||
'<%= package.homepage ? " * " + package.homepage + "\\n" : "" %>' +
|
||||
' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= package.author.company %>;' +
|
||||
' Licensed <%= package.license %> */\n',
|
||||
},
|
||||
grunt.config.init({
|
||||
distDir: resolve(__dirname, 'dist'),
|
||||
bowerSubmodule: resolve(__dirname, 'src/bower_es_js'),
|
||||
meta: {
|
||||
banner:
|
||||
'/*! <%= package.name %> - v<%= package.version %> - ' +
|
||||
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
|
||||
'<%= package.homepage ? " * " + package.homepage + "\\n" : "" %>' +
|
||||
' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= package.author.company %>;' +
|
||||
' Licensed <%= package.license %> */\n',
|
||||
},
|
||||
|
||||
clean: require('./grunt/config/clean'),
|
||||
compress: require('./grunt/config/compress'),
|
||||
concat: require('./grunt/config/concat'),
|
||||
copy: require('./grunt/config/copy'),
|
||||
run: require('./grunt/config/run'),
|
||||
uglify: require('./grunt/config/uglify'),
|
||||
webpack: require('./grunt/config/webpack'),
|
||||
});
|
||||
|
||||
// load task definitions
|
||||
grunt.loadTasks('grunt');
|
||||
grunt.loadNpmTasks('grunt-contrib-clean');
|
||||
grunt.loadNpmTasks('grunt-contrib-compress');
|
||||
grunt.loadNpmTasks('grunt-contrib-concat');
|
||||
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||
grunt.loadNpmTasks('grunt-run');
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
grunt.loadNpmTasks('grunt-webpack');
|
||||
|
||||
require('./grunt/browser_clients')(grunt);
|
||||
require('./grunt/tasks')(grunt);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user