2018-02-25 20:12:18 +01:00
|
|
|
module.exports = {
|
2019-09-18 23:16:35 +02:00
|
|
|
browsers:
|
|
|
|
"> 0.25%, Edge >= 15, Safari >= 10, iOS >= 10, Chrome >= 56, Firefox >= 51, IE >= 11, not op_mini all",
|
2018-02-25 20:12:18 +01:00
|
|
|
presets: [
|
2019-09-18 23:16:35 +02:00
|
|
|
"@swissquote/crafty-preset-babel",
|
|
|
|
"@swissquote/crafty-runner-rollup",
|
|
|
|
"@swissquote/crafty-preset-postcss",
|
|
|
|
"@swissquote/crafty-runner-gulp"
|
2018-02-25 20:12:18 +01:00
|
|
|
],
|
2019-09-20 23:29:22 +02:00
|
|
|
destination_css: ".",
|
2019-09-18 23:16:35 +02:00
|
|
|
destination_js: ".",
|
2018-02-25 23:02:09 +01:00
|
|
|
stylelint_pattern: [
|
2019-09-20 23:29:22 +02:00
|
|
|
"src/css/**/*.scss",
|
2019-09-18 23:16:35 +02:00
|
|
|
"!*.min.css",
|
|
|
|
"!**/vendor/**/*.scss"
|
2018-02-25 23:02:09 +01:00
|
|
|
],
|
|
|
|
stylelint: {
|
2019-09-18 23:16:35 +02:00
|
|
|
rules: {
|
|
|
|
"swissquote/no-type-outside-scope": null,
|
|
|
|
"plugin/no-unsupported-browser-features": null
|
|
|
|
}
|
|
|
|
},
|
|
|
|
js: {
|
|
|
|
search: {
|
|
|
|
runner: "rollup",
|
|
|
|
source: "src/js/search/index.js",
|
2019-09-23 22:10:07 +02:00
|
|
|
destination: "daux_libraries/search.min.js"
|
2019-09-20 23:10:01 +02:00
|
|
|
},
|
|
|
|
theme_daux: {
|
|
|
|
runner: "rollup",
|
|
|
|
source: "src/js/theme_daux/index.js",
|
|
|
|
destination: "themes/daux/js/daux.min.js"
|
2019-09-18 23:16:35 +02:00
|
|
|
}
|
2018-02-25 23:02:09 +01:00
|
|
|
},
|
2018-02-25 20:12:18 +01:00
|
|
|
css: {
|
2019-09-18 23:16:35 +02:00
|
|
|
theme_blue: {
|
2019-09-20 23:29:22 +02:00
|
|
|
source: "src/css/theme_daux/theme-blue.scss",
|
2019-09-21 22:44:09 +02:00
|
|
|
destination: "themes/daux/css/theme-blue.min.css",
|
|
|
|
watch: ["src/css/**/*.scss"]
|
2019-09-18 23:16:35 +02:00
|
|
|
},
|
|
|
|
theme_green: {
|
2019-09-20 23:29:22 +02:00
|
|
|
source: "src/css/theme_daux/theme-green.scss",
|
2019-09-21 22:44:09 +02:00
|
|
|
destination: "themes/daux/css/theme-green.min.css",
|
|
|
|
watch: ["src/css/**/*.scss"]
|
2019-09-18 23:16:35 +02:00
|
|
|
},
|
|
|
|
theme_navy: {
|
2019-09-20 23:29:22 +02:00
|
|
|
source: "src/css/theme_daux/theme-navy.scss",
|
2019-09-21 22:44:09 +02:00
|
|
|
destination: "themes/daux/css/theme-navy.min.css",
|
|
|
|
watch: ["src/css/**/*.scss"]
|
2019-09-18 23:16:35 +02:00
|
|
|
},
|
|
|
|
theme_red: {
|
2019-09-20 23:29:22 +02:00
|
|
|
source: "src/css/theme_daux/theme-red.scss",
|
2019-09-21 22:44:09 +02:00
|
|
|
destination: "themes/daux/css/theme-red.min.css",
|
|
|
|
watch: ["src/css/**/*.scss"]
|
2019-09-18 23:16:35 +02:00
|
|
|
},
|
|
|
|
daux_singlepage: {
|
2019-09-20 23:29:22 +02:00
|
|
|
source: "src/css/theme_daux_singlepage/main.scss",
|
2019-09-21 22:44:09 +02:00
|
|
|
destination: "themes/daux_singlepage/css/main.min.css",
|
|
|
|
watch: ["src/css/**/*.scss"]
|
2019-09-18 23:16:35 +02:00
|
|
|
}
|
2018-02-25 20:12:18 +01:00
|
|
|
}
|
2019-09-18 23:16:35 +02:00
|
|
|
};
|