-
-
Save tobie/1471227 to your computer and use it in GitHub Desktop.
Revisions
-
tobie revised this gist
Dec 13, 2011 . 1 changed file with 1 addition and 1 deletion.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,4 +1,4 @@ require('modulr').buildFromPackage(__dirname, function(e, result) { if (e) { throw e; } -
tobie revised this gist
Dec 13, 2011 . 2 changed files with 12 additions and 14 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,15 +1,6 @@ require('modulr').buildFromPackage(function(e, result) { if (e) { throw e; } console.log(result); }); 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,7 @@ { "main": "./client", "modulr": [".", "./node_modules"], "directories": { "lib": "." } } -
Dan Dean revised this gist
Dec 13, 2011 . 1 changed file with 0 additions and 4 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,7 +1,3 @@ // 1. Collect our modules, using the specified directories... require('modulr').build('client', { -
Dan Dean revised this gist
Dec 13, 2011 . 1 changed file with 14 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,20 +1,19 @@ var fs = require('fs'); var path = require('path'); var modulr = require('modulr'); // 1. Collect our modules, using the specified directories... require('modulr').build('client', { isPackageAware: true, paths: ['.','./node_modules'], }, function(e, result) { if (e) { throw e; } console.log(result); } ); // 2. Done! -
Dan Dean created this gist
Dec 13, 2011 .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,20 @@ var fs = require('fs'); var path = require('path'); var modulr = require('modulr'); // 1. Collect a list of package directories from node_modules: var dirs = fs.readdirSync('./node_modules').map(function(x) { return path.join('.', 'node_modules', x); }); // 2. Add the current directory, which contains our main source... dirs.unshift('.'); // 3. Collect our modules, using the specified directories... require('modulr').build('client', { paths: dirs, }, function(e, result) { if (e) { throw e; } console.log(result); });