You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+16-29
Original file line number
Diff line number
Diff line change
@@ -37,51 +37,38 @@ grunt.initConfig({
37
37
38
38
### Options
39
39
40
-
#### options.separator
41
-
Type: `String`
42
-
Default value: `', '`
40
+
#### options.visitors
41
+
Type: `Array`
42
+
Default value: `[]`
43
43
44
-
A string value that is used to do something with whatever.
45
-
46
-
#### options.punctuation
47
-
Type: `String`
48
-
Default value: `'.'`
49
-
50
-
A string value that is used to do something else with whatever else.
44
+
A list of visitors to apply when transpiling.
51
45
52
46
### Usage Examples
53
47
54
48
#### Default Options
55
-
In this example, the default options are used to do something with whatever. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result would be `Testing, 1 2 3.`
In this example, custom options are used to do something else with whatever else. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result in this case would be `Testing: 1 2 3 !!!`
49
+
In this example, the javascript written in ES6 will transpile classes, arrow funciton, and object short notation down to ES5 code.
This plugin supports all visitors exposed by [jstransform](https://github.com/facebook/jstransform) which are:
65
+
66
+
- class (declaration, expressions, extends, method, super)
67
+
- arrow functions
68
+
- object short notation
69
+
- rest params
70
+
- templates
71
+
85
72
## Contributing
86
73
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).
0 commit comments