Skip to content

Commit

Permalink
remove gulp workflow, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Sal Niro committed Jun 30, 2017
1 parent fdaf9b5 commit 5f4e478
Show file tree
Hide file tree
Showing 15 changed files with 499 additions and 515 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,4 +1,5 @@
.idea
node_modules
coverage
*.node
*.node
.coverage
7 changes: 7 additions & 0 deletions .npmignore
@@ -0,0 +1,7 @@
.coverage
.idea
node_modules
.gitignore
.travis.yml
.npmignore
test
9 changes: 4 additions & 5 deletions .travis.yml
@@ -1,9 +1,8 @@
language: node_js
node_js:
- "8"
- "7"
- "6"
- "5"
- "5.1"
- "4"
- "4.2"
- "4.1"
- "4.0"
after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
after_script: "cat ./.coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
21 changes: 10 additions & 11 deletions README.md
Expand Up @@ -20,11 +20,11 @@ npm install angular-tpl2js --save-dev
### inline(*path*, [*config*], *callback*)

```javascript
var tpl2js = require('angular-tpl2js');
let tpl2js = require('angular-tpl2js');

tpl2js.inline('/js/directive.js', function (err, result) {

// directive.js with inline template
// directive.js with inline template
});
```

Expand All @@ -34,25 +34,24 @@ tpl2js.inline('/js/directive.js', function (err, result) {

```javascript
// defaults
var config = {
include: false,
HTMLMinifier: {
collapseWhitespace: true,
removeComments: true
}
let config = {
include: false,
HTMLMinifier: {
collapseWhitespace: true,
removeComments: true
}
}
```

***

```javascript

tpl2js.inline('/js/directive.js', {include: true}, function (err, result) {

// directive.js with inline template: ng-include parsed
// directive.js with inline template: ng-include parsed
});
```

## Use With Gulp
## Usage With Gulp

Please use the [gulp-angular-tpl2js plugin](https://github.com/scniro/gulp-angular-tpl2js) for use with gulp.
20 changes: 0 additions & 20 deletions gulpfile.js

This file was deleted.

0 comments on commit 5f4e478

Please sign in to comment.