- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrectangular.js
More file actions
Latest commit
54 lines (51 loc) · 1.22 KB
/
Copy pathrectangular.js
File metadata and controls
54 lines (51 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
"use strict";
/**
* Rectangular
* Author: Jared Abbott
* URL: https://github.com/abbotto/rectangular/
* Copyright 2016-2017 Jared Abbott
* Distributed under the MIT license
*/
(functionRectangular(name,context,factory){
if(typeofmodule!=="undefined"&&module.exports){
module.exports=factory();
}
elseif(typeofdefine==="function"&&define.amd){
define(factory);
}
else{
context[name]=factory();
}
}(
"rectangular",
this,
()=>{
constmethods={
env: (deps,root)=>{
require(__dirname+"/src/env.js")(deps,root);
},
scripts: (deps,root)=>{
require(__dirname+"/src/script.js")(deps,root);
},
fonts: (deps,root)=>{
require(__dirname+"/src/font.js")(deps,root);
},
images: (deps,root)=>{
require(__dirname+"/src/image.js")(deps,root);
},
routes: (deps,root)=>{
require(__dirname+"/src/route.js")(deps,root);
},
specs: (deps,root)=>{
require(__dirname+"/src/spec.js")(deps,root);
},
styles: (deps,root,config)=>{
require(__dirname+"/src/style.js")(deps,root,config);
},
templates: (deps,root)=>{
require(__dirname+"/src/template.js")(deps,root);
}
};
returnmethods;
}
));