diff --git a/README.md b/README.md index fde8d37..999bb8b 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,8 @@ noslide # How to use ``noslide`` ```js -var noslide = require('./lib/slide') - , theme = require('./lib/themes/Ptt'); +var noslide = require('./index').noslide + , theme = require('./index').themes.Ptt; const markdown = 'slides/example.md' diff --git a/index.js b/index.js index b92526b..45cc6c1 100644 --- a/index.js +++ b/index.js @@ -1,17 +1,26 @@ +/* + * slide + */ + +exports.noslide = require('./lib/slide'); + /* * Themes */ +themes = {}; + +themes.Ptt = require('./lib/themes/Ptt'); +themes.ZZZZZZZZZ9 = require('./lib/themes/ZZZZZZZZZ9'); +themes.F7 = require('./lib/themes/F7'); +themes.Lavchi = require('./lib/themes/Lavchi'); +themes.bill7437 = require('./lib/themes/bill7437'); +themes.ChinLan = require('./lib/themes/ChinLan'); +themes.email5566 = require('./lib/themes/email5566'); +themes.hiimlive = require('./lib/themes/hiimlive'); +themes.mayaman = require('./lib/themes/mayaman'); +themes.mini158 = require('./lib/themes/mini158'); +themes.segawar = require('./lib/themes/segawar'); +themes.sumade = require('./lib/themes/sumade'); +themes.XXXXGAY = require('./lib/themes/XXXXGAY'); -exports.Ptt = require('./lib/themes/Ptt'); -exports.ZZZZZZZZZ9 = require('./lib/themes/ZZZZZZZZZ9'); -exports.F7 = require('./lib/themes/F7'); -exports.Lavchi = require('./lib/themes/Lavchi'); -exports.bill7437 = require('./lib/themes/bill7437'); -exports.ChinLan = require('./lib/themes/ChinLan'); -exports.email5566 = require('./lib/themes/email5566'); -exports.hiimlive = require('./lib/themes/hiimlive'); -exports.mayaman = require('./lib/themes/mayaman'); -exports.mini158 = require('./lib/themes/mini158'); -exports.segawar = require('./lib/themes/segawar'); -exports.sumade = require('./lib/themes/sumade'); -exports.XXXXGAY = require('./lib/themes/XXXXGAY'); +exports.themes = themes; diff --git a/noslide b/noslide index e958f23..efb3e17 100755 --- a/noslide +++ b/noslide @@ -5,8 +5,8 @@ */ const commander = require('commander') - , noslide = require('./lib/slide.js') - , themes = require('./index'); + , noslide = require('./index').noslide + , themes = require('./index').themes; commander.version('1.0.0') .usage('[options] ') diff --git a/package.json b/package.json index c4705ea..d791845 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,19 @@ { "name": "noslide.js", "version": "1.0.0", - "description": "The Terminal slide tool", + "description": "A Simple Terminal slide tool", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "fly", + "repository": { + "type": "git", + "url": "https://github.com/crazyguitar/noslide.js" + }, + "bugs": { + "url": "https://github.com/crazyguitar/noslide.js/issues" + }, "license": "MIT", "bin": { "noslide": "./noslide"