Commits

ronald martinez  committed e866705 Merge

Merge branch 'master' of ssh://stash.funciton.com/LGST/back-end

  • Participants
  • Parent commits 10787f9, a44efc6

Comments (0)

Files changed (5)

+var build = function() {
+  var requirejs = require('requirejs');
+
+    var config = {
+      appDir: 'static/js',
+      baseUrl: '../build',
+      dir: '../build',
+      optimize: 'uglify',
+      uglify: {
+        toplevel: true
+      },
+      modules: [
+        { name: '../build/site.addaccount.js' },
+        { name: '../build/site.addaccount_response.js' },
+        { name: '../build/site.changepassword.js' },
+        { name: '../build/site.forgotpassword.js' },
+        { name: '../build/site.home.js' },
+        { name: '../build/site.profile.js' }
+      ]
+    };
+
+    requirejs.optimize(config, function() {
+      console.log('Revise ', config.dir);
+    });
+};
+
+!function() {
+  build();
+}.call(this);

File package.json

     "url": "ssh://git@stash.funciton.com/LGST/back-end.git"
   },
   "dependencies": {
-    "stylus": ">=0.28.x"
+    "stylus": ">=0.28.x",
+    "requirejs": ">=2.0.x"
   },
   "devDependencies": {},
   "optionalDependencies": {},

File static/css/site.css

 #addaccount #register {
   height: 156px;
 }
+#resetpassword #main {
+  width: 259px;
+  margin: 0 auto;
+}

File static/css/site.main.styl

   #register
     height 156px
 
-
+#resetpassword
+  #main
+    width 259px
+    margin 0 auto

File templates/site/reset_password.jade

   script( type='text/javascript', src!="{{ handler.static_url('js/libs/require-jquery.js') }}", data-main='/static/js/site.changepassword.js')
 
 block content
-  #main
-    #main_inner
-      mixin form('Reset Password', 'not_return')
+  #resetpassword
+    #main
+      #main_inner
+        mixin form('Reset Password', 'not_return')