Skip to content

Commit c6dc3f1

Browse files
committed
Add README
1 parent 3cad12b commit c6dc3f1

File tree

3 files changed

+39
-10
lines changed

3 files changed

+39
-10
lines changed

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Babel (6to5) Plugin
2+
===
3+
4+
A [Babel](https://babeljs.io/) loader plugin for [RequireJS](http://requirejs.org).
5+
6+
Installation
7+
---
8+
9+
```
10+
$ npm install -g bower
11+
$ bower install requirejs-babel
12+
```
13+
14+
Usage
15+
---
16+
17+
Add the paths to configuration:
18+
19+
```javascript
20+
paths: {
21+
es6: '...path_to_bower/requirejse-babel/es6',
22+
babel: '...path_to_bower/requirejse-babel/babel-4.6.6.min'
23+
}
24+
```
25+
26+
Reference files via the es6! plugin name:
27+
```javascript
28+
define(['es6!your-es6-module'], function(module) {
29+
// ...
30+
});
31+
```
32+

bower.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "requirejs-babel",
3-
"version": "0.0.0",
3+
"version": "0.0.1",
44
"authors": [
5-
"mikach <[email protected]>"
5+
"Michael <[email protected]>"
66
],
77
"description": "An AMD loader plugin for Babel",
88
"main": "es6.js",
@@ -16,10 +16,7 @@
1616
],
1717
"license": "MIT",
1818
"ignore": [
19-
"**/.*",
20-
"node_modules",
21-
"bower_components",
22-
"test",
23-
"tests"
19+
"demo",
20+
"package.json"
2421
]
2522
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "requirejs-babel",
3-
"version": "0.0.0",
4-
"description": "",
3+
"version": "0.0.1",
4+
"description": "An AMD loader plugin for Babel",
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1"
88
},
9-
"author": "",
9+
"author": "Michael <[email protected]>",
1010
"license": "MIT"
1111
}

0 commit comments

Comments
 (0)