Skip to content

Commit

Permalink
chore: ⬆️ mos@1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed May 23, 2016
1 parent c411b0b commit bbff323
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 19 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Expand Up @@ -13,9 +13,6 @@ before_install:
install:
- npm install

script:
- npm test
- if [[ $TRAVIS_NODE_VERSION != "v0.10" ]]; then npm run test:md; fi;
after_success:
- npm run coveralls
- npm run semantic-release
12 changes: 6 additions & 6 deletions README.md
Expand Up @@ -21,11 +21,11 @@ npm i -S markdownscript
<!--@example('./example.js')-->
```js
'use strict'
const m = require('markdownscript')
const heading = m.heading
const paragraph = m.paragraph
var m = require('markdownscript')
var heading = m.heading
var paragraph = m.paragraph

const ast = heading({ depth: 1 }, [
var ast = heading({ depth: 1 }, [
paragraph(['Hello world!']),
])
console.log(JSON.stringify(ast, null, 2))
Expand Down Expand Up @@ -60,7 +60,7 @@ console.log(m('link', { url: 'http://google.com' }, ['Google']))
`m.[type]([attributes], [children])` - create a node

```js
const code = m.code
var code = m.code
console.log(code({ lang: 'js' }, ['void 0']))
//> { type: 'code',
// children: [ { type: 'text', value: 'void 0' } ],
Expand All @@ -70,7 +70,7 @@ console.log(code({ lang: 'js' }, ['void 0']))
`m.h[depth]([attributes], [children])` - create a heading node of the specified depth

```js
const h3 = m.h3
var h3 = m.h3
console.log(h3([paragraph(['Foo bar'])]))
//> { type: 'heading',
// children: [ { type: 'paragraph', children: [Object] } ],
Expand Down
12 changes: 6 additions & 6 deletions example.js
@@ -1,9 +1,9 @@
'use strict'
const m = require('.')
const heading = m.heading
const paragraph = m.paragraph
var m = require('.')
var heading = m.heading
var paragraph = m.paragraph

const ast = heading({ depth: 1 }, [
var ast = heading({ depth: 1 }, [
paragraph(['Hello world!']),
])
console.log(JSON.stringify(ast, null, 2))
Expand All @@ -15,10 +15,10 @@ console.log(m('link', { url: 'http://google.com' }, ['Google']))

//! `m.[type]([attributes], [children])` - create a node

const code = m.code
var code = m.code
console.log(code({ lang: 'js' }, ['void 0']))

//! `m.h[depth]([attributes], [children])` - create a heading node of the specified depth

const h3 = m.h3
var h3 = m.h3
console.log(h3([paragraph(['Foo bar'])]))
7 changes: 3 additions & 4 deletions package.json
Expand Up @@ -10,9 +10,8 @@
"main": "dist/index.js",
"jsnext:main": "index.js",
"scripts": {
"test:md": "mos test",
"test": "mocha --compilers js:babel-register && npm run lint",
"lint": "eslint lib/**/*.js index.js",
"test": "mocha --compilers js:babel-register && npm run lint && mos test",
"lint": "eslint index.js index.spec.js example.js",
"commit": "git-cz",
"coverage": "istanbul cover -x \"**/*.spec.js\" node_modules/mocha/bin/_mocha -- --compilers js:babel-register -R spec",
"precoveralls": "istanbul cover -x \"**/*.spec.js\" node_modules/mocha/bin/_mocha --report lcovonly -- --compilers js:babel-register -R spec && npm i coveralls@2",
Expand Down Expand Up @@ -65,7 +64,7 @@
"ghooks": "^1.2.1",
"istanbul": "^1.0.0-alpha.2",
"mocha": "^2.3.4",
"mos": "^1.1.1",
"mos": "^1.2.0",
"semantic-release": "^4.3.5",
"tonic-example": "^0.2.0",
"validate-commit-msg": "^2.6.1"
Expand Down

0 comments on commit bbff323

Please sign in to comment.