Coder Social home page Coder Social logo

atom-popup's Introduction

atom-popup

This is a small skeleton to create distributable components based on Atomico.

The component is packaged thanks to rollup.config.js, you can execute the commands

# alias rollup -c -w
npm run watch
# alias rollup -c
npm run build

package.json

The output files of the package are defined within package.json, this is thanks to rollup-prepare.

 "name": "atom-popup",
 "main": "dist/atom-popup.js",
 "umd:main": "dist/atom-popup.umd.js",
 "iife": "dist/atom-popup.iife.js",
 "module": "dist/atom-popup.m.js",
 "source": "src/index.js",
Property Description
name Necessary for the exit of the files type umd:*
main Allows to generate a component in output format CJS
umd:main Allows to generate a component in output format UMD
iife Allows to generate a component in output format IIFE
module Allows to generate a component in output format ES
source component source file

Component installation

<body>
    <atom-popup></atom-popup>
    <!-- polyfill --> 
    <script src="https://unpkg.com/@webcomponents/[email protected]/webcomponents-loader.js"></script>
    <!-- size 1.7kB -->
    <script src="https://unpkg.com/[email protected]/dist/atomico.umd.js"></script>
    <!-- size 1.4kB -->
    <script src="https://unpkg.com/[email protected]/dist/atom-popup.umd.js"></script>
</body>

The scripts can also load from the <head>.

atom-popup's People

Contributors

uppercod avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.