Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeeyyy/dom-floater
A javascript module/ plugin/ library/ component for floating dom elements on a webpage.
https://github.com/jeeyyy/dom-floater
Last synced: about 2 months ago
JSON representation
A javascript module/ plugin/ library/ component for floating dom elements on a webpage.
- Host: GitHub
- URL: https://github.com/jeeyyy/dom-floater
- Owner: jeeyyy
- License: mit
- Created: 2018-01-04T15:35:48.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-14T10:05:54.000Z (almost 7 years ago)
- Last Synced: 2024-10-29T19:40:48.626Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 230 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dom-floater
A javascript module/ plugin/ library/ component for floating dom elements on a webpage.## Installation
```
npm install --save dom-floater
```Usage:
```js
import * as myModule from '../dist/dom-floater';
myModule.Init();
```### License
Licensed under the MIT license.### Local Development
Steps | Command | Description
---|---|---
1 | npm run setup | Installs all dependencies `node_modules` etc., that are necessary for building the project.
2 | npm run dev | Builds the code in development mode, this compiles component code and also sandbox code. All source code is watched for changes and assets are re-built. Run this in a separate terminal instance.
3 | npm run sandbox | Compiles sandbox usage code for sandbox testing the library/ module. All source code is watched for changes and assets are re-built. Run this in a separate terminal instance.
4 | npm run serve | Boots a http server of the sandbox directory. Typically on http://localhost:8080. Run this in a separate terminal instance.
5 | npm run prettier | Optional & Opinionated pretti-fying of code.
6 | npm run lint | Optional & Opinionated linting and enforcing code legiblity.
7 | npm run dist | Generate library in ./dist directory.
8 | npm run publish | Publish library/ module. Refer Usage section.