js build optimization

This commit is contained in:
Exodus4D
2015-08-26 21:31:02 +02:00
parent 06cefd7810
commit 8625a7d22b
37 changed files with 6419 additions and 2377 deletions

9
node_modules/requirejs/README.md generated vendored Normal file
View File

@@ -0,0 +1,9 @@
# requirejs
RequireJS for use in Node. includes:
* r.js: the RequireJS optimizer, and AMD runtime for use in Node.
* require.js: The browser-based AMD loader.
More information at http://requirejs.org

View File

@@ -6,7 +6,7 @@
//then all the files from the app directory will be copied to the dir:
//output area, and baseUrl will assume to be a relative path under
//this directory.
appDir: "../../js",
appDir: "../../../js",
//By default, all modules are located relative to this path. If baseUrl
//is not explicitly set, then all modules are loaded relative to
@@ -24,7 +24,7 @@
//or require.config({}) call found in that file will be used.
//As of 2.1.10, mainConfigFile can be an array of values, with the last
//value's config take precedence over previous values in the array.
mainConfigFile: '../../js/app.js',
mainConfigFile: '../../../js/app.js',
//Specify modules to stub out in the optimized file. The optimizer will
//use the source version of these modules for dependency tracing and for
@@ -183,7 +183,8 @@
// show module names for each file
if(moduleName === 'mappage'){
// test :)
// perform transformations on the original source
contents = contents.replace( /#version/i, new Date().toString() );
}
return contents;
@@ -196,7 +197,7 @@
//The directory path to save the output. If not specified, then
//the path will default to be a directory called "build" as a sibling
//to the build file. All relative paths are relative to the build file.
dir: "../../build_js"
dir: "../../../build_js"

File diff suppressed because one or more lines are too long

58
node_modules/requirejs/package.json generated vendored Normal file
View File

@@ -0,0 +1,58 @@
{
"name": "requirejs",
"description": "Node adapter for RequireJS, for loading AMD modules. Includes RequireJS optimizer",
"version": "2.1.20",
"homepage": "http://github.com/jrburke/r.js",
"author": {
"name": "James Burke",
"email": "jrburke@gmail.com",
"url": "http://github.com/jrburke"
},
"licenses": [
{
"type": "BSD",
"url": "https://github.com/jrburke/r.js/blob/master/LICENSE"
},
{
"type": "MIT",
"url": "https://github.com/jrburke/r.js/blob/master/LICENSE"
}
],
"repository": {
"type": "git",
"url": "git+https://github.com/jrburke/r.js.git"
},
"main": "./bin/r.js",
"bin": {
"r.js": "./bin/r.js"
},
"engines": {
"node": ">=0.4.0"
},
"bugs": {
"url": "https://github.com/jrburke/r.js/issues"
},
"_id": "requirejs@2.1.20",
"scripts": {},
"_shasum": "114822c917ec8793450b2daaa1eb9bbf1101e931",
"_from": "requirejs@*",
"_npmVersion": "2.12.1",
"_nodeVersion": "0.10.36",
"_npmUser": {
"name": "jrburke",
"email": "jrburke@gmail.com"
},
"maintainers": [
{
"name": "jrburke",
"email": "jrburke@gmail.com"
}
],
"dist": {
"shasum": "114822c917ec8793450b2daaa1eb9bbf1101e931",
"tarball": "http://registry.npmjs.org/requirejs/-/requirejs-2.1.20.tgz"
},
"directories": {},
"_resolved": "https://registry.npmjs.org/requirejs/-/requirejs-2.1.20.tgz",
"readme": "ERROR: No README data found!"
}

2103
node_modules/requirejs/require.js generated vendored Normal file

File diff suppressed because it is too large Load Diff