mybuddy/gulpfile.config.js

90 lines
3.1 KiB
JavaScript
Raw Normal View History

const 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/@popperjs/core/dist/umd/popper.js',
2017-08-21 20:03:16 +00:00
'node_modules/bootstrap/dist/js/bootstrap.js',
2023-03-25 20:54:25 +00:00
'node_modules/masonry-layout/dist/masonry.pkgd.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-ca.js',
'node_modules/plotly.js/dist/plotly-locale-cs.js',
2020-01-20 15:13:12 +00:00
'node_modules/plotly.js/dist/plotly-locale-de.js',
'node_modules/plotly.js/dist/plotly-locale-da.js',
2020-01-20 15:13:12 +00:00
'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',
'node_modules/plotly.js/dist/plotly-locale-hu.js',
2021-03-04 14:03:29 +00:00
'node_modules/plotly.js/dist/plotly-locale-it.js',
2023-05-03 01:53:16 +00:00
'node_modules/plotly.js/dist/plotly-locale-no.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',
'node_modules/plotly.js/dist/plotly-locale-ru.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',
2022-02-21 17:27:27 +00:00
'node_modules/plotly.js/dist/plotly-locale-uk.js',
'node_modules/plotly.js/dist/plotly-locale-zh-cn.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.tests_views.ViewsTestCase.test_password_reset'
],
},
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
}
};