From 8e09ca3493a5d243c6fde712effd07d147223192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Sun, 27 Sep 2020 18:37:49 +0800 Subject: [PATCH] init --- .gitignore | 12 ++++++++++++ LICENSE | 21 +++++++++++++++++++++ Readme.md | 23 +++++++++++++++++++++++ index.js | 14 ++++++++++++++ package-lock.json | 27 +++++++++++++++++++++++++++ package.json | 14 ++++++++++++++ 6 files changed, 111 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 Readme.md create mode 100644 index.js create mode 100644 package-lock.json create mode 100644 package.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..351c0c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ + +.Spotlight-V100 +.Trashes +.DS_Store +.AppleDouble +.LSOverride +._* +.idea +.vscode + + +node_modules/ \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ab60297 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..3a72096 --- /dev/null +++ b/Readme.md @@ -0,0 +1,23 @@ +![module info](https://nodei.co/npm/@gm5/views.png?downloads=true&downloadRank=true&stars=true) + +# @gm5/views + +> @gm5框架的模板引擎拓展包. + +## 安装 + +```bash +npm install @gm5/views +``` + + +## 使用 + +```js +import Views from '@gm5/views' + +app.install(Views) + +``` + + diff --git a/index.js b/index.js new file mode 100644 index 0000000..d030be8 --- /dev/null +++ b/index.js @@ -0,0 +1,14 @@ +/** + * 模板引擎拓展包 + * @author yutent + * @date 2020/09/27 14:17:46 + */ + +import Smarty from 'smartyx' + +export default { + name: 'views', + install() { + // + } +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..c4a51ee --- /dev/null +++ b/package-lock.json @@ -0,0 +1,27 @@ +{ + "name": "@gm5/views", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "es.shim": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/es.shim/-/es.shim-2.0.1.tgz", + "integrity": "sha512-Ru8Xzwyp47D23AKjI7AbZE+4XS/08y21mE+bj9W79HaqO9ysWt2/vkzDB8XkNRPQAwsCiQqzXwxvLjZzseYLww==" + }, + "iofs": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/iofs/-/iofs-1.5.0.tgz", + "integrity": "sha512-ZOb9v/2vv9q12cgOehXBVXshw/u6U0WfEIjHWBLyP0RbQb8L9EH3338K9tv0NXWN2++MEhU1wSyNZVe+sBRo9w==" + }, + "smartyx": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/smartyx/-/smartyx-2.0.1.tgz", + "integrity": "sha512-SmX72EDI8UsstOx3ktjjHg+zaJRhWylz2i23zswwj/QS+HJCYqFL7pVo4ld7fZYYPjVkG1LbAwN19nFcZyHDhQ==", + "requires": { + "es.shim": "^2.0.0", + "iofs": "^1.4.0" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..f22f0c8 --- /dev/null +++ b/package.json @@ -0,0 +1,14 @@ +{ + "name": "@gm5/views", + "version": "1.0.0", + "description": "@gm5框架的模板引擎拓展包", + "type": "module", + "main": "index.js", + "author": "yutent ", + "repository": "https://github.com/bytedo/gmf.views.git", + "keywords": ["fivejs", "views", "smarty"], + "dependencies": { + "smartyx": "^2.1.0" + }, + "license": "MIT" +}