Update README.md

Section about using JavaScript instead of CoffeeScript
This commit is contained in:
Riku Rouvila
2014-04-24 13:54:33 +03:00
parent 4b6192b37c
commit 09d4fe4d06

View File

@@ -55,6 +55,22 @@ Now your should be able to require jQuery in your coffee files
$ = require 'jquery'
## Using JavaScript instead of CoffeeScript
Remove coffeeify transform from package.json file (browserify.transform field)
``````
"browserify": {
"transform": ["browserify-shim"]
}
``````
and change the ".coffee" extension to ".js" from gulpfile.coffee
``````
paths =
scripts:
source: './src/coffee/main.js'
`````
You also can change the directory name to scripts or what ever.
## Development guidelines
* **public** - directory should be dedicated only to compiled/copied files from **src** - directory.