UNPKG

bw-cli

Version:

The Brightwork (bw) command line deployment tool. Build & deploy serverless RESTful APIs in minutes.

42 lines (35 loc) 822 B
module.exports = function (grunt) { grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-obfuscator'); grunt.initConfig({ copy: { main: { files: [ { expand: true, src: './*.txt', dest: 'dist/', }, { expand: true, src: './*.json', dest: 'dist/', }, { expand: true, src: './*.yml', dest: 'dist/', } ] }}, obfuscator: { files: [ './*.js' ], root: __dirname, entry: 'index.js', out: 'dist/app.js' } }); grunt.registerTask('build', ['copy', 'obfuscator']); };