Hey all,
For the last few months I've been using a couple tools that have helped my development on my client projects.
The most notable two are Sass and Browsersync. They are probably the most useful things I've ever come across.
I recorded a quick video to show you how I use it.
Here's the link: https://max-nachamkin.wistia.com/medias/dkie2dngja
For those who are familiar with Node and Gulp, I attached the child theme with my Gulpfile and the SASS template I created for MD so that you can get started in your own child theme.
For those who aren't familiar with Node and Gulp, here's what you'll want to do to get setup:
Anyways, thought I'd share as this has been such a help for me in developing. No more saving/uploading the files to FTP all the time, and SASS + BrowserSync just saves a tremendous amount of time on larger projects.
Cheers,
Max
md-child-theme.zip
For the last few months I've been using a couple tools that have helped my development on my client projects.
The most notable two are Sass and Browsersync. They are probably the most useful things I've ever come across.
I recorded a quick video to show you how I use it.
Here's the link: https://max-nachamkin.wistia.com/medias/dkie2dngja
For those who are familiar with Node and Gulp, I attached the child theme with my Gulpfile and the SASS template I created for MD so that you can get started in your own child theme.
For those who aren't familiar with Node and Gulp, here's what you'll want to do to get setup:
- Install MAMP and get a local dev server up and running. The free version works great.
- Install Wordpress on the MAMP server you just created.
- Upload the MD theme & activate the child theme on there.
- Install Node on your machine. The latest LTS release will work fine.
- Go to command line and navigate to your MD child theme.
- Run the command npm install gulp gulp-util gulp-sass gulp-cssbeautify node-neat browser-sync
- Once everything installs perfectly (which it may not on the first try, you may have to deal with random errors setting everything up and debug as you go), make sure MAMP Apache is set to port 1337 (because you're an elite mofo, don't forget). Restart the MAMP server and get it up and running, pointed to your local WP install.
- In the command line, under your child theme directory, run gulp watch. Make sure you downloaded my child theme below and have either put those files into your own child theme, or started a new one with that template. This command will automatically launch a browser window with Browsersync activated.
- Edit your SASS file (style.scss in the scss folder), and save it. Watch the magnificence change real-time in your browser, and on your phone if you point it to that localhost URL. Google Sass tutorials for more about how Sass works.
Anyways, thought I'd share as this has been such a help for me in developing. No more saving/uploading the files to FTP all the time, and SASS + BrowserSync just saves a tremendous amount of time on larger projects.
Cheers,
Max
md-child-theme.zip