From be0fafaf46916b2e4edb36a7b551266ebcd2c4a8 Mon Sep 17 00:00:00 2001 From: Andy Edwards Date: Sun, 19 Feb 2017 12:27:55 -0600 Subject: [PATCH] feat(pollinate): add pollinate templates --- PROJECT-LICENSE | 22 ++++++++++++++++++++++ PROJECT-README | 9 +++++++++ README.md | 1 + package.json | 12 ++++++------ template.json | 22 ++++++++++++++++++++++ 5 files changed, 60 insertions(+), 6 deletions(-) create mode 100644 PROJECT-LICENSE create mode 100644 PROJECT-README create mode 100644 template.json diff --git a/PROJECT-LICENSE b/PROJECT-LICENSE new file mode 100644 index 0000000..cae09dd --- /dev/null +++ b/PROJECT-LICENSE @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) 2016-present {{ author }} + +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/PROJECT-README b/PROJECT-README new file mode 100644 index 0000000..fcf9746 --- /dev/null +++ b/PROJECT-README @@ -0,0 +1,9 @@ +# {{ name }} + +[![Build Status](https://travis-ci.org/{{ organization }}/{{ name }}.svg?branch=master)](https://travis-ci.org/{{ organization }}/{{ name }}) +[![Coverage Status](https://coveralls.io/repos/github/{{ organization }}/{{ name }}/badge.svg?branch=master)](https://coveralls.io/github/{{ organization }}/{{ name }}?branch=master) +[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) +[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) + +{{ description }} + diff --git a/README.md b/README.md index a0a13d3..906c048 100644 --- a/README.md +++ b/README.md @@ -23,3 +23,4 @@ This is my personal skeleton for creating an ES2015 library npm package. You ar * semantic-release * Travis CI * Coveralls + diff --git a/package.json b/package.json index 303d369..f2cd403 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "es2015-library-skeleton", + "name": "{{ name }}", "version": "0.0.0-development", - "description": "my personal skeleton for ES2015 library NPM packages", + "description": "{{ description }}", "main": "lib/index.js", "scripts": { "lint": "eslint src test", @@ -39,17 +39,17 @@ }, "repository": { "type": "git", - "url": "https://github.com/jedwards1211/es2015-library-skeleton.git" + "url": "https://github.com/{{ organization }}/{{ name }}.git" }, "keywords": [ "es2015" ], - "author": "Andy Edwards", + "author": "{{ author }}", "license": "MIT", "bugs": { - "url": "https://github.com/jedwards1211/es2015-library-skeleton/issues" + "url": "https://github.com/{{ organization }}/{{ name }}/issues" }, - "homepage": "https://github.com/jedwards1211/es2015-library-skeleton#readme", + "homepage": "https://github.com/{{ organization }}/{{ name }}#readme", "devDependencies": { "@jedwards1211/eslint-config": "^1.0.0", "@jedwards1211/eslint-config-flow": "^1.0.0", diff --git a/template.json b/template.json new file mode 100644 index 0000000..f525e36 --- /dev/null +++ b/template.json @@ -0,0 +1,22 @@ +{ + "organization": "jedwards1211", + "name": "es2015-library-skeleton", + "description": "my personal skeleton for ES2015 library NPM packages", + "author": "Andy Edwards", + "parse": [ + "PROJECT-README", + "PROJECT-LICENSE", + "package.json" + ], + "discard": [ + "README.md", + "LICENSE.md", + "template.json" + ], + "move": [ + { "PROJECT-README": "README.md" }, + { "PROJECT-LICENSE": "LICENSE.md" } + ], + "complete": "git remote rename origin skeleton && git checkout -b --squash master" +} +