Author SHA1 Message Date
Andrew Miner 248cb30703 Announce Steve's Factory Manager 2018-03-27 21:14:14 -06:00
Andrew Miner 40218c6a16 Add Steve's Factory Manager (contributed by Cooltimmetje) 2018-03-27 20:56:13 -06:00
Andrew Miner 7fdec4720e Remove Amazon Associates trial code 2017-11-10 09:02:28 -08:00
Andrew Miner 510bd27742 Remove reference to Trello 2017-08-18 21:24:46 -07:00
Andrew Miner 3192c50870 Update the news page 2017-07-24 21:39:35 -07:00
Andrew Miner 6fc9a83948 Merge branch 'andrewminer/new-model-objects' 2017-07-23 20:07:59 -07:00
Andrew Miner c45572997f Make adjustments for mobile 2017-07-23 20:06:02 -07:00
Andrew Miner 59217a5fea Quantity change should cause step count change
fixes #294
2017-07-23 15:51:13 -07:00
Andrew Miner 0b94cc4a1f Update wiki editing to use new data format
fixes: #292
2017-07-23 15:16:21 -07:00
Andrew Miner cbf66bf5bb Fix bug where similar items weren't shown 2017-07-19 19:40:16 -07:00
Andrew Miner 8b0cd71bb5 Allow recipe comp. to show I/O inventories 2017-07-19 19:35:16 -07:00
Andrew Miner 0e6d75ec9b Recipe component can show multiblock recipes 2017-07-16 13:07:49 -04:00
Andrew Miner 3ca0dcceed Recipe compoent can show many types of recipes 2017-07-16 07:44:55 -04:00
Andrew Miner 89ba3ac48e Fix support for multiblock recipes 2017-07-16 04:58:16 -04:00
Andrew Miner ab96166601 Add missing detail data to item pages 2017-07-13 16:52:51 -04:00
Andrew Miner dac1a8dceb Ensure changing quantities outdates plans 2017-07-11 14:24:13 -07:00
Andrew Miner ccb2cad516 Fix search box to return better results 2017-07-11 09:58:56 -07:00
Andrew Miner 33479051c8 Ensure step helper buttons work
fixes #288
2017-07-11 09:26:09 -07:00
Andrew Miner b8a2dae9f2 Ensure inventory changes work on craft page 2017-07-11 05:51:52 -07:00
Andrew Miner 2fd1de40da Improve render time on long crafting plans 2017-07-04 23:28:56 -07:00
Andrew Miner f6f736f8be Update item detail page to new models 2017-07-04 22:52:01 -07:00
Andrew Miner 20119cf8e4 Initial effort to convert craft page to new models 2017-07-01 18:06:11 -07:00
Andrew Miner 997ff114b4 Move Amazon ad block lower on the page 2017-07-01 18:06:11 -07:00
Andrew Miner 6d62375c46 Add ad unit div for amazon ads 2017-07-01 18:06:11 -07:00
Andrew Miner b4cde5a37b Add Amazon ad unit 2017-07-01 18:06:10 -07:00
Andrew Miner 5f65f77222 Add support for videos on mod pages 2017-07-01 18:06:10 -07:00
Andrew Miner 5056708bdc Move Amazon ad block lower on the page 2017-06-23 19:38:47 -07:00
Andrew Miner df3dd8d9ef Add ad unit div for amazon ads 2017-06-18 10:35:44 -07:00
Andrew Miner 526af52b07 Add Amazon ad unit 2017-06-18 10:15:12 -07:00
Andrew Miner c9bc7371d9 Add support for videos on mod pages 2017-06-17 23:25:18 -07:00
Andrew Miner ac87fedca8 Update CraftingGuideCommon version 2017-06-15 22:42:22 -07:00
Andrew Miner 8b43c53a9e WIP 2017-06-15 22:39:17 -07:00
Andrew Miner 3bc7c4cf89 Fix bugs 2017-05-07 16:05:16 -07:00
Andrew Miner c4ba36b60a Convert new files on master to use CGC 2017-05-02 19:26:35 -07:00
Andrew Miner b05e237aee Merge branch 'crafting-algo-3' 2017-05-02 19:25:08 -07:00
Andrew Miner 7865ba98c3 Update copyright notice 2017-05-02 19:19:35 -07:00
Andrew Miner 69e4d968b5 Upgrade packages to most recent versions & lock 2017-05-02 19:18:02 -07:00
Andrew Miner bd96bc6575 Move model files to crafting-guide-common 2017-05-02 18:34:53 -07:00
Andrew Miner 90a41a59f0 Update link to YouTube channel instead of playlist 2017-04-05 18:40:29 -07:00
Andrew Miner ebdb6158ba Update news page about new feature 2017-03-31 20:53:45 -07:00
Andrew Miner 407e3fca5d Add mod version selector to browse page tiles 2017-03-31 20:47:39 -07:00
Andrew Miner 3d9895a6d5 Refactor mod version selector to a control 2017-03-31 20:32:28 -07:00
Andrew Miner ee6887e803 Add YouTube link 2017-03-21 19:39:06 -07:00
Andrew Miner fb48362a59 Add Google verification for YouTube 2017-03-21 18:06:11 -07:00
Andrew Miner 86a547f422 Make sure samples update craft page URL
fixes #241
2017-01-28 21:02:49 -08:00
Andrew Miner 0131c8ff3b Add handling for browsers without JavaScript
fixes #243
2017-01-28 20:55:24 -08:00
Andrew Miner 478364418b Consider item craftable if multiblock
Because the item page use the `craftable` attribute of the item to
decide whether to show the "Show Crafting Plan" button, it was not
showing that button for multiblocks (which don't have any normal
recipes). This change make it so that an item is also considered to
be craftable if it has a multiblock recipe.

