Commit Graph
13 Commits
Author SHA1 Message Date
Andrew Miner 06eea0aa48 Add support for conditional recipes 2015-05-20 18:07:39 -07:00
Andrew Miner 8eb5cef71b Allow submitting changes for item desc. to GitHub 2015-05-08 16:16:17 -07:00
Andrew Miner 930b8049a2 Convert site to a single JavaScript archive
* Convert build to use a single JavaScript file on the site (instead
  of downloading each library separately). This also means that all
  global variables (e.g., `$` for JQuery, `_` for Underscore.js) can
  be removed.
* Remove unused scripts and/or move them to a more appropriate repo
* Update the `deploy` script to work with CircleCI's automation
* Update markdown display code to allow images to be located with the
  markdown data files instead of the pre-rendered index pages
2015-04-29 19:58:53 -07:00
Andrew Miner 21ad85b125 Add Simply Jetpacks 2015-04-11 10:24:25 -07:00
Andrew Miner 144aa1bf32 Allow item stacks as input for recipes
* Create the SlotController and refactor it into the various places
  where a crafting grid or crafting output is displayed
* Update the Recipe model to allow each "input" stack to retain the
  count indicated in the data file. This required changing how a few
  other classes interact with it in order for them to get the full
  stack back again for each input (instead of just getting the item
  slug)
* Update the ModVersionParser to allow for full stacks to be given
  as input and refactored common code out for handling input/output/
  tools stacks
2015-04-07 19:21:02 -07:00
Andrew Miner 321cffcdcc Add unit tests to verify data integrity 2015-03-25 19:11:19 -07:00
Andrew Miner 873434e938 Refactoring tests and moving code to common module
1. All tests have been converted into regular command-line mocha
   tests (instead of running in the browser), and the deployment
   script has been changed to automatically fail any `--new`
   deployment which doesn't pass.
2. Several small class (e.g., `Logger`) have been moved into a common
   module, `crafting-guide-common` so that they may be shared between
   the client and server.
2015-03-25 14:42:15 -07:00
Andrew Miner e58cc28815 Fix bug in here-doc parsing
When a here-doc contains an empty line, any whitespace it contains
should be ignored for purposes of determining the amount of leading
whitespace to trim from each line.
2015-03-20 14:02:58 -07:00
Andrew Miner 89a7f7a9d3 Initial implementation of tutorial pages 2015-03-20 12:22:01 -07:00
Andrew Miner 1333132cd8 Remove extraneous debug logging 2015-03-13 19:06:06 -07:00
Andrew Miner 35e3712783 Bug: Make sure mod recipes for MC items show up
This fixes a regression where recipes for vanilla Minecraft items
(e.g., Iron Ingot) added by mods (e.g., Pulverized Iron to Iron
Ingot) didn't show up on that item's detail page.
2015-03-11 22:17:17 -07:00
Andrew Miner ff17d5f9ba Show markdown description text on item detail page
* Update build process to *not* copy over prerendered pages during a
  regular build (only during a `dist` build)
* Add dependency on npm "markdown" package and include it in the
  scripts loaded in the default layout
* Update the Item model to be able to load from a *.cg file
* Add an ItemParser to process the `item.cg` file
* Update the general parser to be able to work with HereDoc-style
  text blocks
* Add a markdown-specific stylesheet
* Add a sample of the `item.cg` file format (Advanced Crafting Table)
2015-03-08 22:24:15 -07:00
Andrew Miner 0a6c185965 Restructure static files into a single directory 2015-03-08 15:05:24 -07:00