Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
RobLoach committed Jul 22, 2015
1 parent d7cb3c5 commit 3cacd21
Show file tree
Hide file tree
Showing 14 changed files with 57 additions and 60 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
charset = utf-8
end_of_line = lf
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

Expand Down
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ after_success:
- npm run coverage
- npm i coveralls
- cat ./coverage/lcov.info | coveralls

notifications:
email:
on_success: never
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v0.1.0: 2015-07-22

- Updated Boilerplate
- Updated Dust.js to 2.7.2

## v0.0.2: May 24, 2015

- Update dependencies
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The MIT License (MIT)

Copyright (c) 2015 [Rob Loach](http://robloach.net)
Copyright (c) 2015 [JSTransformers Team](https://github.com/orgs/jstransformers/people)

> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# jstransformer-dust

[Dust.js](https://github.com/linkedin/dustjs) support for [JSTransformers](http://github.com/jstransformers/jstransformer).
[Dust.js](http://github.com/linkedin/dustjs) support for [JSTransformers](http://github.com/jstransformers).

[![Build Status](https://img.shields.io/travis/jstransformers/jstransformer-dust/master.svg)](https://travis-ci.org/jstransformers/jstransformer-dust)
[![Dependency Status](https://img.shields.io/david/jstransformers/jstransformer-dust.svg)](https://david-dm.org/jstransformers/jstransformer-dust)
[![Coverage Status](https://img.shields.io/coveralls/jstransformers/jstransformer-dust/master.svg)](https://coveralls.io/r/jstransformers/jstransformer-dust?branch=master)
[![Dependency Status](https://img.shields.io/david/jstransformers/jstransformer-dust/master.svg)](http://david-dm.org/jstransformers/jstransformer-dust)
[![NPM version](https://img.shields.io/npm/v/jstransformer-dust.svg)](https://www.npmjs.org/package/jstransformer-dust)

## Installation
Expand All @@ -14,7 +14,7 @@
## API

```js
var foo = require('jstransformer')(require('jstransformer-foo'))
var dust = require('jstransformer')(require('jstransformer-dust'))

var locals = {
features: [
Expand All @@ -25,10 +25,12 @@ var locals = {
{name: "and more"}
]
};
foo.renderAsync('Dust does {#features}{name}{@sep}, {/sep}{/features}!', {}, locals).body
//=> 'Dust does async, helpers, filters, a little bit of logic, and more!'
dust.renderAsync('Dust does {#features}{name}{@sep}, {/sep}{/features}!', locals).then(function (result) {
result
//=> 'Dust does async, helpers, filters, a little bit of logic, and more!'
})
```

## License

MIT
MIT
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ var Promise = require('promise');

exports.name = 'dust';
exports.outputFormat = 'html';

exports.renderAsync = function(str, options, locals) {
return new Promise(function(fulfill, reject) {
dust.renderSource(str, locals, function(err, res) {
Expand All @@ -16,4 +17,4 @@ exports.renderAsync = function(str, options, locals) {
}
});
});
};
};
18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jstransformer-dust",
"version": "0.0.2",
"description": "Dust support for JS Transformers.",
"version": "0.0.3",
"description": "Dust support for JSTransformers.",
"keywords": [
"jstransformer",
"dust"
Expand All @@ -10,21 +10,23 @@
"index.js"
],
"dependencies": {
"dustjs-linkedin": "^2.5.1",
"dustjs-linkedin": "^2.7.2",
"promise": "^7.0.1"
},
"devDependencies": {
"istanbul": "^0.3.5",
"testit": "^2.0.2"
"test-jstransformer": "^1.0.0"
},
"scripts": {
"test": "node test",
"coverage": "istanbul cover test"
"test": "test-jstransformer",
"coverage": "test-jstransformer coverage"
},
"repository": {
"type": "git",
"url": "https://github.com/jstransformers/jstransformer-dust.git"
},
"author": "Rob Loach <robloach@gmail.com>",
"author": {
"name": "JSTransformers Team",
"url": "http://github.com/orgs/jstransformers/people"
},
"license": "MIT"
}
1 change: 1 addition & 0 deletions test/dependencies.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions test/expected.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Famous People<ul><li>Larry</li><li>Curly</li><li>Moe</li></ul>
41 changes: 0 additions & 41 deletions test/index.js

This file was deleted.

1 change: 1 addition & 0 deletions test/input.dust
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{title}<ul>{#names}<li>{name}</li>{/names}</ul>
14 changes: 14 additions & 0 deletions test/locals.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"title": "Famous People",
"names" : [
{
"name": "Larry"
},
{
"name": "Curly"
},
{
"name": "Moe"
}
]
}
1 change: 1 addition & 0 deletions test/options.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}

0 comments on commit 3cacd21

Please sign in to comment.