1 | # express-mincer-spa
|
2 |
|
3 | easy generator of frontend application with express backend and mincer
|
4 | supported asset pipeline.
|
5 |
|
6 | [![npm version](https://badge.fury.io/js/express-mincer-spa.svg)](https://badge.fury.io/js/express-mincer-spa)
|
7 | [![Dependency Status](https://gemnasium.com/naxmefy/express-mincer-spa.svg)](https://gemnasium.com/naxmefy/express-mincer-spa)
|
8 |
|
9 | [![Build Status](https://travis-ci.org/naxmefy/express-mincer-spa.svg?branch=master)](https://travis-ci.org/naxmefy/express-mincer-spa)
|
10 | [![Coverage Status](https://coveralls.io/repos/github/naxmefy/express-mincer-spa/badge.svg?branch=master)](https://coveralls.io/github/naxmefy/express-mincer-spa?branch=master)
|
11 |
|
12 |
|
13 | [![NPM](https://nodei.co/npm/express-mincer-spa.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/express-mincer-spa/)
|
14 |
|
15 | ## installation
|
16 |
|
17 | ```
|
18 | $ npm install --global express-mincer-spa
|
19 | ```
|
20 |
|
21 | ## usage
|
22 |
|
23 | Generate new application
|
24 |
|
25 | ```
|
26 | $ ems new my-spa-application
|
27 | ```
|
28 |
|
29 | Start application
|
30 |
|
31 | ```
|
32 | $ ems start my-spa-application
|
33 |
|
34 | // or
|
35 |
|
36 | $ node my-spa-application
|
37 |
|
38 | // or
|
39 |
|
40 | $ cd my-spa-application
|
41 | $ node index.js
|
42 | ```
|
43 |
|
44 | Precompile assets
|
45 |
|
46 | ```
|
47 | $ ems precompile
|
48 | ```
|
49 |
|
50 | ## example font fix
|
51 |
|
52 | e.g. Font-Awesome
|
53 |
|
54 | ```Stylus
|
55 | //= require font-awesome/css/font-awesome.css
|
56 |
|
57 | @font-face {
|
58 | font-family: 'FontAwesome';
|
59 | src: url(asset_path('font-awesome/fonts/fontawesome-webfont.eot')+'?v=4.4.0');
|
60 | src: url(asset_path('font-awesome/fonts/fontawesome-webfont.eot')+'?#iefix&v=4.4.0') format('embedded-opentype'),
|
61 | url(asset_path('font-awesome/fonts/fontawesome-webfont.woff2')+'?v=4.4.0') format('woff2'),
|
62 | url(asset_path('font-awesome/fonts/fontawesome-webfont.woff')+'?v=4.4.0') format('woff'),
|
63 | url(asset_path('font-awesome/fonts/fontawesome-webfont.ttf')+'?v=4.4.0') format('truetype'),
|
64 | url(asset_path('font-awesome/fonts/fontawesome-webfont.svg')+'?v=4.4.0#fontawesomeregular') format('svg');
|
65 | font-weight: normal;
|
66 | font-style: normal;
|
67 | }
|
68 |
|
69 | body
|
70 | padding-top: 60px
|
71 | ```
|
72 |
|
73 | ## contributing
|
74 |
|
75 | * Found a bug? Create an issue!
|
76 | * Missing Feature? Create an issue or fork the repo, implement the feature and start an pull request.
|
77 |
|
78 | ## license
|
79 |
|
80 | [MIT](https://github.com/naxmefy/express-mincer-spa/blob/master/LICENSE) |
\ | No newline at end of file |