![]() When distributing the software, the best effort is made to explain the purchasing policy to all users of the software who don't already have a license. No fee is charged for distibution of the software Permission to use, copy, modify, and/or distribute this software for any purpose is hereby granted, free of charge, subject to the following conditions:Īll copies retain the above copyright notice, the above purchasing policy notice and this permission notice unmodified Īll copies retain the name of the software (LiveReload), the name of the author (Andrey Tarantsov) and the contact information (including, but not limited to, pointers to and URLs) unmodified This software is available under the Open Community Indie Software License: share the purchased or custom-built binaries (with unmodified license and contact info), provided that the purchasing policy is explained to all potential users.Users that don't purchase a license are encouraged to apply for a free one at The users are free to: LicenseĬopyright 2012–2015, Andrey Tarantsov - policy notice: All users of the software are expected to purchase a license from Andrey Tarantsov unless they have a good reason not to pay. If you’re unfamiliar with regular expressions, you can play around with this one here.LiveReload is an essential tool for web developers, and is currently the top paid developer tool on the Mac App Store in many countries. In this example, the regular expression matches all files that are in the directory less and have a. watch takes a regular expression that matches all files in the project. ![]() This example shows a guard :less block with a watch method. This may seem a little confusing, but you’ll understand in a minute. It uses regular expressions and the watch method inside of a block. Less’ config is a little different than guard-coffeescript and guard-sass. When you save any *.coffee file in the coffee directory, Guard will compile it to the js directory using the same name. Notice in the terminal that when you save the file, it generates the JavaScript in the js directory: guard(main)>Ģ0:54:21 - INFO - Compile coffee/ffeeĢ0:54:21 - INFO - 08:54:21 PM Successfully generated js/test.js Start up guard and see it watch our files: $ bundle exec guardĪdd a little CoffeeScript to our project and save: # file: coffee/ffee ![]() This way, CoffeeScript lives in the coffee directory and is compiled to the js directory. Notice that we added :output to the options. That’s very nice, but we keep our CoffeeScript in a different directory than the compiled JavaScript, so let’s change the file: guard 'coffeescript', :input => 'coffee', :output => 'js' Guard 'coffeescript', :input => 'app/assets/javascripts' Let’s take a look inside: # A sample Guardfile This generates a configuration file ( Guardfile) for your “guards” (plugins). Let’s initialize Guard with CoffeeScript: $ bundle exec guard init coffeescript With guard-coffeescript you no longer have to decide between ugly JavaScript or an ugly compile process with CoffeeScript. Admit it, and the Ruby-esque syntax of CoffeeScript lured you from the beginning. Also, the gem therubyracer is required by guard-less, but not used as a dependency, so we have to add it ourselves. (see issue #16) You can try it without the git option, but I cannot guarantee an error-free installation. This may change, but right now, this is how it is. Note: At this point in time, it is necessary to build the guard-less gem from git because the maintainers have not pushed the latest version to RubyGems. Gem 'guard-less', git: 'git:///guard/guard-less.git' Here’s what your Gemfile should look like if you’re using all of the plugins: source '' Once you learn how to set up these 5 plugins, you’ll be able to setup the other 267+ available guard plugins.įor most projects, it’s advisable to have a Gemfile for dependencies. In this tutorial, we’re going to discuss the following plugins: (you will need to install them: gem install PLUGIN)Įach plugin is a little different, but also a lot the same. Next, you have to decide which plugins you want. Installing Guard is as easy as gem install guard.
0 Comments
Leave a Reply. |