coffee_without_nodejs 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +29 -8
- data/lib/coffee_without_nodejs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12fcb4053d05a53dcb59ebcd1363aea2a0cb267e
|
4
|
+
data.tar.gz: 9db0035e415b10be1585857d90f6785d505ff088
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ef014f7867eb5a27754513cf9c73b6379820d8cdf34cf4893c657c2a0a97bb39ee96e884017cf344f8e042d54fd3e4b0590fa6666d28d11c1ae06dbb8de7190
|
7
|
+
data.tar.gz: 29fdfded99b3b208ea160c341368f9be9d311d21eefb662568c3678e60ddc30d30a2057f3b3ac52639065d0953af747679533ffb65e19173f7b5d16c67457211
|
data/README.md
CHANGED
@@ -23,28 +23,49 @@ Install via Rubygems
|
|
23
23
|
|
24
24
|
$ gem install coffee_without_nodejs
|
25
25
|
|
26
|
-
... or add
|
26
|
+
... or add in Gemfile
|
27
27
|
|
28
28
|
gem "coffee_without_nodejs"
|
29
29
|
|
30
30
|
## Usage
|
31
31
|
|
32
|
-
Create a directory `coffee` in you Project root, add any coffee script and directory as you want.
|
33
|
-
And than, run `coff` in yours Project root.
|
34
|
-
|
35
32
|
$ coff
|
36
33
|
|
37
34
|
Or ...
|
38
35
|
|
39
|
-
|
36
|
+
$ coff some_coffee_directory
|
37
|
+
|
38
|
+
This will create corresponding js and source map file in same directory as coffee file live in.
|
39
|
+
|
40
|
+
[](http://zw963.github.io/snapshot11.png)
|
41
|
+
|
42
|
+
If one directory named 'coffee' in you project root, and run `coff` in project root.
|
43
|
+
|
44
|
+
$ ls
|
45
|
+
coffee/
|
46
|
+
|
47
|
+
$ coff coffee
|
48
|
+
|
49
|
+
[](http://zw963.github.io/snapshot14.png)
|
40
50
|
|
41
|
-
|
51
|
+
will create two new `js` `.map` directory the same level as `coffee` directory,
|
52
|
+
with cloned directory hierarchy, store js and source map individually.
|
42
53
|
|
54
|
+
Or ...
|
55
|
+
|
56
|
+
You always can provide one or more `some_file.coffee' file as arguments.
|
43
57
|
This will output compiled js content to STDOUT with very pretty format.
|
44
58
|
|
59
|
+
$ coff some_path/file1.coffee
|
60
|
+
|
61
|
+
[](http://zw963.github.io/snapshot11.png)
|
62
|
+
|
63
|
+
You still can use redirect `coff some_path/file1.coffee > another_path/file2.js` to
|
64
|
+
save literal js outout to file2.js
|
65
|
+
|
45
66
|
Or ...
|
46
67
|
|
47
|
-
`coff` command only support one
|
68
|
+
`coff` command only support one argument `-e`.
|
48
69
|
|
49
70
|
$ coff -e 'x = 100'
|
50
71
|
var x;
|
@@ -61,7 +82,7 @@ You can found a lot of useful and interesting scripts here.
|
|
61
82
|
|
62
83
|
## History
|
63
84
|
|
64
|
-
See [CHANGELOG](https://github.com/zw963/coffee_without_nodejs/blob/master/CHANGELOG) for details.
|
85
|
+
More update info, please See [CHANGELOG](https://github.com/zw963/coffee_without_nodejs/blob/master/CHANGELOG) for details.
|
65
86
|
|
66
87
|
## Contributing
|
67
88
|
|