UNPKG

@iseeberg79/battery-usage-optimization-nodes

Version:
34 lines (31 loc) 835 B
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), eslint: { options: { configFile: 'eslint.config.cjs' // Pfad zur ESLint-Konfigurationsdatei }, target: ['nodes/*.js'] // Pfad zu den JavaScript-Dateien }, jsdoc: { dist: { src: ['nodes/*.js'], options: { destination: 'build/docs' } } }, shell: { npm_pack: { command: 'rm -rf ./build; mkdir -p ./build/ && npm pack --pack-destination ./build' } } }); //grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-eslint'); grunt.loadNpmTasks('grunt-jsdoc'); grunt.loadNpmTasks('grunt-shell'); // Default task(s). //grunt.registerTask('default', ['jshint', 'jsdoc', 'shell:npm_pack']); grunt.registerTask('default', ['eslint', 'jsdoc', 'shell:npm_pack']); };