mybuddy/gulpfile.config.js

96 lines
3.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 + 'font/',
files: 'babybuddy/static_src/fontello/font/*'
},
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
}
},
glyphFontConfig: {
configFile: 'babybuddy/static_src/fontello/config.json',
dest: 'babybuddy/static_src/fontello'
},
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',
2021-10-17 13:23:43 +00:00
'node_modules/moment/locale/en-gb.js',
2020-01-20 17:28:23 +00:00
'node_modules/moment/locale/es.js',
'node_modules/moment/locale/fi.js',
2020-01-20 17:28:23 +00:00
'node_modules/moment/locale/fr.js',
2021-03-04 14:03:29 +00:00
'node_modules/moment/locale/it.js',
2021-02-25 14:00:23 +00:00
'node_modules/moment/locale/nl.js',
2021-10-07 01:37:26 +00:00
'node_modules/moment/locale/pl.js',
'node_modules/moment/locale/pt.js',
2020-01-20 17:28:23 +00:00
'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-fi.js',
2020-01-20 15:13:12 +00:00
'node_modules/plotly.js/dist/plotly-locale-fr.js',
2021-03-04 14:03:29 +00:00
'node_modules/plotly.js/dist/plotly-locale-it.js',
2021-02-25 14:00:23 +00:00
'node_modules/plotly.js/dist/plotly-locale-nl.js',
2021-10-07 01:37:26 +00:00
'node_modules/plotly.js/dist/plotly-locale-pl.js',
'node_modules/plotly.js/dist/plotly-locale-pt-br.js',
'node_modules/plotly.js/dist/plotly-locale-pt-pt.js',
2020-01-20 15:13:12 +00:00
'node_modules/plotly.js/dist/plotly-locale-sv.js',
'node_modules/plotly.js/dist/plotly-locale-tr.js',
'node_modules/plotly.js/dist/plotly-locale-uk.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'
],
tags_editor: [
'babybuddy/static_src/js/tags_editor.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.formats.tests_en_us.FormatsTestCase.test_use_24_hour_time_format'
],
},
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
}
};