192 lines
9.0 KiB
JavaScript
192 lines
9.0 KiB
JavaScript
({
|
|
//The top level directory that contains your app. If this option is used
|
|
//then it assumed your scripts are in a subdirectory under this path.
|
|
//This option is not required. If it is not specified, then baseUrl
|
|
//below is the anchor point for finding things. If this option is specified,
|
|
//then all the files from the app directory will be copied to the dir:
|
|
//output area, and baseUrl will assume to be a relative path under
|
|
//this directory.
|
|
appDir: "../../js",
|
|
|
|
//By default, all modules are located relative to this path. If baseUrl
|
|
//is not explicitly set, then all modules are loaded relative to
|
|
//the directory that holds the build file. If appDir is set, then
|
|
//baseUrl should be specified as relative to the appDir.
|
|
baseUrl: "./",
|
|
|
|
//Specify modules to stub out in the optimized file. The optimizer will
|
|
//use the source version of these modules for dependency tracing and for
|
|
//plugin use, but when writing the text into an optimized bundle, these
|
|
//modules will get the following text instead:
|
|
//If the module is used as a plugin:
|
|
// define({load: function(id){throw new Error("Dynamic load not allowed: " + id);}});
|
|
//If just a plain module:
|
|
// define({});
|
|
//This is useful particularly for plugins that inline all their resources
|
|
//and use the default module resolution behavior (do *not* implement the
|
|
//normalize() method). In those cases, an AMD loader just needs to know
|
|
//that the module has a definition. These small stubs can be used instead of
|
|
//including the full source for a plugin.
|
|
stubModules: ['text'],
|
|
|
|
//Finds require() dependencies inside a require() or define call. By default
|
|
//this value is false, because those resources should be considered dynamic/runtime
|
|
//calls. However, for some optimization scenarios, it is desirable to
|
|
//include them in the build.
|
|
//Introduced in 1.0.3. Previous versions incorrectly found the nested calls
|
|
//by default.
|
|
findNestedDependencies: false,
|
|
|
|
//If set to true, any files that were combined into a build bundle will be
|
|
//removed from the output folder.
|
|
removeCombined: true,
|
|
|
|
//List the modules that will be optimized. All their immediate and deep
|
|
//dependencies will be included in the module's file when the build is
|
|
//done. If that module or any of its dependencies includes i18n bundles,
|
|
//only the root bundles will be included unless the locale: section is set above.
|
|
modules: [
|
|
//Just specifying a module name means that module will be converted into
|
|
//a built file that contains all of its dependencies. If that module or any
|
|
//of its dependencies includes i18n bundles, they may not be included in the
|
|
//built file unless the locale: section is set above.
|
|
{
|
|
name: 'app/main',
|
|
exclude: [
|
|
// "jquery",
|
|
// "jsPlumb"
|
|
]
|
|
},{
|
|
name: 'app/notification'
|
|
}
|
|
],
|
|
paths: {
|
|
layout: 'layout',
|
|
jquery: 'lib/jquery-1.11.1.min', // v1.11.1 jQuery
|
|
//jquery: "lib/jquery-2.1.1.min", // v2.1.1 jQuery
|
|
bootstrap: 'lib/bootstrap.min', // v3.3.0 Bootstrap js code - http://getbootstrap.com/javascript/
|
|
text: 'lib/requirejs/text', // v2.0.12 A RequireJS/AMD loader plugin for loading text resources.
|
|
velocity: 'lib/velocity.min', // v1.2.1 animation engine - http://julian.com/research/velocity/
|
|
templates: '../templates', // template dir
|
|
slidebars: 'lib/slidebars', // v0.10 Slidebars - side menu plugin http://plugins.adchsm.me/slidebars/
|
|
jsPlumb: 'lib/dom.jsPlumb-1.7.2-min', // v1.7.2 jsPlumb (Vanilla)- main map draw plugin http://www.jsplumb.org/
|
|
customScrollbar: 'lib/jquery.mCustomScrollbar.concat.min', // v3.1.11 Custom scroll bars - http://manos.malihu.gr/
|
|
datatables: 'lib/jquery.dataTables.min', // v1.10.3 DataTables - tables
|
|
datatablesBootstrap: 'lib/dataTables.bootstrap', // DataTables - not used (bootstrap style)
|
|
xEditable: 'lib/bootstrap-editable.min', // v1.5.1 X-editable - in placed editing
|
|
morris: 'lib/morris.min', // v0.5.0 Morris.js - graphs and charts
|
|
raphael: 'lib/raphael-min', // v2.1.2 Raphaël - required for morris (dependency)
|
|
bootbox: 'lib/bootbox.min', // v4.3.0 Bootbox.js - custom dialogs
|
|
easyPieChart: 'lib/jquery.easypiechart.min', // v2.1.6 Easy Pie Chart - HTML 5 pie charts - http://rendro.github.io/easy-pie-chart/
|
|
dragToSelect: 'lib/jquery.dragToSelect', // v1.1 Drag to Select - http://andreaslagerkvist.com/jquery/drag-to-select/
|
|
hoverIntent: 'lib/jquery.hoverIntent.minified', // v1.8.0 Hover intention - http://cherne.net/brian/resources/jquery.hoverIntent.html
|
|
fullScreen: 'lib/jquery.fullscreen.min', // v0.5.0 Full screen mode - https://github.com/private-face/jquery.fullscreen
|
|
|
|
|
|
|
|
pnotify: 'lib/pnotify/pnotify.core', // v2.0.1 PNotify - notification core file
|
|
//'pnotify.buttons': 'lib/pnotify/pnotify.buttons', // PNotify - buttons notification extension
|
|
//'pnotify.confirm': 'lib/pnotify/pnotify.confirm', // PNotify - confirmation notification extension
|
|
'pnotify.nonblock': 'lib/pnotify/pnotify.nonblock', // PNotify - notification non-block extension (hover effect)
|
|
'pnotify.desktop': 'lib/pnotify/pnotify.desktop', // PNotify - desktop push notification extension
|
|
//'pnotify.history': 'lib/pnotify/pnotify.history', // PNotify - history push notification history extension
|
|
'pnotify.callbacks': 'lib/pnotify/pnotify.callbacks' // PNotify - callbacks push notification extension
|
|
// 'pnotify.reference': 'lib/pnotify/pnotify.reference' // PNotify - reference push notification extension
|
|
|
|
},
|
|
shim: {
|
|
bootstrap: {
|
|
deps: ['jquery']
|
|
},
|
|
velocity: {
|
|
deps: ['jquery']
|
|
},
|
|
slidebars: {
|
|
deps: ['jquery']
|
|
},
|
|
customScrollbar: {
|
|
deps: ['jquery']
|
|
},
|
|
datatables: {
|
|
deps: ['jquery']
|
|
},
|
|
datatablesBootstrap: {
|
|
deps: ['datatables']
|
|
},
|
|
xEditable: {
|
|
deps: ['bootstrap']
|
|
},
|
|
bootbox: {
|
|
deps: ['jquery', 'bootstrap'],
|
|
exports: 'bootbox'
|
|
},
|
|
morris: {
|
|
deps: ['jquery', 'raphael'],
|
|
exports: 'Morris'
|
|
},
|
|
pnotify: {
|
|
deps : ['jquery']
|
|
},
|
|
easyPieChart: {
|
|
deps : ['jquery']
|
|
},
|
|
dragToSelect: {
|
|
deps : ['jquery']
|
|
},
|
|
hoverIntent: {
|
|
deps : ['jquery']
|
|
},
|
|
fullScreen: {
|
|
deps : ['jquery']
|
|
}
|
|
},
|
|
|
|
//How to optimize all the JS files in the build output directory.
|
|
//Right now only the following values
|
|
//are supported:
|
|
//- "uglify": (default) uses UglifyJS to minify the code.
|
|
//- "uglify2": in version 2.1.2+. Uses UglifyJS2.
|
|
//- "closure": uses Google's Closure Compiler in simple optimization
|
|
//mode to minify the code. Only available if running the optimizer using
|
|
//Java.
|
|
//- "closure.keepLines": Same as closure option, but keeps line returns
|
|
//in the minified files.
|
|
//- "none": no minification will be done.
|
|
optimize: "uglify2",
|
|
|
|
//If using UglifyJS2 for script optimization, these config options can be
|
|
//used to pass configuration values to UglifyJS2.
|
|
//For possible `output` values see:
|
|
//https://github.com/mishoo/UglifyJS2#beautifier-options
|
|
//For possible `compress` values see:
|
|
//https://github.com/mishoo/UglifyJS2#compressor-options
|
|
uglify2: {
|
|
//Example of a specialized config. If you are fine
|
|
//with the default options, no need to specify
|
|
//any of these properties.
|
|
output: {
|
|
beautify: false,
|
|
comments: false
|
|
},
|
|
compress: {
|
|
sequences: false,
|
|
drop_console: true,
|
|
global_defs: {
|
|
DEBUG: false
|
|
}
|
|
},
|
|
warnings: true,
|
|
mangle: true
|
|
},
|
|
|
|
//The directory path to save the output. If not specified, then
|
|
//the path will default to be a directory called "build" as a sibling
|
|
//to the build file. All relative paths are relative to the build file.
|
|
dir: "../../build_js",
|
|
|
|
//Inlines the text for any text! dependencies, to avoid the separate
|
|
//async XMLHttpRequest calls to load those dependencies.
|
|
inlineText: false
|
|
|
|
|
|
}) |