From c0ef3b12d6284d3dfc1a196b3c10e4d6eb714208 Mon Sep 17 00:00:00 2001 From: Sven Efftinge Date: Wed, 21 Nov 2018 14:17:34 +0000 Subject: [PATCH] Added gitpod support --- .gitpod.yml | 5 +++++ README.md | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..bee4462 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,5 @@ +tasks: +- on: init + command: npm install && npx gulp && node dist/main.js +- on: restart + command: node dist/main.js \ No newline at end of file diff --git a/README.md b/README.md index 01037c6..34c8df6 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,9 @@ A basic example that showcases how to setup InversifyJS -This is a very basic InversifyJS example. +This is a very basic InversifyJS example. -This program declares: +This program declares: - Three interfaces `Warrior`, `Weapon` and `Battle`. - Two implementations of `Weapon`: `Katana` and `Shuriken` - Two implementations of `Warrior`: `Ninja` and `Samurai` @@ -32,7 +32,11 @@ container.bind(SERVICE_IDENTIFIER.BATTLE).to(EpicBattle); ``` # How can I run it? -You can clone it using: +You can either + +[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io#https://github.com/inversify/inversify-basic-example/blob/master/src/config/ioc_config.ts) + +or clone it using: ``` $ git clone https://github.com/inversify/inversify-basic-example.git