Maximize is Powerful, Flexible and Lightweight starter kit for Web Develoment using Gulp as Build System.
Maximize is a powerful, flexible and lightweight starter kit for web development. It's designed to be flexible and useful for various projects. The environment of Maximize is really simple to understand.
Here are some of the main features of Maximize:
- Gulp: Built-in HTTP Server with PHP and Browsersync support for live browser reloading.
- Gulp: Lints, minify and concatenates your JavaScipt files.
- Gulp: Compiles and minify your Sass files (.sass and .scss).
- Gulp: PostCSS for transforming CSS with JavaScript (default: rucksack-css and autoprefixer).
- Gulp: Sourcemaps for JavaScript & CSS.
- Gulp: Minify your images (PNG, JPEG, GIF and SVG).
- Gulp: Displacer for your Bower components (from the
bower_components
folder to the public folder). - Sass: Built-in Sass OOCSS setup.
- PHP: Basic built-in PHP application setup for faster front-end development.
In this documention you will find some helpful information about the use of this starter kit. If you have any questions about Maximize or if you find some grammer mistakes, then feel free to contact me at: info(at)cyrildewit.nl.
In this documentation:
Make sure these are installed first.
- Download the latest version of Maximize (using git clone, the download link or open in desktop).
git clone https://github.com/cyrildewit/maximize.git
- Click on the green button with 'Clone or download' at the top of GitHub.com. Then click on 'Download ZIP'.
- Click on the gree button with 'Clone or download' at the top of GitHub.com. Then click on 'Open in Desktop'.
- In bash/terminal/command line,
cd
into your project directory. - Run
npm install
to install the required packages. - When it's done installing, run one of the task runners to get going:
gulp
automatically compiles files and applies changes using BrowserSync.- See the full list of task in the next chapter!
Maximize offers you some useful tasks to simplify your development of web development projects. We highly recommend you to read the Gulpfile
chapter carefully.
Gulp is a build system, meaning that you can use it to automate common tasks in the development of a website. It's built on Node.js, so you can use JavaScript (or something like CoffeeScript, if you so choose) to define tasks.
gulp
gulp build-js
gulp watch:build-js
gulp jshint
gulp watch:jshint
gulp build-css
gulp watch:build-css
gulp build-img
gulp watch:build-img
gulp displace-bc
gulp clean-assets
gulp watch
gulp build
gulp watch:build
This task build the CSS, JS and image files, then starts a HTTP server with PHP and Browsersync support and then it will start a watcher.
This task executes the build
, browserSync
and watch
task.
subject | summary |
---|---|
Used packages |
|
Used customizable properties | none |
This task concatenates all the JavaScript files, gives it a header based upon the package.json
file. If the production environment variable is used, then it will also minify the output and gives it a prefix.
subject | summary |
---|---|
Used packages |
|
Used customizable properties | See the next table! |
property | type |
---|---|
configuration.scripts.toConcatenate | Array |
configuration.scripts.outputName | String |
configuration.scripts.uglifySettings | Object |
configuration.scripts.destination | String |
configuration.scripts.toScan | String |
This task lints all the JavaScript files and show the result inside the command line.
By using the prefixed task watch:jshint
, it will automatically be executed on change.
subject | summary |
---|---|
Used packages |
|
Used files |
|
Used customizable properties | See the next table! |
property | type |
---|---|
configuration.scripts.toScan | String |
This task compiles Sass to CSS, change the CSS with PostCSS and gives it a header based upon the package.json
file. If the production environment variable is used, then it will also minify the output and gives it a prefix.
By using the prefixed task watch:build-css
, it will automatically be executed on change.
subject | summary |
---|---|
Used packages |
|
Used files |
|
Used customizable properties | See the next table! |
property | type |
---|---|
configuration.styles.toCompile | String |
configuration.styles.sass | Object |
configuration.styles.postCSS.processors | Array |
configuration.styles.destination | String |
configuration.styles.toScan | String |
This task will minify images. It supports PNG, JPEG, GIF and SVG images.
By using the prefixed task watch:build-img
, it will automatically be executed on change.
subject | summary |
---|---|
Used packages |
|
Used customizable properties | See the next table! |
property | type |
---|---|
configuration.images.toScan | String |
configuration.images.destination | String |
This task displace the installed bower components. Fill in the exact files that you want to displace. The logic inside the task will found out what the destination is.
It currently supports the JavaScript extension .js
and the Cascading Style Sheets extension .css
. If you need more, please create and issue and we will add it in the next update.
subject | summary |
---|---|
Used packages |
|
Used customizable properties | See the next table! |
property | type |
---|---|
configuration.bower.components | Array |
This task deletes every file and folder inside the assets directory.
subject | summary |
---|---|
Used packages |
|
Used customizable properties | none |
This task will watch your: JavaScript files and build/lint them, Sass files and build them, images and build them and reload browserSync when you edit HTML & PHP files inside the public/
directory.
subject | summary |
---|---|
Used packages |
|
Used customizable properties | none |
This task executes the build-js
, build-css
, build-img
and displace-bc
task.
subject | summary |
---|---|
Used packages |
|
Used Customizable Properties | none |
This task starts a HTTP server with PHP and BrwoserSync support. It's build for the gulp
/ gulp default
task.
subject | summary |
---|---|
Used packages |
|
Used customizable properties | See the next table! |
property | type |
---|---|
configuration.server.base | String |
configuration.server.port | Number |
Write an explaination of the Sass OOCSS Setup Application Setup.
This feature is currently in development.
Write an explaination of the JavaScript Application Setup.
This feature is currently in development.
Write an explaination of the PHP Application Setup.
This feature is currently in development.
See the project GitHub issue tracker.
See the project GitHub milestone tracker.
See the changelog file
for more details.
- v1.0.0 | Initial version
The code is available under the MIT License - Created by Cyril de Wit