You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by hu...@apache.org on 2020/01/11 14:34:41 UTC

[dubbo-js] branch v3.0.0 updated: remove typings and add apache licence

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

hufeng pushed a commit to branch v3.0.0
in repository https://gitbox.apache.org/repos/asf/dubbo-js.git


The following commit(s) were added to refs/heads/v3.0.0 by this push:
     new f0ac8db  remove typings and add apache licence
     new 641346c  Merge pull request #199 from hufeng/v3.0.0
f0ac8db is described below

commit f0ac8db5aaeccb64ee5d430a659889dd0723756e
Author: hufeng <fe...@gmail.com>
AuthorDate: Sat Jan 11 22:30:42 2020 +0800

    remove typings and add apache licence
---
 examples/hello-egg/.autod.conf.js                  | 17 +++++++++++
 examples/hello-egg/.travis.yml                     | 16 +++++++++++
 examples/hello-egg/README.md                       |  4 +--
 examples/hello-egg/appveyor.yml                    | 16 +++++++++++
 .../hello-egg/typings/app/controller/index.d.ts    | 11 --------
 examples/hello-egg/typings/app/index.d.ts          |  6 ----
 examples/hello-egg/typings/app/service/index.d.ts  | 11 --------
 examples/hello-egg/typings/config/index.d.ts       | 11 --------
 examples/hello-egg/typings/config/plugin.d.ts      | 33 ----------------------
 examples/hello-egg/typings/index.d.ts              |  3 --
 10 files changed, 51 insertions(+), 77 deletions(-)

diff --git a/examples/hello-egg/.autod.conf.js b/examples/hello-egg/.autod.conf.js
index 05b2b44..bd7da49 100644
--- a/examples/hello-egg/.autod.conf.js
+++ b/examples/hello-egg/.autod.conf.js
@@ -1,3 +1,20 @@
+/*
+ * 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.
+ */
+
 'ues strict';
 
 module.exports = {
diff --git a/examples/hello-egg/.travis.yml b/examples/hello-egg/.travis.yml
index 45d37ed..96de8dd 100644
--- a/examples/hello-egg/.travis.yml
+++ b/examples/hello-egg/.travis.yml
@@ -1,3 +1,19 @@
+#
+#  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.
+
 sudo: false
 language: node_js
 node_js:
diff --git a/examples/hello-egg/README.md b/examples/hello-egg/README.md
index 02dba6d..d9bee3b 100644
--- a/examples/hello-egg/README.md
+++ b/examples/hello-egg/README.md
@@ -21,12 +21,12 @@ $ npm run tsc
 $ npm start
 ```
 
-
 ### Regenerate
 
 ```bash
 $ npm run interpret
 ```
+
 Note: Install MVN Java node locally;
 
 ### Npm Scripts
@@ -38,4 +38,4 @@ Note: Install MVN Java node locally;
 ### Requirement
 
 - Node.js 8.x
-- Typescript 2.8+
\ No newline at end of file
+- Typescript 2.8+
diff --git a/examples/hello-egg/appveyor.yml b/examples/hello-egg/appveyor.yml
index c274b7d..abbf1b7 100644
--- a/examples/hello-egg/appveyor.yml
+++ b/examples/hello-egg/appveyor.yml
@@ -1,3 +1,19 @@
+#
+#  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.
+
 environment:
   matrix:
     - nodejs_version: '8'
diff --git a/examples/hello-egg/typings/app/controller/index.d.ts b/examples/hello-egg/typings/app/controller/index.d.ts
deleted file mode 100644
index 7d73a99..0000000
--- a/examples/hello-egg/typings/app/controller/index.d.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-// This file is created by egg-ts-helper@1.25.6
-// Do not modify this file!!!!!!!!!
-
-import 'egg';
-import ExportHome from '../../../app/controller/home';
-
-declare module 'egg' {
-  interface IController {
-    home: ExportHome;
-  }
-}
diff --git a/examples/hello-egg/typings/app/index.d.ts b/examples/hello-egg/typings/app/index.d.ts
deleted file mode 100644
index 90b9ef8..0000000
--- a/examples/hello-egg/typings/app/index.d.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// This file is created by egg-ts-helper@1.25.6
-// Do not modify this file!!!!!!!!!
-
-import 'egg';
-export * from 'egg';
-export as namespace Egg;
diff --git a/examples/hello-egg/typings/app/service/index.d.ts b/examples/hello-egg/typings/app/service/index.d.ts
deleted file mode 100644
index 527a56a..0000000
--- a/examples/hello-egg/typings/app/service/index.d.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-// This file is created by egg-ts-helper@1.25.6
-// Do not modify this file!!!!!!!!!
-
-import 'egg';
-import ExportTest from '../../../app/service/Test';
-
-declare module 'egg' {
-  interface IService {
-    test: ExportTest;
-  }
-}
diff --git a/examples/hello-egg/typings/config/index.d.ts b/examples/hello-egg/typings/config/index.d.ts
deleted file mode 100644
index ef605df..0000000
--- a/examples/hello-egg/typings/config/index.d.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-// This file is created by egg-ts-helper@1.25.6
-// Do not modify this file!!!!!!!!!
-
-import 'egg';
-import {EggAppConfig} from 'egg';
-import ExportConfigDefault from '../../config/config.default';
-type ConfigDefault = ReturnType<typeof ExportConfigDefault>;
-type NewEggAppConfig = ConfigDefault;
-declare module 'egg' {
-  interface EggAppConfig extends NewEggAppConfig {}
-}
diff --git a/examples/hello-egg/typings/config/plugin.d.ts b/examples/hello-egg/typings/config/plugin.d.ts
deleted file mode 100644
index 8174b11..0000000
--- a/examples/hello-egg/typings/config/plugin.d.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-// This file is created by egg-ts-helper@1.25.6
-// Do not modify this file!!!!!!!!!
-
-import 'egg';
-import 'egg-onerror';
-import 'egg-session';
-import 'egg-i18n';
-import 'egg-watcher';
-import 'egg-multipart';
-import 'egg-security';
-import 'egg-development';
-import 'egg-logrotator';
-import 'egg-schedule';
-import 'egg-static';
-import 'egg-jsonp';
-import 'egg-view';
-import {EggPluginItem} from 'egg';
-declare module 'egg' {
-  interface EggPlugin {
-    onerror?: EggPluginItem;
-    session?: EggPluginItem;
-    i18n?: EggPluginItem;
-    watcher?: EggPluginItem;
-    multipart?: EggPluginItem;
-    security?: EggPluginItem;
-    development?: EggPluginItem;
-    logrotator?: EggPluginItem;
-    schedule?: EggPluginItem;
-    static?: EggPluginItem;
-    jsonp?: EggPluginItem;
-    view?: EggPluginItem;
-  }
-}
diff --git a/examples/hello-egg/typings/index.d.ts b/examples/hello-egg/typings/index.d.ts
deleted file mode 100644
index 57f2414..0000000
--- a/examples/hello-egg/typings/index.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-declare module 'egg' {
-
-}
\ No newline at end of file