From 7f0873ccd706e707241343e59541d0d1cd080d97 Mon Sep 17 00:00:00 2001 From: Taranveer Virk Date: Tue, 3 Oct 2017 00:01:35 -0400 Subject: [PATCH] Revert project structure changes as discussed in #7 Will remove `package.json` once #8 has landed. --- src/controllers/README.md | 3 +++ src/decorator-txIdFromHeader/index.ts | 6 ------ .../decorators/README.md | 17 ----------------- .../txIdFromHeader.decorator.ts} | 0 src/index.ts | 2 +- src/providers/README.md | 4 ++++ src/repositories/README.md | 3 +++ test/mocha.opts | 2 +- tsconfig.json | 2 +- 9 files changed, 13 insertions(+), 26 deletions(-) create mode 100644 src/controllers/README.md delete mode 100644 src/decorator-txIdFromHeader/index.ts rename src/{decorator-txIdFromHeader => }/decorators/README.md (71%) rename src/{decorator-txIdFromHeader/decorators/txIdFromHeader.ts => decorators/txIdFromHeader.decorator.ts} (100%) create mode 100644 src/providers/README.md create mode 100644 src/repositories/README.md diff --git a/src/controllers/README.md b/src/controllers/README.md new file mode 100644 index 0000000..91e5545 --- /dev/null +++ b/src/controllers/README.md @@ -0,0 +1,3 @@ +# Controllers + +This directory contains source files for the controllers exported by this extension. diff --git a/src/decorator-txIdFromHeader/index.ts b/src/decorator-txIdFromHeader/index.ts deleted file mode 100644 index e23ff5e..0000000 --- a/src/decorator-txIdFromHeader/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -// Copyright IBM Corp. 2013,2017. All Rights Reserved. -// Node module: loopback-next-extension-starter -// This file is licensed under the MIT License. -// License text available at https://opensource.org/licenses/MIT - -export * from './decorators/txIdFromHeader'; diff --git a/src/decorator-txIdFromHeader/decorators/README.md b/src/decorators/README.md similarity index 71% rename from src/decorator-txIdFromHeader/decorators/README.md rename to src/decorators/README.md index 04fceee..a48146d 100644 --- a/src/decorator-txIdFromHeader/decorators/README.md +++ b/src/decorators/README.md @@ -26,20 +26,3 @@ You can check out the following resource to learn more about decorators and how - [TypeScript Handbook: Decorators](https://www.typescriptlang.org/docs/handbook/decorators.html) - [Decorators in LoopBack](http://loopback.io/doc/en/lb4/Decorators.html) - -## Contributions - -- [Guidelines](http://loopback.io/doc/en/contrib/index.html) -- [Join the team](https://github.com/strongloop/loopback-next/issues/110) - -## Tests - -Run `npm test` from the root folder. - -## Contributors - -See [all contributors](https://github.com/strongloop/loopback-next-extension-starter/graphs/contributors). - -## License - -MIT diff --git a/src/decorator-txIdFromHeader/decorators/txIdFromHeader.ts b/src/decorators/txIdFromHeader.decorator.ts similarity index 100% rename from src/decorator-txIdFromHeader/decorators/txIdFromHeader.ts rename to src/decorators/txIdFromHeader.decorator.ts diff --git a/src/index.ts b/src/index.ts index a4a6845..28949f1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,4 +3,4 @@ // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT -export * from './decorator-txIdFromHeader'; +export * from './decorators/txIdFromHeader.decorator'; diff --git a/src/providers/README.md b/src/providers/README.md new file mode 100644 index 0000000..a5b27ae --- /dev/null +++ b/src/providers/README.md @@ -0,0 +1,4 @@ +# Providers + +This directory contains providers contributing additional bindings, for example +custom sequence actions. diff --git a/src/repositories/README.md b/src/repositories/README.md new file mode 100644 index 0000000..7594752 --- /dev/null +++ b/src/repositories/README.md @@ -0,0 +1,3 @@ +# Repositories + +This directory contains code for repositories provided by this extension. diff --git a/test/mocha.opts b/test/mocha.opts index 66342aa..3b2b30f 100644 --- a/test/mocha.opts +++ b/test/mocha.opts @@ -1,3 +1,3 @@ ---compilers ts:ts-node/register --recursive --reporter dot +dist/test diff --git a/tsconfig.json b/tsconfig.json index fff059d..cdbb46b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,7 @@ "lib": ["es2017", "dom"], "module": "commonjs", "moduleResolution": "node", - "target": "es6", + "target": "es2017", "outDir": "dist", "sourceMap": true, "declaration": true