Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

express-mincer-spa

0.1.0 • Public • Published

express-mincer-spa

easy generator of frontend application with express backend and mincer supported asset pipeline.

npm version Dependency Status

Build Status Coverage Status

NPM

installation

$ npm install --global express-mincer-spa

usage

Generate new application

$ ems new my-spa-application

Start application

$ ems start my-spa-application

// or

$ node my-spa-application

// or

$ cd my-spa-application
$ node index.js

Precompile assets

$ ems precompile

example font fix

e.g. Font-Awesome

//= require font-awesome/css/font-awesome.css
 
@font-face {
  font-family: 'FontAwesome';
  src: url(asset_path('font-awesome/fonts/fontawesome-webfont.eot')+'?v=4.4.0');
  src: url(asset_path('font-awesome/fonts/fontawesome-webfont.eot')+'?#iefix&v=4.4.0') format('embedded-opentype'), 
       url(asset_path('font-awesome/fonts/fontawesome-webfont.woff2')+'?v=4.4.0') format('woff2'), 
       url(asset_path('font-awesome/fonts/fontawesome-webfont.woff')+'?v=4.4.0') format('woff'), 
       url(asset_path('font-awesome/fonts/fontawesome-webfont.ttf')+'?v=4.4.0') format('truetype'), 
       url(asset_path('font-awesome/fonts/fontawesome-webfont.svg')+'?v=4.4.0#fontawesomeregular') format('svg');
  font-weight: normal;
  font-style: normal;
}
 
body
  padding-top: 60px

contributing

  • Found a bug? Create an issue!
  • Missing Feature? Create an issue or fork the repo, implement the feature and start an pull request.

license

MIT