From 50d6b898380331e4aeebb0703204f4780e32d69f Mon Sep 17 00:00:00 2001 From: Stephen Grider Date: Sat, 21 Mar 2015 15:30:34 -0700 Subject: [PATCH] tooling - part 5 --- thumbnail-gulp/.gitignore | 1 + thumbnail-gulp/index.html | 3 +-- thumbnail-gulp/main.js | 23 ----------------------- thumbnail-gulp/src/app.jsx | 6 +++++- thumbnail-gulp/src/badge.jsx | 4 +++- thumbnail-gulp/src/thumbnail-list.jsx | 5 ++++- thumbnail-gulp/src/thumbnail.jsx | 5 ++++- 7 files changed, 18 insertions(+), 29 deletions(-) delete mode 100644 thumbnail-gulp/main.js diff --git a/thumbnail-gulp/.gitignore b/thumbnail-gulp/.gitignore index c2658d7..deb381b 100644 --- a/thumbnail-gulp/.gitignore +++ b/thumbnail-gulp/.gitignore @@ -1 +1,2 @@ node_modules/ +main.js diff --git a/thumbnail-gulp/index.html b/thumbnail-gulp/index.html index 9ebbe15..177ab1d 100644 --- a/thumbnail-gulp/index.html +++ b/thumbnail-gulp/index.html @@ -1,9 +1,8 @@ - -
+ diff --git a/thumbnail-gulp/main.js b/thumbnail-gulp/main.js deleted file mode 100644 index 2077597..0000000 --- a/thumbnail-gulp/main.js +++ /dev/null @@ -1,23 +0,0 @@ -(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o {this.props.title} {this.props.number} diff --git a/thumbnail-gulp/src/thumbnail-list.jsx b/thumbnail-gulp/src/thumbnail-list.jsx index 9b44b91..a5a7c46 100644 --- a/thumbnail-gulp/src/thumbnail-list.jsx +++ b/thumbnail-gulp/src/thumbnail-list.jsx @@ -1,4 +1,7 @@ -var ThumbnailList = React.createClass({ +var React = require('react'); +var Thumbnail = require('./thumbnail'); + +module.exports = React.createClass({ render: function() { var list = this.props.thumbnailData.map(function(thumbnailProps){ return diff --git a/thumbnail-gulp/src/thumbnail.jsx b/thumbnail-gulp/src/thumbnail.jsx index 7305319..897ae56 100644 --- a/thumbnail-gulp/src/thumbnail.jsx +++ b/thumbnail-gulp/src/thumbnail.jsx @@ -1,4 +1,7 @@ -var Thumbnail = React.createClass({ +var React = require('react'); +var Badge = require('./badge'); + +module.exports = React.createClass({ render: function() { return