1.2.4 • Published 4 years ago

@flowscripter/ts-example-host-app v1.2.4

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

ts-example-host-app

license dependencies travis npm

Example TypeScript host application for the esm-dynamic-plugins framework.

Overview

Development

Firstly:

npm install

then:

Build: npm run build

Watch: npm run watch

Lint: npm run lint

E2E test: npm run e2e

Run with Node (14.4.0+)

Firstly run the host app and check no plugins are discovered:

npm run nodeHostApp

Then install a sample plugin providing one extension (without saving to package.json):

npm install --no-save @flowscripter/ts-example-plugin

Now when you run the host app, you should see a plugin discovered:

npm run nodeHostApp

Install a different sample plugin providing two extension (without saving to package.json) and run again:

npm install --no-save @flowscripter/js-example-plugin
npm run nodeHostApp

Run with Browser

To serve locally:

npm run browserHostApp

Alternatively an online demo is available at: https://flowscripter.github.io/ts-example-host-app/

In the browser developer tools, enable debug logging to the console by setting the local storage key/value:

debug = *,-NodeModulesPluginRepository

Without checking either plugin URL listed on the page, click on 'load' and the browser console should show that no plugins are discovered.

When checking one or both plugin URLs and clicking on 'load', you should see plugins discovered.

Further Details

Further details on project configuration files and Javascript version support can be found in the template for this project.

License

MIT © Flowscripter

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.34

4 years ago

1.1.33

4 years ago

1.1.32

4 years ago

1.1.31

4 years ago

1.1.30

4 years ago

1.1.29

4 years ago

1.1.28

4 years ago

1.1.27

4 years ago

1.1.26

4 years ago

1.1.25

4 years ago

1.1.24

4 years ago

1.1.23

4 years ago

1.1.22

5 years ago

1.1.21

5 years ago

1.1.20

5 years ago

1.1.19

5 years ago

1.1.18

5 years ago

1.1.17

5 years ago

1.1.16

5 years ago

1.1.15

5 years ago

1.1.14

5 years ago

1.1.13

5 years ago

1.1.12

5 years ago

1.1.11

5 years ago

1.1.10

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago