mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 22:37:32 +00:00
48 lines
1.4 KiB
JavaScript
Executable File
48 lines
1.4 KiB
JavaScript
Executable File
module.exports = function (grunt) {
|
|
grunt.initConfig({
|
|
pkg: grunt.file.readJSON('package.json'),
|
|
projectFiles: ['src/litegraph.js',
|
|
'src/nodes/base.js',
|
|
'src/nodes/events.js',
|
|
'src/nodes/interface.js',
|
|
'src/nodes/input.js',
|
|
'src/nodes/math.js',
|
|
'src/nodes/logic.js',
|
|
'src/nodes/image.js',
|
|
'src/nodes/gltextures.js',
|
|
'src/nodes/glfx.js',
|
|
'src/nodes/midi.js',
|
|
'src/nodes/audio.js',
|
|
'src/nodes/network.js'
|
|
],
|
|
concat: {
|
|
build: {
|
|
src: '<%= projectFiles %>',
|
|
dest: 'build/litegraph.js'
|
|
}
|
|
},
|
|
closureCompiler: {
|
|
|
|
options: {
|
|
compilerFile: 'node_modules/google-closure-compiler/compiler.jar',
|
|
compilerOpts: {
|
|
formatting: 'pretty_print',
|
|
warning_level: 'default'
|
|
},
|
|
d32: false, // will use 'java -client -d32 -jar compiler.jar'
|
|
TieredCompilation: false// will use 'java -server -XX:+TieredCompilation -jar compiler.jar',
|
|
// ,output_wrapper: '"var LiteGraph = (function(){%output% return LiteGraph;}).call(this);"' //* Make container for all
|
|
},
|
|
targetName: {
|
|
src: '<%= projectFiles %>',
|
|
dest: 'build/litegraph.min.js'
|
|
}
|
|
}
|
|
})
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-concat')
|
|
grunt.loadNpmTasks('grunt-closure-tools')
|
|
|
|
grunt.registerTask('build', ['concat:build', 'closureCompiler'])
|
|
}
|