@lrnwebcomponents/wc-autoload

8.0.2 • Public • Published

<wc-autoload>

Autoload

automatically load new tags in the dom

Usage

To use this web component in your project you can utilize one of the following styles of syntax.

/* In an existing JS module / web component */
import '@lrnwebcomponents/wc-autoload/wc-autoload.js';
/* At top of an application with build routine */
<script type="module" src="@lrnwebcomponents/wc-autoload/wc-autoload.js"></script>
/* Alternatives for top of application */
<script type="module">
  import '@lrnwebcomponents/wc-autoload/wc-autoload.js';
  // imperative form
  import {WcAutoload} from '@lrnwebcomponents/wc-autoload';
  // if you don't have a build routine and need to reference directly
  import './node_modules/@lrnwebcomponents/wc-autoload/wc-autoload.js';
</script>
// via unpkg CDN (good for testing)
<script type="module" src="https://unpkg.com/@lrnwebcomponents/wc-autoload/wc-autoload.js"></script>

Develop / Demo

Run yarn start will start a local development server, open your default browser to display it, open your finder to the correct window and start watching the /src directory for changes and automatically rebuilding the element and documentation site for the demo.

$ yarn start

Test

$ yarn run test

Build

Builds ensure that wcfactory can correctly compile your web component project to work on the maximum number of browsers possible.

$ yarn run build

Contributing

  1. Fork it! git clone https://github.com/elmsln/lrnwebcomponents.git
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Code style

Autoload (and all lrnwebcomponents) use Prettier to auto-format JS and JSON. The style rules get applied when you commit a change. If you choose to, you can integrate your editor with Prettier to have the style rules applied on every save.

License

Apache-2.0 License

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
8.0.20latest

Version History

VersionDownloads (Last 7 Days)Published
8.0.20
8.0.10
8.0.00
7.0.180
7.0.170
7.0.160
7.0.150
7.0.110
7.0.100
7.0.50
7.0.40
7.0.20
7.0.10
7.0.00
4.2.00
4.1.11
4.0.250
4.0.240
4.0.230
4.0.220
4.0.210
4.0.200
4.0.190
4.0.180
4.0.170
4.0.160
4.0.150
4.0.130
4.0.120
4.0.110
4.0.80
4.0.50
4.0.10
4.0.00
3.0.60
3.0.50
3.0.00
2.7.100
2.7.70
2.7.60
2.7.30
2.7.10
2.7.00
2.6.240
2.6.160
2.6.120
2.6.80
2.6.70
2.6.50
2.6.40

Package Sidebar

Install

npm i @lrnwebcomponents/wc-autoload

Weekly Downloads

1

Version

8.0.2

License

Apache-2.0

Unpacked Size

88.8 kB

Total Files

21

Last publish

Collaborators

  • heymp
  • btopro
  • nikkimk
  • cgldevel