Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Commit

Permalink
Adjust module require path 🎃
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyguitar committed Sep 3, 2016
1 parent 2b2e119 commit 1725a3e
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 18 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ noslide <your markdown>
# 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'
Expand Down
35 changes: 22 additions & 13 deletions index.js
Original file line number Diff line number Diff line change
@@ -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;
4 changes: 2 additions & 2 deletions noslide
Original file line number Diff line number Diff line change
Expand Up @@ -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] <markdown>')
Expand Down
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 1725a3e

Please sign in to comment.