@twreporter/scrollable-image-ui

1.1.4 • Public • Published

scrollable-image-ui

npm (latest) npm (rc)

What is this

An interface used for generating scrollable image embedded code.

How to use this

Install

yarn add @twreporter/scrollable-image-ui

or you can use npm:

npm install --save @twreporter/scrollable-image-ui

Example

  1. Serve the distribution files by Google Cloud Function
const express = require('express')
const path = require('path')

const app = express()

app.use(
  express.static(
    path.join(__dirname, 'node_modules/@twreporter/scrollable-image-ui/dist')
  )
)

app.get('/', (req, res) => {
  res.status(200).sendFile(path.join(__dirname, '/index.html'))
})

How to develop this

# Run development server
make dev

How to build this

# Babel transpile es6 and above to es5 at lib/
# Build webpack bundle and index.html to dist/
make build

Readme

Keywords

none

Package Sidebar

Install

npm i @twreporter/scrollable-image-ui

Weekly Downloads

29

Version

1.1.4

License

MIT

Unpacked Size

581 kB

Total Files

19

Last publish

Collaborators

  • duidae
  • twreporter-admin
  • taylrj
  • aylieinthecity