https://github.com/uppercod/atom-popup
https://github.com/uppercod/atom-popup
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/uppercod/atom-popup
- Owner: UpperCod
- Created: 2018-10-09T18:01:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-09T18:50:01.000Z (over 7 years ago)
- Last Synced: 2025-04-10T03:58:37.070Z (about 1 year ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# atom-popup
This is a small skeleton to create distributable components based on [Atomico](https://github.com/uppercod/atomico).
The component is packaged thanks to `rollup.config.js`, you can execute the commands
```bash
# 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](https://github.com/uppercod/rollup-prepare).
```json
"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
```html
```
> The scripts can also load from the ``.