fixes #256
2017-01-28 20:38:58 -08:00
Andrew Miner ed96cf0c71 Update SAYT algo to give better matches
The algorithm will now give higher rankings to items containing
multiple sequential letters which match, and higher rankings to
those whose length more closely matches the given term.
2017-01-28 19:59:18 -08:00
Andrew Miner 5d8251bebb Fix algo. for new Agricraft version 2016-12-28 18:14:34 -08:00
Andrew Miner 69ca6b06b9 wip 2016-12-27 15:25:33 -08:00
Andrew Miner 7377559f7b Initial take on crafting algo Mk.III 2016-09-25 13:14:42 -07:00
Andrew Miner c0472b268d Don't hang the site if a mod doesn't load 2016-09-16 19:53:37 -07:00
Andrew Miner 13b717836a 3.2.6 2016-09-15 19:39:13 -07:00
Andrew Miner 016c61e983 Add Solar Expansion 2016-09-15 19:30:19 -07:00
Andrew Miner d7743285cb Updated version & add Thermal Foundation 2016-09-14 20:43:21 -07:00
Andrew Miner cc9232d143 Updated version & add Thermal Foundation 2016-09-14 18:01:32 -07:00
Andrew Miner a1e7fb4fa0 Add news entry about exporter mod 2016-09-10 20:19:36 -07:00
Andrew Miner 9ac25efb0c Add more debugging data when crafting can't craft 2016-09-10 20:12:22 -07:00
Andrew Miner 19a3e9846c 3.2.5 2016-08-21 19:27:38 -07:00
Andrew Miner c5e9920473 Add Draconic Evolution 2016-08-21 19:12:18 -07:00
Andrew Miner 96b5beeb8c Prune invalid recipes 2016-08-21 16:06:48 -07:00
Andrew Miner d0bca0d2ac Include Twitter script after Twitter button
The Twitter button would frequently fail to render properly because
the script which dynamically creates the proper widget would load
before the DOM element which serves as the placeholder for the widget
hadn't yet been created.  This change ensures that the widget script
is always loaded after the placeholder has been created.
2016-06-02 11:50:58 -06:00
Andrew Miner d102834408 Fix mod ballots on mobile 2016-06-01 18:40:45 -06:00
Andrew Miner 00ca88500e Add announcement for new voting feature 2016-06-01 18:09:05 -06:00
Andrew Miner 6a2b3805a2 Don't change wait image when setting icon 2016-06-01 17:33:19 -06:00
Andrew Miner eba8c99ac0 Show mod icons in mod ballot 2016-06-01 17:22:01 -06:00
Andrew Miner b82bfea8f1 Add client ID for staging env 2016-06-01 13:10:08 -06:00
Andrew Miner d0a2292094 Add mod voting feature 2016-06-01 12:49:29 -06:00
Andrew Miner cb962f6175 Ensure page view preceeds any event tracking 2016-05-19 20:22:51 -07:00
Andrew Miner 083cc30eb2 Update version of crafting-guide-common 2016-05-18 19:58:54 -07:00
Andrew Miner 22009557d2 Use new server configuration for logging in 2016-05-15 19:52:21 -07:00
Andrew Miner b34ca26d0a Include item slug in inventory tracking events 2016-05-12 22:33:39 -07:00
Andrew Miner 23b3f1c7e1 Add mod suggestion panel 2016-05-12 22:27:44 -07:00
Andrew Miner 6b84698802 Fix mod page to properly transmit page events 2016-05-12 17:33:26 -07:00
Andrew Miner c85fca8357 Remove multiblock hover tracking event 2016-05-11 22:52:17 -07:00
Andrew Miner 16848772a3 Add GoogleAnalytics event tracking 2016-05-11 21:39:43 -07:00
Andrew Miner c441d75529 Fix layout issues on News Page 2016-05-07 14:50:06 -07:00
Andrew Miner 1bc89c1c89 Fix layout issues for News page 2016-05-07 14:47:07 -07:00
Andrew Miner 43202e9917 Add link to Twitter account
fixes #226
2016-05-07 14:41:47 -07:00
Andrew Miner 05bc1a271d Add support for Google Sitelinks
fixes #187
2016-05-07 13:36:49 -07:00
Andrew Miner da1419d6b6 Add a "Random Item" link to the breadcrumb bar
fixes #216
2016-05-07 12:25:21 -07:00
Andrew Miner 841fac38d3 Correct errors on mobile search feature
fixes #235, #233
2016-05-07 09:49:51 -07:00
Andrew Miner 2b8e23b32f Fix layout of video sections on mobile 2016-05-07 09:39:11 -07:00
Andrew Miner 5eae2bb488 Start editing after login needed for editing
When a user isn't logged in, click the "Edit" button on an item
description will initiate the login process.  After it is complete,
the user is placed back on the page where they started.  However,
the edit box remains closed.  So, after all the activity which
resulted in trying to edit, they user still has to click the edit
button one more time to actually start editing.

