Commit d1de88c8 authored by Ryan LeFevre's avatar Ryan LeFevre

First working example with browserify

parents
.DS_Store
node_modules
index.html
(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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
var File, PSD;
File = require('./psd/file.coffee');
module.exports = PSD = (function() {
function PSD(data) {
this.file = new File(data);
}
return PSD;
})();
},{"./psd/file.coffee":2}],2:[function(require,module,exports){
var File;
module.exports = File = (function() {
function File(data) {}
return File;
})();
},{}]},{},[1])
\ No newline at end of file
require('coffee-script/register');
module.exports = require('./lib/psd.coffee');
\ No newline at end of file
File = require './psd/file.coffee'
module.exports = class PSD
constructor: (data) ->
@file = new File(data)
\ No newline at end of file
module.exports = class File
constructor: (data) ->
\ No newline at end of file
{
"name": "psd",
"version": "0.0.1",
"dependencies": {
"coffee-script": "~ 1.7.1"
},
"devDependencies": {
"coffeeify": "~ 0.6.0"
},
"browserify": {
"transform": ["coffeeify"]
},
"scripts": {
"compile": "browserify ./lib/psd.coffee > ./dist/psd.js"
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment