Merge pull request #199 from hufeng/v3.0.0
remove typings and add apache licence
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 start
```
-
### Regenerate
```bash
$ npm run interpret
```
+
Note: Install MVN Java node locally;
### Npm Scripts
@@ -38,4 +38,4 @@
### 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