├── .gitignore ├── .prettierrc ├── LICENSE ├── README.md ├── meta.js ├── package.json └── template.md /.gitignore: -------------------------------------------------------------------------------- 1 | dist 2 | # Logs 3 | logs 4 | *.log 5 | npm-debug.log* 6 | yarn-debug.log* 7 | yarn-error.log* 8 | package-lock.json 9 | # Runtime data 10 | pids 11 | *.pid 12 | *.seed 13 | *.pid.lock 14 | 15 | # Directory for instrumented libs generated by jscoverage/JSCover 16 | lib-cov 17 | 18 | # Coverage directory used by tools like istanbul 19 | coverage 20 | 21 | # nyc test coverage 22 | .nyc_output 23 | 24 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 25 | .grunt 26 | 27 | # Bower dependency directory (https://bower.io/) 28 | bower_components 29 | 30 | # node-waf configuration 31 | .lock-wscript 32 | 33 | # Compiled binary addons (https://nodejs.org/api/addons.html) 34 | build/Release 35 | 36 | # Dependency directories 37 | node_modules/ 38 | jspm_packages/ 39 | 40 | # TypeScript v1 declaration files 41 | typings/ 42 | 43 | # Optional npm cache directory 44 | .npm 45 | 46 | # Optional eslint cache 47 | .eslintcache 48 | 49 | # Optional REPL history 50 | .node_repl_history 51 | 52 | # Output of 'npm pack' 53 | *.tgz 54 | 55 | # Yarn Integrity file 56 | .yarn-integrity 57 | 58 | # dotenv environment variables file 59 | .env 60 | 61 | # next.js build output 62 | .next 63 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true, 3 | "semi": true, 4 | "printWidth": 120, 5 | "tabWidth": 4, 6 | "bracketSpacing": false, 7 | "overrides": [ 8 | { 9 | "files": ".prettierrc", 10 | "options": {"parser": "json"} 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 三水清 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # nodeppt default template 2 | 3 | nodeppt 默认(内置)的初始化模板 4 | 5 | ### Usage 6 | ```bash 7 | nodeppt new slide.md -t ksky521/nodeppt-template-default 8 | ``` -------------------------------------------------------------------------------- /meta.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | complete: (data, {chalk}) => { 3 | /* eslint-disable*/ 4 | console.log( 5 | chalk.cyan(` 6 | ┌────────────────────────────────${`─`.repeat(data.filename.length)}──┐ 7 | │ To get started: ${chalk.yellow(`nodeppt serve ${data.filename}`)} │ 8 | └────────────────────────────────${`─`.repeat(data.filename.length)}──┘ 9 | 10 | `) 11 | ); 12 | /* eslint-enable*/ 13 | }, 14 | prompts: { 15 | title: { 16 | type: 'string', 17 | required: true, 18 | label: 'Input your presentation topic: ' 19 | }, 20 | 21 | speaker: { 22 | type: 'string', 23 | label: 'Input your name: ', 24 | default: '{{username}}' 25 | } 26 | } 27 | }; 28 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nodeppt-template-default", 3 | "version": "1.0.2", 4 | "description": "nodeppt template", 5 | "main": "meta.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/ksky521/nodeppt-template-default.git" 12 | }, 13 | "keywords": [], 14 | "author": "ksky521", 15 | "license": "MIT", 16 | "bugs": { 17 | "url": "https://github.com/ksky521/nodeppt-template-default/issues" 18 | }, 19 | "homepage": "https://github.com/ksky521/nodeppt-template-default#readme" 20 | } 21 | -------------------------------------------------------------------------------- /template.md: -------------------------------------------------------------------------------- 1 | title: {{title}} 2 | speaker: {{speaker}} 3 | plugins: 4 | - echarts 5 | 6 | 7 | 8 | # {{title}} {.text-landing.text-shadow} 9 | 10 | By {{speaker}} {.text-intro} 11 | 12 | [:fa-github: Github](https://github.com/ksky521/nodeppt){.button.ghost} --------------------------------------------------------------------------------