Giter Site home page Giter Site logo

cakefile-template's Introduction

Cakefile Template

If you write a lot of coffeescript and get tired of setting up your build, watch and spec tasks, grab this Cakefile and put it in your project.

Install

# In your project directory...
curl https://raw.github.com/twilson63/cakefile-template/master/Cakefile >> Cakefile
## If that does not work... try
curl https://raw.githubusercontent.com/twilson63/cakefile-template/master/Cakefile >> Cakefile

Usage

Compiling

Put all of your coffee-script in the src folder, it will compile all coffee-script in your lib folder, using the build command.

cake build

Watching

If you want to compile as you write your code, invoke the watch command.

cake watch

Testing

If you want to run your tests, assuming you are using mocha.

cake test

Documenting

cake docs

Options

If you want to generate HTML5 maps when compiling (watching), add 'm' before compile or watch:

cake -m compile

clean will also take care of mapping files.

More information about mapping can be found on HTML5rocks or Coffeescript.org.

Have Fun!

cakefile-template's People

Contributors

gko avatar hypernumbers avatar matt3o12 avatar rcrichton avatar sukima avatar valtido avatar xentac avatar zeke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cakefile-template's Issues

Confusion over directory structure

The coffee command is a bit confusing. It normally will take a directory and output to another directory. In the case of this file that read from src and write to lib. The problem with this structure is that it only deals with coffee files. any other file in the src directory is ignored. For example a library, css or html file.

The other structure is to have the Cakefile in the same directory as the source maybe in a small project. In this situation each file locally would be placed in the files variable and clean would walk the tree for .js files when removing them.

These two scenarios are mutually exclusive with the current use of the coffee command. I'm unclear about how to fix this and would like to open a discussion.

The only idea I have is to force the src / lib structure and then walk the src directory either copying the file or compiling it depending on the file extension. This seems like a lot of work for such a simple concept. Ideas?

Idea: Release the code under the WTFPL

Description

The WTFPL is a highly permissive license that states that You just DO WHAT THE FUCK YOU WANT TO. I would say this license would be perfect for the code as it's mostly just templates and easily editable & tailorable code that can be used for any project.

Proposed Changes

  1. Add the text of the license to the repository as the file "copying"
  2. Append a line to the end of readme.md: (!http://www.wtfpl.net/wp-content/uploads/2012/12/wtfpl-badge-2.png! Licensed under the [WTFPL](http://www.wtfpl.net/).)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.