Skip to content

Commit 1defddc

Browse files
committed
add r.js (still not working, don't worrie)
1 parent 118433b commit 1defddc

File tree

7 files changed

+30636
-5
lines changed

7 files changed

+30636
-5
lines changed

Diff for: .gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ tmp
66
.DS_Store
77
.idea
88
.npm-debug.log
9-
app_requir
9+
app_requir
10+
target/

Diff for: README.md

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ https://github.com/siddii/angular-timer
2424
https://github.com/EvanHahn/HumanizeDuration.js
2525
http://momentjs.com/
2626
https://github.com/fshost/node-dir
27+
--------------------------------------------------
28+
build
29+
r.js -o build.js
30+
2731

2832
--------------------------------------------------
2933

Diff for: app/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ define([
44
'angularResource',
55
'angularCookies',
66
'checklistModel'
7-
], function(angular, angularRoute) {
7+
], function() {
88
angular.module('BreakTheCode', ['ngRoute','ngResource', 'ngCookies', 'timer', 'checklist-model']);
99
});
1010

Diff for: app/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ define([
2525
// 'momentWithLocales',
2626
// 'checklistModel'
2727
], function() {
28-
console.log("shula");
28+
console.log("app loaded!");
2929
});

Diff for: app/routes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ define([
22
'angular',
33
'angularRoute',
44
'./app',
5-
'../login/loginController',
6-
'../questions/questionsController'
5+
'login/loginController',
6+
'questions/questionsController'
77
], function(app) {
88
angular.module('BreakTheCode').config(function($routeProvider){
99
$routeProvider

Diff for: build.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
({
2+
// reusing runtime requireJs config
3+
mainConfigFile: "./app/require-config.js",
4+
baseUrl: "app",
5+
// output directory for optimized project (build)
6+
dir: "./target",
7+
// do not include combined files in output directory, only the resulting files
8+
removeCombined: false,
9+
// minification and obfuscation
10+
optimize:
11+
"none",
12+
// "uglify2"
13+
14+
// modules to be optimized
15+
name: "main"
16+
})

0 commit comments

Comments
 (0)