Skip to content

maxp-edcast/mtg_player

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


This provides a starting point for a webpack application.


It includes the following compilation setup:

  1. .coffee files are run through a coffeescript 2 processor. Since it can output JSX and ES6, it's then fed through Babel loaders to produce browser-suitable ES5.
  2. .slim templates can be loaded into html strings via require. To do so: template_html = require 'html-loader!./page.slim'. This uses the slim-loader I authored.
  3. .sass paths can be passed to require and they will be automatically appended to the page
  4. gifs can be manipulated and transformed to webm using the animation-loader I authored. See that readme for more info. note if using this some system dependencies are also needed. Run ./install_system_deps.sh in this case, to install ffmpeg and imagemagick

Getting started:

  • the entry point is entry.coffee. This can be changed by editing webpack.config.js
  • If changing the webpack.config.js file, the webpack.production.config.js should also get the same changes so that the deployment build works correctly. The files are identical to one another in this boiler.

To use:

  1. clone
  2. npm install
  3. npm run dev
  4. localhost:8080

to get ready for production

  1. npm run deploy
  2. push dist folder to a static host

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages