2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-20 20:00:40 +03:00

Replaced webpack with rollup; (#4596)

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Dmitriy Mozgovoy
2022-05-03 19:53:02 +03:00
committed by GitHub
parent a41f129acf
commit fe2563060d
3 changed files with 75 additions and 15 deletions
+7 -15
View File
@@ -29,18 +29,6 @@ module.exports = function(grunt) {
all: {}
},
usebanner: {
all: {
options: {
banner: '<%= meta.banner %>',
linebreak: false
},
files: {
src: ['dist/*.js']
}
}
},
eslint: {
target: ['lib/**/*.js']
},
@@ -77,7 +65,11 @@ module.exports = function(grunt) {
}
},
webpack: require('./webpack.config.js')
shell: {
rollup: {
command: 'rollup -c -m'
}
}
});
grunt.registerMultiTask('package2bower', 'Sync package.json to bower.json', function() {
@@ -104,6 +96,6 @@ module.exports = function(grunt) {
});
grunt.registerTask('test', 'Run the jasmine and mocha tests', ['eslint', 'mochaTest', 'karma:single']);
grunt.registerTask('build', 'Run webpack and bundle the source', ['clean', 'webpack', 'usebanner']);
grunt.registerTask('version', 'Sync version info for a release', ['usebanner', 'package2bower', 'package2env']);
grunt.registerTask('build', 'Run rollup and bundle the source', ['clean', 'shell:rollup']);
grunt.registerTask('version', 'Sync version info for a release', ['package2bower', 'package2env']);
};