|
|
@ -1,4 +1,5 @@ |
|
|
|
module.exports = function (grunt) { |
|
|
|
const dedent = require("dedent-js"); |
|
|
|
// Project configuration.
|
|
|
|
grunt.initConfig({ |
|
|
|
pkg: grunt.file.readJSON("package.json"), |
|
|
@ -20,19 +21,19 @@ module.exports = function (grunt) { |
|
|
|
dest: "src/main/resources/static/js/adminBundle.min.js", |
|
|
|
}, |
|
|
|
}, |
|
|
|
banner: `
|
|
|
|
banner: dedent(`
|
|
|
|
* ----------------------------------------- |
|
|
|
* @date <%= grunt.template.today("yyyy-mm-dd") %> |
|
|
|
* @project Chatto |
|
|
|
* @author nova |
|
|
|
* @license GPL |
|
|
|
* ----------------------------------------- |
|
|
|
`,
|
|
|
|
`),
|
|
|
|
usebanner: { |
|
|
|
dist: { |
|
|
|
options: { |
|
|
|
position: "top", |
|
|
|
banner: "/*! <%= banner %> */ ", |
|
|
|
banner: "/*! \n<%= banner %> */ ", |
|
|
|
}, |
|
|
|
files: { |
|
|
|
src: [ |
|
|
@ -74,7 +75,7 @@ module.exports = function (grunt) { |
|
|
|
}, |
|
|
|
chat_worker_prod: { |
|
|
|
src: "src/main/frontend/workers/encryption-worker/main.ts", |
|
|
|
dest: "src/main/resources/static/js/worker.min.js", |
|
|
|
dest: "src/main/resources/static/js/worker.js", |
|
|
|
}, |
|
|
|
admin_bundle_dev: { |
|
|
|
src: "src/main/frontend/admin/main.ts", |
|
|
|