0.1.1 • Published 8 years ago

polythene-examples v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Polythene Examples

Demonstration of Polythene components.

Online demos: Polythene Examples.

Setup

  • cd src
  • npm install

This installs

Viewing

Start up a local server, for instance:

  • npm install -g http-server

Then:

  • http-server .

Developing

The examples are currently set up in 2 ways (to keep things relatively flexible):

  • src uses SystemJS
  • build uses Browserify

All examples are required using import, so everything gets bundled to one big file. Ideal for an app but not so much for a mobile website. Theoretically you could load all examples dynamically using System.import(), but this does not work nicely together with Browserify. I'll leave that as an excercise to the reader...

Scripts

From the src directory:

  • npm run watch - watches code changes in the src directory; transpiles to es5 in the src directory only
  • npm run transpile - only transpile the es6 files once in the src directory
  • npm run build - updates the build directory once; minifies built files

The watch/build scripts use babelify to transpile es6 to es5, but you can also choose to only use the included es5 files.

0.1.1

8 years ago

0.0.12

8 years ago

0.0.0

8 years ago

0.0.10

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago