1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 21:29:42 +02:00
documize/gui/ember-cli-build.js

84 lines
2.2 KiB
JavaScript
Raw Normal View History

2019-01-07 14:43:56 +00:00
'use strict';
2016-07-07 18:54:16 -07:00
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var isDevelopment = EmberApp.env() === 'development';
module.exports = function (defaults) {
var app = new EmberApp(defaults, {
fingerprint: {
enabled: true,
2018-11-24 16:13:21 +00:00
generateAssetMap: true,
fingerprintAssetMap: true,
prepend: '/',
extensions: ['js', 'css'],
2019-01-07 14:43:56 +00:00
exclude: ['tinymce/**', 'codemirror/**', 'prism/**']
},
2016-07-07 18:54:16 -07:00
minifyJS: {
enabled: !isDevelopment,
options: {
2019-01-07 14:43:56 +00:00
exclude: ['tinymce/**', 'codemirror/**', 'prism/**']
}
},
2016-07-07 18:54:16 -07:00
minifyCSS: {
enabled: !isDevelopment,
options: {
2019-01-07 14:43:56 +00:00
exclude: ['tinymce/**', 'codemirror/**', 'prism/**']
}
},
2016-07-07 18:54:16 -07:00
sourcemaps: {
enabled: isDevelopment,
extensions: ['js']
2018-11-24 16:13:21 +00:00
},
outputPaths: {
app: {
css: {
'app': '/assets/documize.css',
'themes/conference': '/assets/theme-conference.css',
'themes/forest': '/assets/theme-forest.css',
'themes/brave': '/assets/theme-brave.css',
'themes/harvest': '/assets/theme-harvest.css',
'themes/sunflower': '/assets/theme-sunflower.css',
'themes/silver': '/assets/theme-silver.css',
2018-11-24 16:13:21 +00:00
}
}
}
});
2016-07-07 18:54:16 -07:00
app.import('vendor/datetimepicker.min.js');
2017-03-09 12:51:21 +00:00
app.import('vendor/documize.js');
app.import('vendor/dropzone.js');
app.import('vendor/is.js');
app.import('vendor/iziToast.js');
app.import('vendor/keycloak.js');
app.import('vendor/markdown-it.min.js');
app.import('vendor/md5.js');
app.import('vendor/moment.js');
app.import('vendor/mousetrap.js');
app.import('vendor/prism.js');
app.import('vendor/slug.js');
app.import('vendor/sortable.js');
app.import('vendor/table-editor.min.js');
app.import('vendor/underscore.js');
app.import('vendor/codemirror.js'); // core lib
app.import('vendor/codemirror-boot.js'); // boot-up files
2017-12-11 14:57:29 +00:00
app.import('vendor/bootstrap.bundle.min.js');
return app.toTree();
};
2019-01-07 14:43:56 +00:00
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
//
// This software (Documize Community Edition) is licensed under
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
//
// You can operate outside the AGPL restrictions by purchasing
// Documize Enterprise Edition and obtaining a commercial license
// by contacting <sales@documize.com>.
//
// https://documize.com