Files
osterbrigade.de/project.config.js

78 lines
1.9 KiB
JavaScript

module.exports = {
paths: {
source: 'source',
build: 'build',
styles: {
source: 'source/assets/sass/**/*.scss',
entry: [
'source/assets/sass/main.scss'
],
dest: 'build/assets/css'
},
scripts: {
source: 'source/assets/js/**/*.js',
dest: 'build/assets/js'
},
images: {
source: ['source/images/**/**/*.{jpg,jpeg,png}', 'source/assets/css/images/**/**/*.{jpg,jpeg,png}'],
other: ['source/images/**/**/*.{gif,svg,webp}', 'source/assets/css/images/**/**/*.{gif,svg,webp}'],
dest: 'build/images'
},
markup: {
source: ['source/**/*.{kit,html,php}'],
entry: ['source/**/*.{kit,html,php}'],
exclude: ['source/includes/**',
'source/elements.kit',
'source/generic.kit',
'source/portfolio.kit'
], // oder einzelne Dateien
dest: 'build'
},
static: {
source: [
'source/assets/**/*',
'!source/assets/sass/**/*',
'!source/assets/css/**/*.css',
'!source/assets/css/images/**/*'
],
dest: 'build/assets'
},
vendor: {
fontawesome: 'node_modules/@fortawesome/fontawesome-free/webfonts/*',
jquery: 'node_modules/jquery/dist/jquery.min.js',
scrollex: 'node_modules/jquery.scrollex/jquery.scrollex.min.js',
scrolly: 'node_modules/jquery.scrolly/jquery.scrolly.js',
destFonts: 'build/assets/webfonts',
destJs: 'build/assets/js'
},
favicons: {
source: ['source/*.{png,ico,svg,webmanifest}'],
dest: 'build'
}
},
extensionMapping: {
'kontakt': '.php',
//'index': '.php',
'400': '.shtml',
'401': '.shtml',
'403': '.shtml',
'404': '.shtml'
},
serve: {
proxy: 'http://osterbrigade.localhost',
port: 3000,
open: true
},
deploy: {
host: 'osterbrigade@10.247.64.14',
path: '/home/osterbrigade/htdocs/osterbrigade.de',
port: 2222,
excludes: ['.DS_Store', '.git']
}
};