You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2020/04/16 11:07:44 UTC

[cordova-create] branch master updated: chore: various cleanup changes (#63)

This is an automated email from the ASF dual-hosted git repository.

erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-create.git


The following commit(s) were added to refs/heads/master by this push:
     new a399529  chore: various cleanup changes (#63)
a399529 is described below

commit a399529d4b2dc1cbf88f949f5fdc0d3f9101b0b2
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Thu Apr 16 20:07:34 2020 +0900

    chore: various cleanup changes (#63)
    
    * doc(README.md): update format & added npm install badge
    * doc(LICENSE): added missing copyright year
    * doc(NOTICE): added missing file
    * test(license): added missing licenses and remove ratignore
    * test(eslint): add missing newline
---
 .eslintignore                                         |  2 +-
 .ratignore                                            |  1 -
 LICENSE                                               |  5 +++--
 NOTICE                                                |  5 +++++
 README.md                                             |  8 ++++++--
 spec/templates/no_content_config.xml                  | 18 ++++++++++++++++++
 spec/templates/withsubdirectory/index.js              | 19 +++++++++++++++++++
 spec/templates/withsubdirectory_package_json/index.js | 19 +++++++++++++++++++
 8 files changed, 71 insertions(+), 6 deletions(-)

diff --git a/.eslintignore b/.eslintignore
index 7439d64..38ed2ee 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -1 +1 @@
-spec/templates/
\ No newline at end of file
+spec/templates/
diff --git a/.ratignore b/.ratignore
deleted file mode 100644
index 79c6997..0000000
--- a/.ratignore
+++ /dev/null
@@ -1 +0,0 @@
-spec
diff --git a/LICENSE b/LICENSE
index 8dada3e..b7f76dc 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,3 +1,4 @@
+
                                  Apache License
                            Version 2.0, January 2004
                         http://www.apache.org/licenses/
@@ -178,7 +179,7 @@
    APPENDIX: How to apply the Apache License to your work.
 
       To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "{}"
+      boilerplate notice, with the fields enclosed by brackets "[]"
       replaced with your own identifying information. (Don't include
       the brackets!)  The text should be enclosed in the appropriate
       comment syntax for the file format. We also recommend that a
@@ -186,7 +187,7 @@
       same "printed page" as the copyright notice for easier
       identification within third-party archives.
 
-   Copyright {yyyy} {name of copyright owner}
+   Copyright 2020 Apache Cordova
 
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
diff --git a/NOTICE b/NOTICE
new file mode 100644
index 0000000..d7aeaa0
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,5 @@
+Apache Cordova
+Copyright 2020 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
diff --git a/README.md b/README.md
index b6c6a02..2be6835 100644
--- a/README.md
+++ b/README.md
@@ -21,12 +21,14 @@
 
 # cordova-create
 
+[![NPM](https://nodei.co/npm/cordova-create.png)](https://nodei.co/npm/cordova-create/)
+
 [![Node CI](https://github.com/apache/cordova-create/workflows/Node%20CI/badge.svg?branch=master)](https://github.com/apache/cordova-create/actions?query=branch%3Amaster)
 [![codecov.io](https://codecov.io/github/apache/cordova-create/coverage.svg?branch=master)](https://codecov.io/github/apache/cordova-create?branch=master)
 
-This module is used for creating cordova style projects. It also incudes support for [cordova templates](http://cordova.apache.org/docs/en/latest/guide/cli/template.html). It can fetch templates from npm and git.
+This module is used for creating Cordova style projects. It also incudes support for [Cordova App Templates](http://cordova.apache.org/docs/en/latest/guide/cli/template.html). It can fetch templates from npm and git.
 
-## Usage:
+## Usage
 
 ```js
 const create = require('cordova-create');
@@ -36,9 +38,11 @@ await create(dest, opts);
 ### Parameters
 
 #### `dest`
+
 _Required_. Path to the destination where the project will be created. Must be an empty dir if it exists.
 
 #### `opts`
+
 _Optional_. Supports following properties.
 
 ```js
diff --git a/spec/templates/no_content_config.xml b/spec/templates/no_content_config.xml
index 2ef7ae4..f9588ed 100644
--- a/spec/templates/no_content_config.xml
+++ b/spec/templates/no_content_config.xml
@@ -1,4 +1,22 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
 <widget xmlns     = "http://www.w3.org/ns/widgets"
         xmlns:cdv = "http://cordova.apache.org/ns/1.0"
         id        = "io.cordova.hellocordova"
diff --git a/spec/templates/withsubdirectory/index.js b/spec/templates/withsubdirectory/index.js
index c56ae49..d48190e 100644
--- a/spec/templates/withsubdirectory/index.js
+++ b/spec/templates/withsubdirectory/index.js
@@ -1,3 +1,22 @@
+/**
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+*/
+
 var path = require('path');
 module.exports = {
     'dirname': path.join(__dirname, 'template')
diff --git a/spec/templates/withsubdirectory_package_json/index.js b/spec/templates/withsubdirectory_package_json/index.js
index c56ae49..d48190e 100644
--- a/spec/templates/withsubdirectory_package_json/index.js
+++ b/spec/templates/withsubdirectory_package_json/index.js
@@ -1,3 +1,22 @@
+/**
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+*/
+
 var path = require('path');
 module.exports = {
     'dirname': path.join(__dirname, 'template')


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org