reorganized for building

This commit is contained in:
Alan Kligman 2013-12-14 22:36:24 -05:00
parent 45fdb7aa66
commit e17acff0b1
7 changed files with 31 additions and 17 deletions

View File

@ -1,5 +1,5 @@
var IDBFS = require( "src/fs" );
var IDBFS = require( "src/index" );
return IDBFS;

19
dist/idbfs.js vendored
View File

@ -4054,7 +4054,7 @@ define('src/adapters/adapters',['require','src/adapters/crypto','src/adapters/zl
};
});
define('src/fs',['require','nodash','encoding','src/path','src/path','src/path','src/shared','src/shared','src/shared','src/error','src/error','src/error','src/error','src/error','src/error','src/error','src/error','src/error','src/error','src/error','src/error','src/error','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/providers/providers','src/adapters/adapters','src/path'],function(require) {
define('src/fs',['require','nodash','encoding','src/path','src/path','src/path','src/shared','src/shared','src/shared','src/error','src/error','src/error','src/error','src/error','src/error','src/error','src/error','src/error','src/error','src/error','src/error','src/error','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/constants','src/providers/providers','src/adapters/adapters'],function(require) {
var _ = require('nodash');
@ -5952,14 +5952,21 @@ define('src/fs',['require','nodash','encoding','src/path','src/path','src/path',
if(error) callback(error);
};
return {
FileSystem: FileSystem,
Path: require('src/path')
};
return FileSystem;
});
var IDBFS = require( "src/fs" );
define('src/index',['require','src/fs','src/fs','src/path'],function(require) {
var fs = require('src/fs');
return {
FileSystem: require('src/fs'),
Path: require('src/path')
}
});
var IDBFS = require( "src/index" );
return IDBFS;

8
dist/idbfs.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -37,7 +37,7 @@ module.exports = function(grunt) {
},
baseUrl: "lib",
name: "build/almond",
include: ["src/fs"],
include: ["src/index"],
out: "dist/idbfs.js",
optimize: "none",
wrap: {

View File

@ -1896,9 +1896,6 @@ define(function(require) {
if(error) callback(error);
};
return {
FileSystem: FileSystem,
Path: require('src/path')
};
return FileSystem;
});

10
src/index.js Normal file
View File

@ -0,0 +1,10 @@
define(function(require) {
var fs = require('src/fs');
return {
FileSystem: require('src/fs'),
Path: require('src/path')
}
});

View File

@ -8,7 +8,7 @@ require.config({
"tests": "../tests",
"src": "../src",
"spec": "../tests/spec",
"IDBFS": "../src/fs"
"IDBFS": "../src/index"
},
baseUrl: "../lib",
optimize: "none",