Last active
October 27, 2015 13:23
Revisions
-
akre54 revised this gist
Jun 20, 2015 . 3 changed files with 10 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,2 @@ var Backbone = require('backbone'); console.log(new Backbone.View); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,11 +10,10 @@ "license": "MIT", "dependencies": { "backbone": "1.2.0", "zepto": "0.0.4" }, "devDependencies": { "exports-loader": "^0.6.2", "webpack": "^1.9.11" } } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,11 +13,13 @@ var webpackConfig = module.exports = { }, module: { loaders: [ { test: /zepto(\.min)?\.js$/, loader: "exports?Zepto; delete window.$; delete window.Zepto;" } ] }, resolve: { alias: { jquery$: "zepto/zepto.min.js" } } }; -
akre54 revised this gist
Jun 15, 2015 . 5 changed files with 30 additions and 15 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,2 @@ node_modules out.js* This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,3 @@ var Backbone = require('backbone'), NativeView = require('backbone.nativeview'); console.log(NativeView); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,6 +13,8 @@ "backbone.nativeview": "^0.3.3" }, "devDependencies": { "imports-loader": "^0.6.4", "node-libs-browser": "^0.5.2", "webpack": "^1.9.11" } } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ var webpack = require('webpack'); var webpackConfig = module.exports = { devtool: 'source-map', debug: true, watch: true, entry: { out: __dirname + '/index' }, output: { path: __dirname, filename: '[name].js' }, module: { loaders: [ { test: /backbone\.js$/, loader: 'imports?define=>false' } ] }, plugins: [ new webpack.IgnorePlugin(/^jquery$/) ], }; -
akre54 revised this gist
Jun 2, 2015 . 3 changed files with 5 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,6 +4,7 @@ var fs = require('fs'), browserify = require('browserify'); browserify(['./index.js']) .exclude('jquery') .bundle() .pipe(fs.createWriteStream(__dirname + '/out.js')); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,3 @@ var Backbone = require("backbone"), NativeView = require("backbone.nativeview"); console.log(new NativeView); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "backbone": "1.2.0", "backbone.nativeview": "^0.3.3" }, "devDependencies": { "browserify": "^9.0.3" -
akre54 revised this gist
Jun 2, 2015 . 2 changed files with 3 additions and 15 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,9 @@ #!/usr/bin/env node var fs = require('fs'), browserify = require('browserify'); browserify(['./index.js']) .bundle() .pipe(fs.createWriteStream(__dirname + '/out.js')); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,21 +8,11 @@ }, "author": "Adam Krebs <amk528@cs.nyu.edu> (http://sberkmada.com/)", "license": "MIT", "dependencies": { "backbone": "1.2.0", "jquery": "^2.1.4" }, "devDependencies": { "browserify": "^9.0.3" } } -
akre54 revised this gist
May 28, 2015 . 2 changed files with 9 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,10 +2,10 @@ var fs = require('fs'), browserify = require('browserify'), shim = require('browserify-shim'); browserify(['./index.js']) .transform(shim, {global: true}) .bundle() .pipe(fs.createWriteStream(__dirname + '/out.js')); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,19 +9,20 @@ "author": "Adam Krebs <amk528@cs.nyu.edu> (http://sberkmada.com/)", "license": "MIT", "browserify": { "transform": [ "browserify-shim" ] }, "browserify-shim": { "jquery": "global:$" }, "dependencies": { "backbone": "1.2.0", "zepto": "0.0.4" }, "devDependencies": { "aliasify": "^1.7.2", "browserify": "^9.0.3", "browserify-shim": "^3.8.7" } } -
akre54 created this gist
May 28, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ node_modules out.js This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ #!/usr/bin/env node var fs = require('fs'), browserify = require('browserify'), aliasify = require('aliasify'); browserify(['./index.js']) .transform(aliasify, {global: true}) .bundle() .pipe(fs.createWriteStream(__dirname + '/out.js')); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ var Backbone = require("backbone"); console.log(new Backbone.View); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ { "name": "dep-test", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Adam Krebs <amk528@cs.nyu.edu> (http://sberkmada.com/)", "license": "MIT", "browserify": { "transform": ["aliasify"] }, "aliasify": { "aliases": { "jquery": "./node_modules/zepto/zepto.min.js" } }, "dependencies": { "backbone": "1.2.0", "zepto": "0.0.4" }, "devDependencies": { "aliasify": "^1.7.2", "browserify": "^9.0.3" } }