1.1.31 • Published 8 years ago

component-subwaybite-vuejs v1.1.31

Weekly downloads
8
License
ISC
Repository
github
Last release
8 years ago

Component SubwayBite Vuejs

Vue SubwayBite Template Component

Coverage Status

Synopsis

To deliver transit information based on location

Code Examples

Install:

npm install component-subwaybite-vuejs --save

Usage:

Vue.use(SubwayBite, options);

or within existing components:

import SubwayBite from 'component-subwaybite-vuejs';

export default {
    components: {
        SubwayBite
    }
}

Installation

Install dependencies:

npm install

Copy .env.example to create .env:

cp .env.example .env

Copy config files over:

cp ./src/config/build.js ./src/config/development.js

Serve with hot reload at localhost:8080 (default):

npm run dev

Build for production with minification:

npm run build

Documentation

Properties

NameTypeDescription
urlStringThe base url origin for api end point
tokenStringAPI access token
limitNumberLimits the number of items shown in the widget 6
termStringType of transportation (Options: bus)
dmaNumberStop ID

Test

All widgets should have unit tests associated with them. To run all tests

npm test

For developments test with hot reloading at localhost:3001

npm run test:dev

To run tests with coveralls support:

npm run test:coveralls

Style Guide

All project should follow JS Style guide. Style guide is a modified version of airbnb, and should be referenced during development. Any modified rules can be found in .eslintc.json file.

To run eslint:

npm run lint

To fix eslint errors:

npm run lint:fix

Local Setup

1.1.31

8 years ago

1.1.30

8 years ago

1.1.29

8 years ago

1.1.28

9 years ago

1.1.27

9 years ago

1.1.26

9 years ago

1.1.25

9 years ago

1.1.24

9 years ago

1.1.23

9 years ago

1.1.22

9 years ago

1.1.21

9 years ago

1.1.20

9 years ago

1.1.19

9 years ago

1.1.18

9 years ago

1.1.1

9 years ago

1.1.17

9 years ago

1.1.16

9 years ago

1.1.15

9 years ago

1.1.14

9 years ago

1.1.13

9 years ago

1.1.12

9 years ago

1.1.11

9 years ago