This change makes it so that the user returning from the login
process is placed directly into edit mode without having to click the
button a second time.

fixes #237
2016-05-07 08:12:39 -07:00
Andrew Miner 6fa18c764b Correct keyboard handling errors in item selector
fixes #227, #218
2016-05-06 21:30:41 -07:00
Andrew Miner c9796a142d Improve scrolling behavior on mobile
fixes #221
2016-05-05 21:20:41 -07:00
Andrew Miner 0718590f56 Don't use large inventory on mobile crafting page
fixes #219
2016-05-04 21:50:48 -07:00
Andrew Miner 51f566ebf1 Mark button for current page as active
fixes #232
2016-05-04 21:27:23 -07:00
Andrew Miner d2d904be7f Don't override index.html from prerendered pages 2016-05-04 20:20:44 -07:00
Andrew Miner 088994f366 Correct bug where prerendered pages don't display 2016-05-03 22:22:03 -07:00
Andrew Miner 184b64a6af No sourcemaps for CSS 2016-05-03 22:06:36 -07:00
Andrew Miner 4aca035709 Correct sizing problem with mod tiles 2016-05-03 20:42:36 -07:00
Andrew Miner ebf3443e96 Update Adsense to place ads on all devices
The current adsense implementation only places ads on desktop-sized
screens.  This change allows ads of the appropriate size to be
displayed on any device.

