Skip to content

Commit

Permalink
Merge pull request #3 from jstransformers/boilerplate
Browse files Browse the repository at this point in the history
Boilerplate
  • Loading branch information
RobLoach committed Jun 30, 2015
2 parents 58eba44 + 2ce9108 commit 0887427
Show file tree
Hide file tree
Showing 12 changed files with 103 additions and 92 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
33 changes: 22 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
lib-cov
*.seed
# Logs
logs
*.log
*.csv
*.dat
*.out
*.pid
*.gz

# Runtime data
pids
logs
results
npm-debug.log
*.pid
*.seed

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# Commenting this out is preferred by some people, see
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules
/test/output.txt

# Users Environment Variables
.lock-wscript
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,11 @@ node_js:
- "0.12"
- "iojs"

after_success: npm run coveralls
after_success:
- npm run coverage
- npm i coveralls
- cat ./coverage/lcov.info | coveralls

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

## v0.1.0: May 29th, 2015

- Update Boilerplate

## v0.0.4: March 29th, 2015

- Update mustache to 2.0.0
Expand Down
19 changes: 0 additions & 19 deletions LICENSE

This file was deleted.

21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# The MIT License (MIT)

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
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in
> all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
> SOFTWARE.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
# jstransformer-mustache

Transform Mustache templates into HTML.
[Mustache](https://github.com/janl/mustache.js) support for [JSTransformers](http://github.com/jstransformers).

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

## Installation

npm install jstransformer-mustache

## API

```js
var mustache = require('jstransformer')(require('jstransformer-mustache'))

var locals = {
name: "World"
};

mustache.render('Hello, {{name}}!</h1>', locals).body
//=> 'Hello, World!'
```

## License

MIT
MIT
31 changes: 14 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,30 @@
{
"name": "jstransformer-mustache",
"version": "0.0.4",
"description": "Transform Mustache templates into HTML.",
"version": "0.1.0",
"description": "Mustache.js support for JSTransformers.",
"keywords": [
"jstransformer",
"mustache"
"jstransformer"
],
"files": [
"index.js"
],
"dependencies": {
"mustache": "~2.0.0"
"mustache": "^2.1.2"
},
"devDependencies": {
"coveralls": "^2.11.2",
"istanbul": "^0.3.5"
"test-jstransformer": "^1.0.0"
},
"scripts": {
"test": "node test",
"coverage": "istanbul cover test",
"coveralls": "npm run coverage && cat ./coverage/lcov.info | coveralls"
"test": "test-jstransformer",
"coverage": "test-jstransformer coverage"
},
"files": [
"index.js",
"README.md",
"LICENSE",
"History.md"
],
"repository": {
"type": "git",
"url": "https://github.com/jstransformers/jstransformer-mustache.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 @@
[]
41 changes: 0 additions & 41 deletions test/index.js

This file was deleted.

7 changes: 7 additions & 0 deletions test/locals.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": {
"first": "Michael",
"last": "Jackson"
},
"age": "RIP"
}
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 0887427

Please sign in to comment.