Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
feat: make it compatible with mos@0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed May 13, 2016
1 parent ac83c47 commit 2e01606
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
10 changes: 3 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
'use strict'
module.exports = plugin
module.exports = (mos, md) => Object.assign(mos.scope, require('./lib')(md))

const renderInstallation = require('./lib/render-installation')

function plugin (markdown) {
return {
installation: opts => renderInstallation(Object.assign(opts || {}, markdown)),
}
module.exports.attributes = {
pkg: require('./package.json'),
}
1 change: 0 additions & 1 deletion index.spec.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
'use strict'
require('.')
10 changes: 10 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
'use strict'
module.exports = plugin

const renderInstallation = require('./render-installation')

function plugin (markdown) {
return {
installation: opts => renderInstallation(Object.assign(opts || {}, markdown)),
}
}
2 changes: 2 additions & 0 deletions lib/index.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict'
require('.')

0 comments on commit 2e01606

Please sign in to comment.