fixes #224
2016-05-03 20:25:56 -07:00
Andrew Miner fd5372b35d Add announcement of mobile site 2016-04-30 13:02:41 -07:00
Andrew Miner f464558cd2 Don't show "login" button on mobile 2016-04-30 13:00:14 -07:00
Andrew Miner e7cd3f0549 Complete mobile reactiveness in CSS layer 2016-04-30 11:31:49 -07:00
Andrew Miner 545408a7e7 Fixes for reactivity in Safari 2016-04-29 23:08:08 -07:00
Andrew Miner 83156c30c7 Initial progress towards responsive for mobile 2016-04-29 22:30:37 -07:00
Andrew Miner 636a8d061c Don't show page until fully loaded 2016-04-28 22:38:04 -07:00
Andrew Miner 2dbda99986 Allow FileCache to operate on file markers midline 2016-04-28 20:22:54 -07:00
Andrew Miner 7d83552013 Load all data files from a single archive 2016-04-27 22:47:44 -07:00
Andrew Miner 35bb12de6a Show crafting plan button only when craftable 2016-04-26 21:53:39 -07:00
Andrew Miner 1d1772e961 Make the mod version selector more clear
This change the single select box into a checkbox which toggles the
mod on/off.  If the mod is "on" and it has multiple versions, then
a selection list will be shown with the various possible versions.
If there is only a single available version, then the selector is
not shown.
2016-04-26 21:40:52 -07:00
Andrew Miner 6787063ac7 Prevent border around tool buttons on craft page 2016-04-26 20:31:51 -07:00
Andrew Miner 9e09b8d87c Make "outdated" background more pronounced 2016-04-26 20:25:20 -07:00
Andrew Miner 2c77972073 Correct several small bugs found in user testing
* The "Show Plan for Tools" link should open a new window each time
    it is clicked (i.e., don't re-use the same window)
  * Further customize the title of the crafting page to give some
    indication of what is being crafted
2016-04-25 21:54:28 -07:00
Andrew Miner 31f4594928 Don't show border on a pretending to be buttons 2016-04-24 15:21:12 -07:00
Andrew Miner eb9ac15de8 Show stack quantity tooltip for large quantities
When hovering over a quantity in an inventory display, if the
quantity is larger than one stack (i.e., 64 items), display a
tooltip showing the quantity in stacks (plus the remainder).
2016-04-24 15:17:46 -07:00
Andrew Miner e922f3c5cc Fix iOS viewport meta tag 2016-04-23 20:22:05 -07:00
Andrew Miner a8d08b93c5 Add reactive styles for Tablets 2016-04-23 20:10:09 -07:00
Andrew Miner 64e118a2c8 Open crafting plan for tools in a new window 2016-04-23 16:54:50 -07:00
Andrew Miner 6671541dcb Announce changes to crafting page 2016-04-23 11:58:48 -07:00
Andrew Miner 962165dc8e Don't automatically recalculate crafting plans
Instead, any time a change is made which invalidates a crafting plan,
update the visual display to show that the plan is out of date, and
add some extra affordances to recalculate.
2016-04-23 11:46:35 -07:00
Andrew Miner f9b65dd892 3.2.4 2016-04-21 22:59:37 -07:00
Andrew Miner 979586d9d3 Add Tinker's Construct 2016-04-21 22:59:00 -07:00
Andrew Miner c522e60e28 Fix router error on item page 2016-04-20 22:58:58 -07:00
Andrew Miner f9cd38947d Create item group controllers off main event loop 2016-04-20 22:30:55 -07:00
Andrew Miner 99b6cf2861 Don't clear user inventory between crafting plans 2016-04-20 22:30:14 -07:00
Andrew Miner d925a17940 Do not show pass-through items in derived items
For the various derived item groups on the item detail page, do not
show pass through items as being related (e.g., "Used to Make").
2016-04-20 22:28:42 -07:00
Andrew Miner a2bbdf4645 Improve perf. looking up item display data 2016-04-20 22:27:22 -07:00
Andrew Miner 93c98e16ac Further fixes of how passthrough items are handled
* When evaluating a plan, only give the pass-through treatment to
  items if the step they're part of was actually executed
* When marking a step "complete", ignore passthrough items
2016-04-16 20:33:05 -07:00
Andrew Miner 88e57b1200 Improve handling of pass-through items in recipes 2016-04-16 12:20:29 -07:00
Andrew Miner 1e96cf2d6c 3.2.3 2016-04-14 20:59:20 -07:00
Andrew Miner ccaf8e9842 Add ProjectRed 2016-04-14 20:54:44 -07:00
Andrew Miner e1f8282049 Fix bug with evaluating mod conditions 2016-04-10 14:10:23 -07:00
Andrew Miner d873c4b7f1 Fix layout bug on browse page in Safari 2016-04-10 14:09:56 -07:00
Andrew Miner 3529bccf3a Add back mods lost in website upgrade 2016-04-10 14:08:38 -07:00
Andrew Miner 29315f03f7 Clear screen after running tests during wait 2016-04-10 13:36:25 -07:00
Andrew Miner 5877a3234f Remove experimental session storage mechanism 2016-04-06 21:19:32 -07:00
Andrew Miner 6650413e59 Don't use SSL for server connections 2016-04-06 19:49:23 -07:00
Andrew Miner 197d7b1e1b Use same-domain addresses for API calls 2016-04-06 19:35:45 -07:00
Andrew Miner cdb2989c0a Store session cookie in local storage 2016-04-06 18:29:08 -07:00
Andrew Miner 76ae358878 Fix Gruntfile to actually uglify production code 2016-04-05 22:42:13 -07:00
Andrew Miner d47f174848 Add meta descriptions for new pages 2016-04-05 21:41:47 -07:00
Andrew Miner 59cc962cc0 Add "deploy" task to do staging and prod at once 2016-04-05 20:46:29 -07:00
Andrew Miner 6a98afa9f2 Include *.txt files when uploading to S3 2016-04-05 20:39:50 -07:00
Andrew Miner b6d17f985f Remove old news 2016-04-05 20:04:31 -07:00
Andrew Miner f7fdf71d63 Update news to announce the new site! 2016-04-05 19:58:26 -07:00
Andrew Miner a9bf0d1468 Update upload script to use correct environments 2016-04-05 18:38:24 -07:00
Andrew Miner 8bb25cd09a Correct errors in upload / deploy scripts 2016-04-05 18:30:21 -07:00
Andrew Miner 2f6af50d4b 3.2.2 2016-04-05 18:17:50 -07:00
Andrew Miner f70dd4a562 Update publish script to push new version 2016-04-05 18:17:28 -07:00
Andrew Miner 36a2f47686 3.2.1 2016-04-05 18:11:21 -07:00
Andrew Miner 302050583e Update copyright notice 2016-04-05 18:10:50 -07:00
Andrew Miner 2e4418d16a 3.2.0 2016-04-04 21:05:02 -07:00
Andrew Miner eef91c4ff7 Correct index.coffee error 2016-04-04 21:02:57 -07:00
Andrew Miner c4cd06b59e 3.1.1 2016-04-04 20:58:42 -07:00
Andrew Miner 96db9a07e9 Include constants in the NPM package 2016-04-04 20:58:19 -07:00
Andrew Miner ffdfe33b83 3.1.0 2016-04-04 19:39:16 -07:00
Andrew Miner 1f380f981e Add complete set of files for NPM package 2016-04-04 19:38:46 -07:00
Andrew Miner a45082d276 3.0.2 2016-04-04 19:22:31 -07:00
Andrew Miner 8bf15e2224 Include BaseModel NPM package 2016-04-04 19:22:05 -07:00
Andrew Miner b4714dace1 3.0.1 2016-04-04 19:13:34 -07:00
Andrew Miner d18cbb407a Update publish command to clean up 2016-04-04 19:13:12 -07:00
Andrew Miner 2cc3d04be2 3.0.0 2016-04-04 19:11:20 -07:00
Andrew Miner e59b541b1b Update build process to include NPM packaging 2016-04-04 19:10:59 -07:00
Andrew Miner 7b1930ef5c 2.0.0 2016-04-04 17:25:59 -07:00
Andrew Miner 536ff55bd5 Fix publish script 2016-04-04 17:25:42 -07:00
Andrew Miner 39ceaa9223 Include gif files in S3 upload 2016-04-03 22:56:48 -07:00
Andrew Miner c91e0a6019 Allow site to recognize "staging.crafting-guid..." 2016-04-03 21:22:23 -07:00
Andrew Miner 150b9ae0e3 Use "staging.craftin..." instead of "new.crafti.." 2016-04-03 21:12:30 -07:00
Andrew Miner c608ad4218 Ensure upload task fails if upload fails 2016-04-03 20:59:57 -07:00
Andrew Miner fce0f45104 Report failures in upload for CircleCI 2016-04-03 20:46:37 -07:00
Andrew Miner 2f1793e62a Grant sudo to pip command 2016-04-03 20:37:29 -07:00
Andrew Miner 1397998ab0 Add CircleCI dependencies for building 2016-04-03 20:33:43 -07:00
Andrew Miner a54b57514e Fix error in Gruntfile 2016-04-03 20:23:54 -07:00
Andrew Miner aa1589f23b Update build to use correct command in CircleCI 2016-04-03 20:20:40 -07:00
Andrew Miner d3f78e9349 Update circle.ci to install grunt 2016-04-03 20:00:10 -07:00
Andrew Miner a73850897f Add dist command to build process 2016-04-03 19:55:24 -07:00
Andrew Miner 5895ac6d30 Update staging deployment scripts 2016-04-03 19:39:58 -07:00
Andrew Miner d69585facd Refactor website with new design & structure 2016-04-03 19:30:15 -07:00
468 changed files with 14472 additions and 44429 deletions
+4 -1
View File
@@ -1,9 +1,12 @@
*.log *.log
*.swp
.DS_Store .DS_Store
.env
.sass-cache .sass-cache
.tm_properties
aws.config aws.config
build build
deploy deploy
dist dist
node_modules node_modules
src/coffee/views.js templates.js
+1
View File
@@ -0,0 +1 @@
2.2.0
+206 -91
View File
@@ -1,62 +1,73 @@
### #
# Crafting Guide - Gruntfile.coffee # Crafting Guide - Gruntfile.coffee
# #
# Copyright (c) 2014 by Redwood Labs # Copyright © 2014-2017 by Redwood Labs
# All rights reserved. # All rights reserved.
### #
fs = require 'fs' fs = require 'fs'
util = require 'util'
######################################################################################################################## EXTERNAL_LIBS = [
'backbone'
LIBRARY_ALIAS_MAPPING = [ 'jquery'
'./node_modules/backbone/backbone.js:backbone' 'marked'
'./node_modules/jade/runtime.js:jade' 'underscore'
'./node_modules/jquery/dist/jquery.js:jquery' 'underscore.inflections'
'./node_modules/underscore/underscore.js:underscore' 'when'
'./node_modules/when/when.js:when' './vendor/email.js:emailjs'
] ]
LIBRARIES = (s.substring(0, s.indexOf(':')) for s in LIBRARY_ALIAS_MAPPING) ########################################################################################################################
ALIASES = (s.substring(s.indexOf(':') + 1) for s in LIBRARY_ALIAS_MAPPING)
module.exports = (grunt)-> module.exports = (grunt)->
grunt.loadTasks tasks for tasks in grunt.file.expand './node_modules/grunt-*/tasks' grunt.loadTasks tasks for tasks in grunt.file.expand './node_modules/grunt-*/tasks'
grunt.config.init grunt.config.init
browserify:
dev:
options:
browserifyOptions:
debug: true
extensions: ['.coffee']
transform: ['coffeeify']
files: './dist/js/main.js': ['./src/coffee/main.coffee']
prod:
options:
browserifyOptions:
extensions: ['.coffee']
transform: ['coffeeify']
files: './dist/js/main.js': ['./src/coffee/main.coffee']
coffee: compress:
dev: static:
options: options:
sourceMap: true mode: 'gzip'
files: [expand:true, cwd:'./src/coffee', src:'**/*.coffee', dest:'./dist', ext:'.js'] files: [
{expand: true, cwd:'./build/static', src:'**/*.css', dest:'./dist/'}
clean: {expand: true, cwd:'./build/static', src:['**/*.html', '!**/index.html'], dest:'./dist/'}
dist: ['./dist'] {expand: true, cwd:'./build/static', src:'**/*.ugly.js', dest:'./dist/', ext: '.js'}
{expand: true, cwd:'./build/static', src:'**/*.json', dest:'./dist/'}
{expand: true, cwd:'./build/static', src:'**/*.ttf', dest:'./dist/'}
{expand: true, cwd:'./build/static', src:'**/*.txt', dest:'./dist/'}
]
copy: copy:
styles: assets_build:
files: [expand:true, cwd:'./src/css', src:'**/*.scss', dest:'./dist/src/css'] files: [
{expand:true, cwd:'./assets/', src:'**/*', dest:'./build/static'}
]
env_build:
files: [
{expand:true, cwd:'.', src:'.env', dest:'./build'}
]
build_to_dist:
files: [
expand: true
cwd: './build/static/'
src: ['**/*', '!**/*.map', '!**/*.js', '!index.html']
dest: './dist'
]
common_source:
files: [
{expand:true, cwd:'./src/common', src:'**/*.coffee', dest:'./build', ext:'.coffee'}
]
server_source:
files: [
{expand:true, cwd:'./src/server', src:'**/*.coffee', dest:'./build', ext:'.coffee'}
]
exorcise: clean:
dev: assets: ['./build/static/data', './build/static/images']
files: './dist/js/main.js.map': ['./dist/js/main.js'] build: ['./build']
dist: ['./dist']
templates: ['./src/client/site/templates.js']
jade: jade:
pages: pages:
@@ -64,53 +75,53 @@ module.exports = (grunt)->
pretty: true pretty: true
files: [ files: [
expand: true expand: true
cwd: './src/jade' cwd: './src/client/site'
src: '*.jade' src: '**/index.jade'
dest: './dist' dest: './build/static'
ext: '.html' ext: '.html'
] ]
templates: templates:
options: options:
client: true client: true
node: true node: true
processName: (f)-> processName: (path)->
f = f.replace './src/jade/templates/', '' pathElements = path.split '\/'
f = f.replace '.jade', '' while true
f = f.replace /\//g, '_' element = pathElements.shift()
return f break if element is 'site'
pathElements.pop()
name = pathElements.join '/'
name = name.replace '.jade', ''
return name
files: files:
'./src/coffee/views.js': ['./src/jade/templates/**/*.jade'] './src/client/site/templates.js': ['./src/client/site/**/!(index)*.jade']
mochaTest: mochaTest:
options: options:
bail: true bail: false
color: true color: true
reporter: 'dot' reporter: 'list'
require: [ require: [
'coffee-script/register' 'coffee-script/register'
'./test/test_helper.coffee' './src/test_helper.coffee'
] ]
verbose: true verbose: true
src: ['./test/**/*.test.coffee'] src: ['./src/**/*.test.coffee']
rsync:
static:
options:
src: './static/'
dest: './dist/'
recursive: true
sass: sass:
build: all:
files:
'./dist/css/main.css': ['./src/scss/main.scss']
dist:
options: options:
sourcemap: 'none' sourcemap: 'none'
style: 'compressed'
files: files:
'./dist/css/main.css': ['./src/scss/main.scss'] './build/static/main.css': [ './build/imports.scss' ]
sass_globbing:
all:
files:
'./build/imports.scss': [
'./src/client/styles/main.scss'
'./src/client/site/**/*.scss'
]
uglify: uglify:
scripts: scripts:
@@ -118,46 +129,150 @@ module.exports = (grunt)->
maxLineLen: 20 maxLineLen: 20
files: [ files: [
expand: true expand: true
cwd: './dist/js' cwd: './build/static'
src: '**/*.js' src: '**/*.js'
dest: './dist/js' dest: './build/static'
ext: '.ugly.js'
] ]
watch: watch:
static: assets:
files: ['./static/**/*'] files: ['./assets/**/*']
tasks: ['rsync:static'] tasks: ['copy:assets_build']
coffee: client_source:
files: ['./src/**/*.coffee', './src/**/*.js'] files: ['./src/{client,common}/**/*.coffee']
tasks: ['browserify:dev', 'exorcise'] tasks: ['browserify:internal']
jade: server_source:
files: ['./src/**/*.jade'] files: ['./src/{common,server}/**/*.coffee']
tasks: ['jade:pages', 'jade:templates'] tasks: ['copy:server_source']
jade_pages:
files: ['./src/**/index.jade']
tasks: ['jade:pages']
jade_templates:
files: ['./src/**/!(index).jade']
tasks: ['jade:templates', 'browserify:internal']
sass: sass:
files: ['./src/**/*.scss'] files: ['./src/**/*.scss']
tasks: ['sass', 'copy:styles'] tasks: ['sass']
test: test:
files: ['./src/**/*.coffee', './src/**/*.js', './test/**/*.coffee'] files: ['./src/**/*.coffee', './src/**/*.js', './test/**/*.coffee']
tasks: ['test'] tasks: ['script:clear', 'test']
grunt.registerTask 'default', 'build' # Compound Tasks ###################################################################################################
grunt.registerTask 'build', ['rsync', 'sass:build', 'jade', 'copy', 'browserify:dev', 'exorcise'] grunt.registerTask 'build', 'build the project to be run from a local server',
['jade', 'build:copy', 'build:css', 'browserify:external', 'browserify:internal']
grunt.registerTask 'dist', ['rsync', 'sass:dist', 'jade', 'copy', 'browserify:prod', 'uglify'] grunt.registerTask 'build:copy', 'helper task for build',
['copy:assets_build', 'copy:env_build', 'copy:common_source', 'copy:server_source']
grunt.registerTask 'prepublish', ['clean', 'coffee'] grunt.registerTask 'build:css', 'helper task for build',
['sass_globbing', 'sass']
grunt.registerTask 'use-local-deps', -> grunt.registerTask 'default', 'rebuild the project from scratch and start a local HTTP server',
grunt.file.mkdir './node_modules' ['clean', 'start']
grunt.file.delete './node_modules/crafting-guide-common', force:true
fs.symlinkSync '../../crafting-guide-common/', './node_modules/crafting-guide-common'
grunt.registerTask 'test', ['mochaTest'] grunt.registerTask 'deploy', 'deploy to both staging and production via CircleCI',
['deploy:staging', 'deploy:prod']
grunt.registerTask 'watch-dev', ['clean', 'build', 'watch'] grunt.registerTask 'deploy:prod', 'deploy the project to production via CircleCI',
['script:deploy:prod']
grunt.registerTask 'watch-test', ['clean', 'build', 'watch:test'] grunt.registerTask 'deploy:staging', 'deploy the project to staging via CircleCI',
['script:deploy:staging']
grunt.registerTask 'dist', 'build the project to be run from Amazon S3',
['build', 'copy:build_to_dist', 'uglify', 'compress']
grunt.registerTask 'publish', 'publish the project to NPM',
['prepublish', 'script:publish', 'clean', 'build']
grunt.registerTask 'start', 'build the project and start a local HTTP server',
['script:start']
grunt.registerTask 'test', 'run unit tests',
['mochaTest']
grunt.registerTask 'upload:prod', 'upload the project to the production Amazon S3 environment',
['dist', 'script:s3_upload:prod']
grunt.registerTask 'upload:staging', 'upload the project the staging Amazon S3 environment',
['dist', 'script:s3_upload:staging']
grunt.registerTask 'use-local-deps', 'use local dependencies instead of NPM dependencies',
['script:use_local_deps']
# Code Tasks #######################################################################################################
grunt.registerTask 'browserify:external', "Bundle 3rd-party libraries used in the app", ->
grunt.file.mkdir './build/static'
done = this.async()
args = [].concat ("--require=#{lib}" for lib in EXTERNAL_LIBS), [
'--outfile=./build/static/external.js'
]
options = cmd:'browserify', args:args
grunt.util.spawn options, (error)->
console.log error if error?
done()
grunt.registerTask 'browserify:internal', "Bundle source files needed in the browser", ->
grunt.file.mkdir './build/static'
done = this.async()
libs = []
for lib in EXTERNAL_LIBS
parts = lib.split ':'
libs.push parts[parts.length-1]
args = [].concat ("--external=#{lib}" for lib in libs), [
'--extension=.coffee'
'--outfile=./build/static/internal.js'
'--transform=coffeeify'
'./src/client/client.coffee'
]
options = cmd:'browserify', args:args
grunt.util.spawn options, (error)->
console.log error if error?
done()
# Script Tasks #####################################################################################################
grunt.registerTask 'script:clear', "clear the current terminal buffer", ->
done = this.async()
grunt.util.spawn cmd:'./scripts/clear_buffer', opts:{stdio:'inherit'}, (error)-> done(error)
grunt.registerTask 'script:deploy:prod', "deploy code by copying to the production branch", ->
done = this.async()
grunt.util.spawn cmd:'./scripts/deploy', args:['--prod'], opts:{stdio:'inherit'}, (error)-> done(error)
grunt.registerTask 'script:deploy:staging', "deploy code by copying to the staging branch", ->
done = this.async()
grunt.util.spawn cmd:'./scripts/deploy', args:['--staging'], opts:{stdio:'inherit'}, (error)-> done(error)
grunt.registerTask 'script:publish', 'publishes this package to NPM', ->
done = this.async()
grunt.util.spawn cmd:'./scripts/publish', opts:{stdio:'inherit'}, (error)-> done(error)
grunt.registerTask 'script:s3_upload:prod', 'uploads all static content to S3', ->
done = this.async()
grunt.util.spawn cmd:'./scripts/s3_upload', args:['--prod'], opts:{stdio:'inherit'}, (error)-> done(error)
grunt.registerTask 'script:s3_upload:staging', 'uploads all static content to S3', ->
done = this.async()
grunt.util.spawn cmd:'./scripts/s3_upload', args:['--staging'], opts:{stdio:'inherit'}, (error)-> done(error)
grunt.registerTask 'script:start', "start a local HTTP server on port 8080", ->
done = this.async()
grunt.util.spawn cmd:'./scripts/start', opts:{stdio:'inherit'}, (error)-> done(error)
grunt.registerTask 'script:use_local_deps', "use local dependencies instead of NPM dependencies", ->
done = this.async()
grunt.util.spawn cmd:'./scripts/use_local_deps', opts:{stdio:'inherit'}, (error)-> done(error)
# Command-Line Argument Processing #################################################################################
args = process.argv[..] args = process.argv[..]
while args.length > 0 while args.length > 0
-2
View File
@@ -2,8 +2,6 @@
Crafting Guide is the ultimate step-by-step guide for making anything in Minecraft. From the your first [crafting table](http://crafting-guide.com/item/crafting_table) all the way up to your IndustrialCraft2 [QuantumSuit Bodyarmor](http://crafting-guide.com/item/quantumsuit_bodyarmor), Crafting Guide breaks down the recipes to raw ingredients and displays step-by-step instructions for what to craft, how much to craft, and in what order. It also supports crafting multiple items at once, and can even include crafting the necessary tools in the step-by-step instructions. Crafting Guide is the ultimate step-by-step guide for making anything in Minecraft. From the your first [crafting table](http://crafting-guide.com/item/crafting_table) all the way up to your IndustrialCraft2 [QuantumSuit Bodyarmor](http://crafting-guide.com/item/quantumsuit_bodyarmor), Crafting Guide breaks down the recipes to raw ingredients and displays step-by-step instructions for what to craft, how much to craft, and in what order. It also supports crafting multiple items at once, and can even include crafting the necessary tools in the step-by-step instructions.
**Check out the [Trello Board](https://trello.com/b/s9N0aTYd/crafting-guide) to see what's coming up!**
## Adding new features ## Adding new features
If there's something you'd like to see Crafting Guide do, feel free to open an issue against this project. Be sure to describe exactly what you have in mind, and explain why you think it would benefit everyone who uses Crafting Guide. If you like, you can even clone the repository and get started on implementing it yourself! If there's something you'd like to see Crafting Guide do, feel free to open an issue against this project. Be sure to describe exactly what you have in mind, and explain why you think it would benefit everyone who uses Crafting Guide. If you like, you can even clone the repository and get started on implementing it yourself!
BIN
View File
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
google-site-verification: google077275160ac09f2f.html

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 957 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Before

Width:  |  Height:  |  Size: 68 B

After

Width:  |  Height:  |  Size: 68 B

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Before

Width:  |  Height:  |  Size: 206 B

After

Width:  |  Height:  |  Size: 206 B

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Before

Width:  |  Height:  |  Size: 801 B

After

Width:  |  Height:  |  Size: 801 B

Before

Width:  |  Height:  |  Size: 860 B

After

Width:  |  Height:  |  Size: 860 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 723 B

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

+7 -4
View File
@@ -1,12 +1,15 @@
dependencies: dependencies:
pre: pre:
- gem install sass --version ">= 3.4" - gem install sass --version "= 3.4"
- sudo -H pip install s3cmd
- npm install -g browserify
- npm install -g grunt-cli
deployment: deployment:
staging: staging:
branch: master branch: staging
commands: commands:
- ./scripts/deploy --staging - grunt upload:staging
production: production:
branch: production branch: production
commands: commands:
- ./scripts/deploy --production - grunt upload:prod
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 860 B

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 460 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 630 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More