rename build/ to min/

This commit is contained in:
rolux 2014-09-26 18:57:12 +02:00
commit 383433a06d
25 changed files with 84 additions and 75 deletions

View file

@ -13,9 +13,9 @@
version = +new Date();
if (args[0] === true && regexp.test(path)) {
path = path.replace(regexp, 'build/');
path = path.replace(regexp, 'min/');
loadScript('Ox.js', function() {
Ox.MODE = 'build';
Ox.MODE = 'min';
Ox.PATH = path;
Ox.load.apply(null, Ox.slice(args, 1));
});

View file

@ -101,7 +101,7 @@ Ox.PATH = (function() {
}
}
}());
//@ Ox.MODE <s> Mode ('build' or 'dev')
//@ Ox.MODE <s> Mode ('dev' or 'min')
Ox.MODE = Ox.PATH.slice(0, -1).split('/').pop();
//@ Ox.PREFIXES <[str]> `['', 'K', 'M', 'G', 'T', 'P']`
Ox.PREFIXES = ['', 'K', 'M', 'G', 'T', 'P'];

View file

@ -14,7 +14,7 @@ this.Ox = function(value) {
/*@
Ox.load <f> Loads OxJS and, optionally, one or more modules
To load OxJS, include `/build/Ox.js` (minified version) or `/dev/Ox.js`
To load OxJS, include `/min/Ox.js` (minified version) or `/dev/Ox.js`
(development version), and use `Ox.load(callback)` at the beginning of your
program. The callback will run once OxJS is loaded and the document is
ready. To choose the version programatically (for example: minified version

View file

@ -36,12 +36,12 @@
translations = {};
Ox.forEach(Ox.LOCALES, function(locales, module) {
if (
(!module || Ox.load[module])
(module == 'Ox' || Ox.load[module])
&& Ox.contains(locales, locale)
) {
urls.push([
Ox.PATH + 'Ox' + (module ? '.' + module : '')
+ '/json/locale.' + locale + '.json'
Ox.PATH + module + '/json/locale.'
+ locale + '.json'
]);
}
});