webcomponents-webpack-es6
Web Components project starter using ES6 and Webpack
Last updated 3 years ago by stackriot .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install webcomponents-webpack-es6 
SYNC missed versions from official npm registry.

Web Components project starter using ES6 and Webpack

Build Status

codecov

license

Project setup includes:

  • [x] web-component
  • [x] Server Rendering
  • [x] Webpack2
  • [x] Webpack Dashboard
  • [x] Dev Middleware
  • [x] Web Components es5 shim
  • [x] Babel 6
  • [x] Boostrap
  • [x] Font Awsome
  • [x] Eslint
  • [x] Jest

TODO

  • [ ] Uglify on production (doesn't work with es6 browsers)
  • [ ] Fix jest tests - html templates, mock customElements

Installation

$ git clone https://github.com/sethbergman/webcomponents-webpack-es6.git app-name
$ cd app-name
$ npm install

Development

  • Build once for (ready for Production):

    • $ npm run build
    • $ npm run build:serve

    The last command will boot up HTTP server on 3003 port and serve build/client directory in a default browser

  • Hot reloading via webpack middlewares:

    • $ npm start
    • Point your browser to http://localhost:3000/, page hot reloads automatically when there are changes

Testing

To execute all unit tests, use:

$ npm run test

To run unit tests continuously during development (watch tests), use:

$ npm run test:watch

Expose App on Your Local Dev Machine

Assign yourself a unique publicly accessible url that will proxy all requests to your locally running webserver.

$ npm install -g localtunnel
$ npm start
$ npm run tunnel # run in a new tab

You will receive a url, for example https://tbst.localtunnel.me, that you can share with anyone for as long as your local instance of lt remains active. Any requests will be routed to your local service at the specified port.

License

The code is available under the MIT license.

Current Tags

  • 1.2.0                                ...           latest (3 years ago)

2 Versions

  • 1.2.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |