From 7fc461aa28962eba15feaa106f8e7160585fb575 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Tue, 1 May 2018 14:17:51 +0800 Subject: [PATCH] chore: add license --- LICENSE | 43 +++++++++++++++++++++++++++++++++++++++++++ package.json | 26 +++++++++++++++++++++----- yarn.lock | 4 ++++ 3 files changed, 68 insertions(+), 5 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..18886e72 --- /dev/null +++ b/LICENSE @@ -0,0 +1,43 @@ +MIT License + +Copyright (c) 2018 LongYinan + +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. + +MIT License + +Copyright (c) 2018 GitHub + +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/package.json b/package.json index f3200d37..60b880a2 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,7 @@ { "name": "napi-rs", "version": "0.1.0", - "description": - "A minimal library for building compiled Node add-ons in Rust.", + "description": "A minimal library for building compiled Node add-ons in Rust.", "bin": { "napi": "scripts/napi.js" }, @@ -11,13 +10,20 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/atom/napi.git" + "url": "git@github.com:Brooooooklyn/napi-rs.git" }, + "maintainers": [ + { + "name": "LongYinan", + "email": "lynweklm@gmail.com", + "homepage": "https://github.com/Brooooooklyn" + } + ], "license": "MIT", "bugs": { - "url": "https://github.com/atom/napi/issues" + "url": "https://github.com/Brooooooklyn/napi-rs/issues" }, - "homepage": "https://github.com/atom/napi#readme", + "homepage": "https://github.com/Brooooooklyn/napi-rs#readme", "dependencies": { "minimist": "^1.2.0" }, @@ -28,5 +34,15 @@ "trailingComma": "all", "arrowParens": "always", "parser": "typescript" + }, + "files": [ + "scripts/napi.js", + "src/**", + "build.rs", + "Cargo.toml", + "Cargo.lock" + ], + "devDependencies": { + "prettier": "^1.12.1" } } diff --git a/yarn.lock b/yarn.lock index f67c49e0..ae851acd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5,3 +5,7 @@ minimist@^1.2.0: version "1.2.0" resolved "http://registry.npm.taobao.org/minimist/download/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" + +prettier@^1.12.1: + version "1.12.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.12.1.tgz#c1ad20e803e7749faf905a409d2367e06bbe7325"