Skip to content

Commit

Permalink
Add babili support
Browse files Browse the repository at this point in the history
  • Loading branch information
yadickson committed Oct 19, 2017
1 parent f4c99cd commit eb0a85e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ $ bower install --save-dev chai@~4.1.2
$ bower install --save-dev angular-mocks@~1.3.20
```

### Install compiler dependencies

```
$ npm install --save-dev babel-cli babel-preset-env
$ npm install --save-dev babel-preset-babili
```

### Install unit test/coverage tools

```
Expand All @@ -37,28 +44,22 @@ $ npm install --save-dev karma-coverage karma-istanbul
$ npm install --save-dev karma-mocha-reporter karma-junit-reporter
```

### Install compiler dependencies

```
$ npm install --save-dev babel-cli babel-preset-env
```

### Prepare application

```
$ bower install && npm install
```

### Test application
### Compiler application

```
$ npm test
$ npm run compiler
```

### Compiler application
### Test application

```
$ npm run compiler
$ npm test
```

### Register (previusly make a git tag version)
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"devDependencies": {
"angular-mocks": "^1.6.6",
"babel-cli": "^6.26.0",
"babel-preset-babili": "^0.1.4",
"babel-preset-env": "^1.6.1",
"bower": "^1.8.2",
"chai": "^4.1.2",
Expand All @@ -29,7 +30,7 @@
},
"scripts": {
"prepublish": "npm run compile",
"compile": "./node_modules/.bin/babel --presets env -d dist/ src/",
"compile": "./node_modules/.bin/babel --presets env,babili -d dist/ src/",
"pretest": "./node_modules/.bin/bower install",
"test": "./node_modules/.bin/karma start --single-run --browser PhantomJS",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"
Expand Down

0 comments on commit eb0a85e

Please sign in to comment.