Base styling repository for viur-vi
[submodule "sources/vi"] path = sources/vi url = https://github.com/viur-framework/viur-vi-styling.git
npm install @babel/core autoprefixer gulp gulp-load-plugins fs path gulp-less gulp-postcss postcss-zindex gulp-autoprefixer postcss-focus postcss-discard-comments gulp-clean-css gulp-join-media-queries gulp-rename gulp-sourcemaps gulp-babel gulp-concat gulp-uglify copy gulp-cheerio del gulp-imagemin gulp-flatten gulp-exec gulp-print gulp-filter gulp-uglify
most of these should be already installed if the project uses ignite with gulp
add this line to your gulpfile.js script
const viBuildTasks = require('./vi/vi_tasks');
the main task can be triggered via gulp vi
you can run each part of this script individually via:
gulp vi_js
gulp vi_editor
gulp vi_css
gulp vi_icons
gulp vi_images
. ├── deploy │ ├── .. │ ├── vi_plugins │ │ ├── test_plugin <-- each plugin has its own folder │ │ │ ├── static <-- static folder for plugin / can also contain embedsvg folder for icons │ │ │ └── style.less <-- vi_plugin less definitions │ │ ├── __init__.py <-- vi plugins registration │ │ └── vi_custom.less <-- less overrides / vi_plugin less imports │ ├── viur │ │ ├── vi │ │ │ ├── public │ │ │ │ ├── css <-- will be generated / a defaultset is part of viur-vi submodule │ │ │ │ ├── embedsvg <-- will be generated / a defaultset is part of viur-vi submodule │ │ │ │ ├── htmleditor <-- will be generated / a defaultset is part of viur-vi submodule │ │ │ │ ├── images <-- will be generated / a defaultset is part of viur-vi submodule │ │ │ │ ├── js <-- will be generated / a defaultset is part of viur-vi submodule │ │ │ │ └── .. │ │ │ └── .. │ . . │ . ├── sources │ ├── gulpfile.js <-- main gulpfile │ ├── embedsvg <-- project icons / icons subfolder should be the icons submodule │ │ └── .. │ ├── images <-- project images, will be copied to deploy/static/images │ │ └── .. │ ├── js <-- project js-scripts │ │ └── .. │ ├── less <-- project less styling │ │ └── .. │ ├── vi <-- viur-vi-styling submodule │ │ ├── ... │ │ └── vi_tasks.js <-- vi styling tasks . . .