You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

57 lines
2.3 KiB

const tempDir = './var/tmp/gulp_font_download';
const mode = 'dev'; //['dev', 'prod'].includes(yargs.argv.mode) ? yargs.agv.mode : 'dev';
const app = 'frontend'; //'frontend'].includes(yargs.argv.app) ? yargs.argv.app : 'frontend';
const src = './assets/src';
const dist = './assets/dist';
const publ = './public/resources/' + app;
const config = {
tempDir: tempDir,
mode: mode,
app: app,
src: src,
dist: dist,
publ: publ,
watch: {
js: src + '/' + app + '/**/*.+(js)',
css: src + '/' + app + '/app.scss',
srcPublic: src + '/' + app + '/public/**/*',
dist: dist + '/' + app + '/**/*',
img: dist + '/' + app + '/**/*.+(jpg|jpeg|gif|png)',
'publish': dist + '/' + app + '/'
},
del: {
js: dist + '/' + app + '/**/*.+(js|js.map)',
css: dist + '/' + app + '/**/*.+(css|css.map)',
img: dist + '/' + app + '/**/*.+(jpg|jpeg|gif|png|webp)',
font: dist + '/' + app + '/fonts/',
dist: dist + '/' + app + '/*'
},
js: {
'lib': {
'axios': 'https://cdnjs.cloudflare.com/ajax/libs/axios/1.6.7/axios.js',
'vue': 'https://cdnjs.cloudflare.com/ajax/libs/vue/3.4.21/vue.global.js',
'jquery': 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.js',
'jquery-ui': 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.2/jquery-ui.min.js',
'requirejs': 'https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.js'
},
'app': [src + '/' + app + '/app.js']
},
css: {
'lib': {
'jquery-ui': 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.2/themes/black-tie/jquery-ui.min.css',
'jquery-ui-theme': 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.2/themes/black-tie/theme.min.css'
},
'app': [src + '/' + app + '/app.scss']
},
font: {
'Lato': 'https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap',
'Source Sans 3': 'https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap',
'font-awesome': 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css'
}
}
export {config}