6.0.5 • Published 3 months ago

service-configurator v6.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

service-configurator

USING STENCIL WEB COMPONENT

creating stencil javascript bundle

  • cd stencil
  • npm run build

to add to local node_modules for testing

  • npm link

to use in simple html page

  • cd stencil
  • npm run build
  • copy dist folder
  • cd html
  • paste
  • import to html head the following tags
<script type="module" src="dist/configurator/configurator.esm.js"></script>
<script nomodule src="dist/esm/configurator.js"></script>
  • add web component tag to body
<service-configurator savedServices="[]" services="[]"></service-configurator>

to use in angular app

  • cd stencil
  • npm run build
  • npm link
  • cd angular-app
  • npm link configurator (name of the stencil project)
  • import the following package to main.ts
import { defineCustomElements } from 'service-configurator/loader';
  • add the following line to main.ts
defineCustomElements(window);
  • add CUSTOM_ELEMENTS_SCHEMA to schemas to the module of the page you want to add the web component

  • add web component tag to desired html page

<service-configurator savedServices="[]" services="[]"></service-configurator>

to use in react app

  • cd stencil
  • npm run build
  • npm link
  • cd react-app
  • npm link configurator (name of the stencil project)
  • import the following package to App.js
import { defineCustomElements } from 'service-configurator/loader';
  • add the following line to App.js
defineCustomElements(window);
  • add web component tag to desired component
<service-configurator savedServices="[]" services="[]"></service-configurator>

to use in vue app

  • cd stencil
  • npm run build
  • npm link
  • cd vue-app
  • npm link configurator (name of the stencil project)
  • import the following package to main.js
import { defineCustomElements } from 'service-configurator/loader';
  • add the following lines to main.js
defineCustomElements(window);
//you might need
Vue.config.ignoredElements = ["service-configurator-component"];
  • add web component tag to desired component
<service-configurator savedServices="[]" services="[]"></service-configurator>
6.0.5

3 months ago

6.0.3

3 months ago

6.0.2

3 months ago

6.0.4

3 months ago

5.0.9

7 months ago

5.0.8

7 months ago

6.0.1

6 months ago

6.0.0

6 months ago

5.0.7

7 months ago

5.0.6

8 months ago

5.0.4

8 months ago

4.0.5

11 months ago

4.0.4

11 months ago

4.0.7

11 months ago

4.0.6

11 months ago

4.0.1

11 months ago

4.0.0

11 months ago

4.0.3

11 months ago

4.0.2

11 months ago

5.0.3

8 months ago

5.0.2

8 months ago

5.0.1

8 months ago

5.0.0

9 months ago

4.0.9

9 months ago

4.0.8

11 months ago

3.0.9

1 year ago

3.0.4

1 year ago

3.0.8

1 year ago

3.0.7

1 year ago

3.0.6

1 year ago

3.0.5

1 year ago

3.0.3

1 year ago

3.0.2

1 year ago

3.0.1

1 year ago

3.0.0

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago