Files
urbanis.openeye.app/project.config.js

119 lines
2.9 KiB
JavaScript

const useBootstrap = process.env.USE_BOOTSTRAP === 'true';
const useScripts = process.env.USE_SCRIPTS !== 'false'; // oder einfach const useScripts = false;
const stylesPath = useBootstrap
? {
source: 'source/assets/scss/**/*.scss',
entry: 'source/assets/scss/bootstrap.scss',
dest: 'build/assets/css'
}
: {
source: 'source/assets/sass/**/*.scss',
entry: 'source/assets/sass/main.scss',
dest: 'build/assets/css'
};
const scriptsPath = useScripts
? (useBootstrap
? {
source: 'source/js/**/*.js',
entry: 'source/js/main.js',
dest: 'build/js'
}
: {
source: 'source/assets/js/**/*.js',
entry: 'source/assets/js/main.js',
dest: 'build/assets/js'
})
: null;
module.exports = {
useBootstrap,
paths: {
source: 'source',
build: 'build',
styles: stylesPath,
scripts: scriptsPath,
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/inc/**', 'source/meldung.php'],
dest: 'build'
},
static: {
source: [
'source/files/**/*',
'!source/assets/sass/**/*',
'!source/assets/scss/**/*',
'!source/assets/css/**/*.css',
'!source/assets/css/images/**/*',
'source/inc/*',
'source/meldung.php',
'source/robots.txt'
],
dest: 'build/assets'
},
vendor: {
fontawesome: 'node_modules/@fortawesome/fontawesome-free/webfonts/*',
jquery: useBootstrap
? null
: 'node_modules/jquery/dist/jquery.min.js',
bootstrapBundle: 'node_modules/bootstrap/dist/js/bootstrap.bundle.min.js',
scrollex: null,
scrolly: null,
destFonts: 'build/assets/webfonts',
destJs: 'build/assets/js'
},
favicons: {
source: ['source/*.{png,ico,svg,webmanifest}'],
dest: 'build'
}
},
extensionMapping: {
'start': '.php',
'index': '.php',
'register': '.php',
'settings': '.php',
'meldung': '.php',
'logout': '.php',
'login': '.php',
'impressum': '.php',
'datenschutz': '.php',
'error.inc': '.php',
'footer.inc': '.php',
'header.inc': '.php',
'passwortzuruecksetzen': '.php',
'passwortvergessen': '.php'
},
serve: {
proxy: 'http://urbanis.openeye.localhost',
port: 3000,
open: true
},
deploy: {
host: 'openeye-urbanis@10.247.64.14',
path: '/home/openeye-urbanis/htdocs/urbanis.openeye.app',
port: 2222,
excludes: ['.DS_Store', '.git', 'register.php']
}
};