mirror of
https://github.com/koodiklinikka/koodiklinikka.fi.git
synced 2026-02-16 22:53:31 +00:00
Update README.md
Section about using JavaScript instead of CoffeeScript
This commit is contained in:
16
README.md
16
README.md
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user