mybuddy/gulpfile.config.js

71 lines
2.1 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/**/*'
},
2019-11-09 23:00:47 +00:00
plotlyLocales: {
dest: basePath + 'plotly-locales/',
files: [
'node_modules/plotly.js/dist/plotly-locale-de.js',
2020-01-17 03:14:22 +00:00
'node_modules/plotly.js/dist/plotly-locale-es.js',
2019-11-09 23:00:47 +00:00
'node_modules/plotly.js/dist/plotly-locale-fr.js',
'node_modules/plotly.js/dist/plotly-locale-sv.js'
]
},
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: [
'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',
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: [
'node_modules/plotly.js/dist/plotly-cartesian.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/',
vendor: [
2017-09-15 16:45:12 +00:00
'node_modules/tempusdominus-bootstrap-4/build/css/tempusdominus-bootstrap-4.css'
2017-08-21 20:03:16 +00:00
],
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
},
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
}
};