-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit fb76455
Showing
8 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
node_modules/ | ||
lib-cov | ||
*.seed | ||
*.log | ||
*.csv | ||
*.dat | ||
*.out | ||
*.pid | ||
*.gz | ||
|
||
pids | ||
logs | ||
results | ||
|
||
npm-debug.log | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- "4" | ||
|
||
script: | ||
- "npm run test-travis" | ||
|
||
after_script: | ||
- "npm install coveralls && cat coverage/lcov.info | coveralls" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2015 Jesse B. Hannah | ||
|
||
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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Amperize | ||
|
||
[![Version npm][version]](http://browsenpm.org/package/amperize) | ||
[![Build Status][build]](https://travis-ci.org/jbhannah/amperize) | ||
[![Dependencies][david]](https://david-dm.org/jbhannah/amperize) | ||
[![Coverage Status][cover]](https://coveralls.io/r/jbhannah/amperize?branch=master) | ||
|
||
[version]: http://img.shields.io/npm/v/amperize.svg?style=flat | ||
[build]: http://img.shields.io/travis/jbhannah/amperize/master.svg?style=flat | ||
[david]: https://img.shields.io/david/jbhannah/amperize.svg?style=flat | ||
[cover]: http://img.shields.io/coveralls/jbhannah/amperize/master.svg?style=flat | ||
|
||
[AMP][] up your plain HTML. Replaces regular HTML tags with their equivalent | ||
[AMP components][]. | ||
|
||
[AMP]: https://github.com/ampproject/amphtml | ||
[AMP components]: https://github.com/ampproject/amphtml/blob/master/spec/amp-html-components.md |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
'use strict'; | ||
|
||
function Amperize() {} | ||
|
||
module.exports = Amperize; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"name": "amperize", | ||
"version": "0.0.1", | ||
"description": "AMP up your plain HTML", | ||
"main": "./lib/amperize", | ||
"scripts": { | ||
"test": "mocha $(find test -name '*.test.js')", | ||
"watch": "mocha --watch $(find test -name '*.test.js')", | ||
"coverage": "istanbul cover ./node_modules/.bin/_mocha -- $(find test -name '*.test.js')", | ||
"test-travis": "istanbul cover node_modules/.bin/_mocha --report lcovonly -- $(find test -name '*.test.js')" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/jbhannah/amperize.git" | ||
}, | ||
"keywords": [ | ||
"amp", | ||
"html" | ||
], | ||
"author": "Jesse B. Hannah <jesse@jbhannah.net>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/jbhannah/amperize/issues" | ||
}, | ||
"homepage": "https://github.com/jbhannah/amperize#readme", | ||
"devDependencies": { | ||
"chai": "3.4.0", | ||
"istanbul": "0.4.0", | ||
"mocha": "2.3.3", | ||
"sinon": "1.17.2", | ||
"sinon-chai": "2.8.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
'use strict'; | ||
|
||
var chai = require('chai') | ||
, expect = chai.expect | ||
, sinon = require('sinon') | ||
, sinonChai = require('sinon-chai') | ||
, Amperize = require ('../lib/amperize') | ||
, amperize | ||
|
||
chai.use(sinonChai); | ||
chai.config.includeStack = true; | ||
|
||
describe('Amperize', function () { | ||
beforeEach(function () { | ||
amperize = new Amperize(); | ||
}); | ||
|
||
afterEach(function () { | ||
amperize = void 0; | ||
}); | ||
|
||
describe('is module', function () { | ||
it('which has a constructor', function () { | ||
expect(Amperize).to.be.a('function'); | ||
}); | ||
}); | ||
}); |