# polythene-examples

> Polythene examples

Latest version **0.1.1** (published 2016-03-06) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install polythene-examples
pnpm add polythene-examples
yarn add polythene-examples
bun add polythene-examples
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2016-03-06 |
| First published | 2015-10-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Arthur Clemens |
| Maintainers | arthurclemens |

## Links

- npm: https://www.npmjs.com/package/polythene-examples
- Repository: https://github.com/ArthurClemens/Polythene-examples
- Issues: https://github.com/ArthurClemens/Polythene-examples/issues
- npm.io page: https://npm.io/package/polythene-examples

## Recent versions

- 0.1.1 (latest) — 2016-03-06
- 0.0.10 — 2015-10-24
- 0.0.8 — 2015-10-18
- 0.0.7 — 2015-10-17
- 0.0.6 — 2015-10-15
- 0.0.5 — 2015-10-08
- 0.0.4 — 2015-10-08
- 0.0.3 — 2015-10-07
- 0.0.2 — 2015-10-03

## README

# Polythene Examples

Demonstration of [Polythene](https://github.com/ArthurClemens/Polythene) components.

Online demos: [Polythene Examples](http://arthurclemens.github.io/Polythene-examples/index.html).


## Setup

* `cd src`
* `npm install`

This installs

* [Polythene](https://github.com/ArthurClemens/Polythene) - the core components
* [Polythene theme](https://github.com/ArthurClemens/Polythene-theme) - the default theme
* all example dependencies


## 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.

---
_Source: https://npm.io/package/polythene-examples · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
