All Projects → KnowTheCode → UpGulp

KnowTheCode / UpGulp

Licence: other
A Gulp Starter for your WordPress project

Programming Languages

javascript
184084 projects - #8 most used programming language
PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to UpGulp

monsieurpress
A minimal & lightweight WordPress starter theme using gulp
Stars: ✭ 39 (+34.48%)
Mutual labels:  gulp, wordpress-development, wordpress-boilerplate
WPKirk
A WP Bones skeleton Plugin
Stars: ✭ 28 (-3.45%)
Mutual labels:  wordpress-development, wordpress-boilerplate
starter-kit-theme
WordPress starter theme with a modern development stack for launching projects faster and easily
Stars: ✭ 25 (-13.79%)
Mutual labels:  wordpress-development, wordpress-boilerplate
dudestack
A toolkit for creating a new professional WordPress project with deployments. Originally based on Roots/bedrock.
Stars: ✭ 82 (+182.76%)
Mutual labels:  wordpress-development, wordpress-boilerplate
Wordpress Starter
📦 A starter template for WordPress websites
Stars: ✭ 26 (-10.34%)
Mutual labels:  gulp, wordpress-development
untheme
A blank WordPress theme for developers.
Stars: ✭ 82 (+182.76%)
Mutual labels:  wordpress-development, wordpress-boilerplate
air
A hyper-minimal WordPress starter theme for developers built with Tailwind CSS.
Stars: ✭ 45 (+55.17%)
Mutual labels:  wordpress-development, wordpress-boilerplate
WordPress-UIkit-Starter-Theme
A WordPress starter theme for developers using the frontend framework UIkit
Stars: ✭ 55 (+89.66%)
Mutual labels:  gulp, wordpress-development
Gulp Webpack Starter
Gulp Webpack Starter - fast static website builder. The starter uses gulp toolkit and webpack bundler. Download to get an awesome development experience!
Stars: ✭ 199 (+586.21%)
Mutual labels:  gulp, wordpress-development
wp-project-skeleton
A skeleton WordPress project to be used as a base for new WordPress projects.
Stars: ✭ 33 (+13.79%)
Mutual labels:  wordpress-development, wordpress-boilerplate
choerodon-front-boot
Choerodon front boot is a toolkit about front end package management, startup, compilation. It is mainly used to provide custom some configurations file to create a project of React that can be modified to some extent.
Stars: ✭ 27 (-6.9%)
Mutual labels:  gulp
fluentform
The fastest and easiest WordPress Contact Form Builder for WordPress.
Stars: ✭ 23 (-20.69%)
Mutual labels:  wordpress-development
tinypng-free
Use the upload api of tinypng's homeage to compress images
Stars: ✭ 29 (+0%)
Mutual labels:  gulp
nginx-virtual-host-bash-script
Nginx Virtual Host Bash Script
Stars: ✭ 35 (+20.69%)
Mutual labels:  wordpress-development
gulp-shopify
Blank slate Shopify theme for Developers, packaged with Gulp.js for processing SCSS, JavaScript (ES6), images and fonts. Made to support Online Store 2.0 features and Shopify CLI.
Stars: ✭ 142 (+389.66%)
Mutual labels:  gulp
brush
An amazing scaffolding for developing database-driven websites, applications and APIs. Built on Laravel Lumen Framework, MySQL and Angular.
Stars: ✭ 23 (-20.69%)
Mutual labels:  gulp
wp-console
A Wordpress CLI. A tool to generate boilerplate code, interact with and debug Wordpress.
Stars: ✭ 18 (-37.93%)
Mutual labels:  wordpress-boilerplate
linter-sniffer-pretty-printer
Collection of packages and configs to lint and format code in your WordPress project.
Stars: ✭ 35 (+20.69%)
Mutual labels:  wordpress-development
gulp-bourbon-neat-example
A sample project for getting started with Bourbon and Neat with Gulp
Stars: ✭ 38 (+31.03%)
Mutual labels:  gulp
dockervel
Laravel development environment in Docker containers
Stars: ✭ 30 (+3.45%)
Mutual labels:  gulp

UpGulp

UpGulp is our gulp module. It contains all of the configuration, setup, and tasks for processing themes, plugins, and whatever else.

Features

It's modular. Shocking, I know. But navigating one big-butt gulpfile.js is a pain in the backside.

Instead, we split our gulp tasks out in the assets/gulp/tasks folder. The main file gulpfile.js then loads up all of the configuration (which is stored in config/gulp/config.js), plugins, and requirements. Then it calls each of the tasks. Think of it as your Controller or better yet, Task Manager.

It includes:

  • Scripts
    • Concatentates all the scripts found in assets/js/*.js
    • Renames the combined file with a .min suffix
    • Minifies that file
    • And then stores it into the configured distribution folder, default is assets/dist/
    • You can name the file whatever you want via the Configuration file
  • Styles
    • Uses gulp-sourcemaps - for debug ease
    • Loads in both Bourbon and Neat
    • Process with gulp-sass
    • Runs postcss
    • Includes sass-rem
    • Autoprefix to ensure we get the cross-browser prefixes
    • Includes linting using gulp-sass-lint
    • Copy and rename the full stylesheet with a .min suffix
    • It minifies to optimize the stylesheet
    • If this is a theme, then it moves both the .css and .min.css files to the root of the theme folder.
  • Translations
    • i18n translations are included (NEEDS TESTING)
  • Sprites and icons optimizations
  • Imagine optimizations

Sass Features

This gulp starter has Bourbon, Neat, and Sass REM baked into it. To use these in your style.scss file and project, do the following:

@import 'bourbon';
@import 'neat';
@import '../../node_modules/sass-rem/rem';

REM is being deprecated out of Bourbon. Using the sass-rem module lets us import the functionality we want. To convert pixels into rems, add the following into your Sass declaration:

@include rem( font-size, 18px );

You can learn more about the syntax in the documentation;

Installation:

  1. Open up terminal and navigate to the theme, plugin, or proper folder.
  2. Then type: git clone https://github.com/KnowTheCode/UpGulp.git. The repository is loaded into a new subfolder called UpGulp.
  3. Now it's time to move the contents of UpGulp folder into the root of your plugin or theme.
    • Move gulpfile.js, package.json, config/gulp, and assets/gulp
    • Move these resources into the root of your theme or plugin
  4. Type npm install. It will automatically install all of the modules specified in the package.json file.
  5. Change the configuration parameters in the variable moduleSettings as found in config/gulp/config.js. You will want to change:
    • moduleSettings.package -> change to the package's name
    • moduleSettings.domain -> change to the domain name
    • moduleSettings.isTheme -> If this is a theme, then set it to true.
    • moduleSettings.i18n -> Define the i18n parameters

Run it

To run it, open terminal and type gulp watch. There are various watchers available including:

  • gulp scripts
  • gulp styles
  • gulp sprites
  • gulp i18n
  • gulp icons
  • gulp imagemin

Credit

This gulp setup is inspired by WebDev Studio's setup.

Contributions

All feedback, bug reports, and pull requests are welcome.

TODOs

There are things we need to improve and test in this starter module including:

  • Automate the installation process
  • Test sprites and translations
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].