Lightweight optimized Gulp starter for October CMS theme development with Gulp 4, Browsersync, preprocessors (sass, scss, less, stylus), cleancss, uglify-es, autoprefixer, rsync and more. This Initial setup was a fork from : https://github.com/agragregra/OctoberCMS-Gulp-Starter and later was changed to adapt to this project
-
Step 1- Clone the git repository into your project (Example : localhost://project)
-
Step 2- Open CMD as ADMINISTRATOR (very important) and install gulp globally
npm install --global gulp-cli
-
Step 3- Via the CMD go into the root folder and write
npm install
-
Step 4- Upload all the cartridges to the devbox via the command line (no eclipse needed)
gulp upload
-
Step 5- To keep the project watch mode just write
gulp
Recommends using the following base directory structure for you theme:
themes/
— mytheme/ <= Theme starts here
— — pages/ <= Pages directory
— — — home.htm
— — layouts/ <= Layouts directory
— — — default.htm
— — partials/ <= Partials directory (Optional)
— — — header.htm
— — — footer.htm
— — content/ <= Content directory
— — — intro.htm
— — assets/ <= Assets directory
— — — css/
— — — — theme.min.css <= Minified styles
— — — js/
— — — — app.js <= Main user JavaScript file
— — — — theme.min.js <= Minified scripts
— — — images/
— — — sass/ <= Preprocessor folder (Maybe sass, scss, less, styl)
— — — — theme.sass <= Main user Sass file (Maybe theme.sass, theme.scss, theme.less or theme.styl)
— — — vendor/ <= Vendor scripts or styles (For example - jQuery, Bootstrap, etc..)
— — theme.yaml
-
Make proxy for live development with Browsersync
let localhost
-
Simple preprocessor selection (sass, scss, less, styl
let preprocessor
-
Simple selection of the current theme
let theme
-
Simple selection of file extensions to watch & reload -
let fileswatch
-
Better CSS -
gulp-clean-css
orgulp-autoprefixer
. Importing framework extras CSS into theme preprocessor file -
Better JS -
gulp-uglify-es
. Vendor scripts & framework extras plug into scripts functions. -
Better deploy with rsync -
gulp-rsync
- browsersync
- assets - Compile assets (CSS & JS)
- styles - Compile and concat CSS with selected preprocessor
- scripts - Compile, minify and concat JS with gulp-uglify-es & gulp-concat
- deploy - deploy changes on server with gulp-rsync
- gulp - The default command to start the environment
1.0.0 (Release date: 5/16/2017)
About version please check SemVer for versioning.
- Project developed by DidgeNation Crew
This project is licensed under the MIT License - see the LICENSE.md file for details
- Chuck Norris methodology
- Didgeridoo rules
Markdown Styling codes