mybuddy/gulpfile.config.js

76 lines
2.4 KiB
JavaScript
Raw Normal View History

2017-10-22 18:00:42 +00:00
var basePath = 'babybuddy/static/babybuddy/';
2017-08-21 20:03:16 +00:00
module.exports = {
basePath: basePath,
extrasConfig: {
fonts: {
dest: basePath + 'fonts/',
files: 'node_modules/font-awesome/fonts/*'
},
images: {
dest: basePath + 'img/',
files: '**/static_src/img/**/*'
},
2018-05-20 22:59:45 +00:00
logo: {
dest: basePath + 'logo/',
files: 'babybuddy/static_src/logo/**/*'
},
root: {
dest: basePath + 'root/',
files: 'babybuddy/static_src/root/*'
2017-08-21 20:03:16 +00:00
}
},
scriptsConfig: {
dest: basePath + 'js/',
vendor: [
2020-02-04 18:52:05 +00:00
'node_modules/pulltorefreshjs/dist/index.umd.js',
2017-08-21 20:03:16 +00:00
'node_modules/jquery/dist/jquery.js',
'node_modules/popper.js/dist/umd/popper.js',
'node_modules/bootstrap/dist/js/bootstrap.js',
'node_modules/moment/moment.js',
2020-01-20 17:28:23 +00:00
'node_modules/moment/locale/de.js',
'node_modules/moment/locale/es.js',
'node_modules/moment/locale/fr.js',
'node_modules/moment/locale/sv.js',
'node_modules/moment/locale/tr.js',
'node_modules/moment-timezone/builds/moment-timezone-with-data-10-year-range.js',
2018-07-15 17:12:55 +00:00
'node_modules/tempusdominus-bootstrap-4/build/js/tempusdominus-bootstrap-4.js'
2017-08-21 20:03:16 +00:00
],
graph: [
2020-01-20 15:13:12 +00:00
'node_modules/plotly.js/dist/plotly-cartesian.js',
'node_modules/plotly.js/dist/plotly-locale-de.js',
'node_modules/plotly.js/dist/plotly-locale-es.js',
'node_modules/plotly.js/dist/plotly-locale-fr.js',
'node_modules/plotly.js/dist/plotly-locale-sv.js',
'node_modules/plotly.js/dist/plotly-locale-tr.js'
],
2017-08-21 20:03:16 +00:00
app: [
2017-10-22 18:00:42 +00:00
'babybuddy/static_src/js/babybuddy.js',
'api/static_src/js/*.js',
'core/static_src/js/*.js',
'dashboard/static_src/js/*.js'
2017-08-21 20:03:16 +00:00
]
},
stylesConfig: {
dest: basePath + 'css/',
2017-10-22 18:00:42 +00:00
app: 'babybuddy/static_src/scss/babybuddy.scss',
ignore: [
2017-10-22 18:00:42 +00:00
'babybuddy.scss'
]
2017-08-22 16:56:30 +00:00
},
testsConfig: {
isolated: [
'babybuddy.tests.tests_formats.FormatsTestCase.test_use_24_hour_time_format_en'
],
},
2017-08-22 16:56:30 +00:00
watchConfig: {
scriptsGlob: [
2018-07-15 17:12:55 +00:00
'*/static_src/js/**/*.js',
2017-10-22 18:00:42 +00:00
'!babybuddy/static/js/'
2017-08-22 16:56:30 +00:00
],
stylesGlob: [
2018-07-15 17:12:55 +00:00
'*/static_src/scss/**/*.scss'
2017-08-22 16:56:30 +00:00
]
2017-08-21 20:03:16 +00:00
}
};