Skip to content

Commit

Permalink
Merge pull request #25 from jstransformers/update
Browse files Browse the repository at this point in the history
Update Marko and Boilerplate
  • Loading branch information
RobLoach committed Jun 2, 2016
2 parents 49f134a + 70e0792 commit d20ac0b
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 14 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
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ language: node_js
sudo: false

node_js:
- "0.10"
- "0.12"
- "iojs"
#- "0.10"
#- "0.12"
- "4"
- "5"

after_success:
- npm run coverage
Expand Down
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: 2016-06-02

- Update to `marko@^3.1.7`
- Update Boilerplate

## v0.0.1: 2015-06-02

- Initial release
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: 10 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jstransformer-marko",
"version": "0.0.2",
"version": "0.1.0",
"description": "Marko support for JSTransformers.",
"keywords": [
"jstransformer",
Expand All @@ -18,13 +18,19 @@
"test-jstransformer": "^1.0.0"
},
"scripts": {
"test": "test-jstransformer",
"coverage": "test-jstransformer coverage"
"coverage": "test-jstransformer coverage",
"test": "test-jstransformer"
},
"engines": {
"node": ">=0.10.36"
},
"repository": {
"type": "git",
"url": "https://github.com/jstransformers/jstransformer-marko.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/expected.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><html lang="en"><head><title>Marko Templating Engine</title></head><body><h1>Hello World!</h1><ul><li>Blue</li><li>White</li><li>Red</li></ul></body></html>
1 change: 0 additions & 1 deletion test/expected.txt

This file was deleted.

12 changes: 11 additions & 1 deletion test/input.marko
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
Hello, ${data.name}!
<!DOCTYPE html>
html lang="en"
head
title - Marko Templating Engine
body
h1 - Hello ${data.name}!
ul if(notEmpty(data.colors))
li for(color in data.colors)
${color}
div else
- No colors!
7 changes: 6 additions & 1 deletion test/locals.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"name": "World"
"name": "World",
"colors": [
"Blue",
"White",
"Red"
]
}

0 comments on commit d20ac0b

Please sign in to comment.