Skip to content

Commit

Permalink
migrating to moleculejs packages
Browse files Browse the repository at this point in the history
  • Loading branch information
dxprog committed Apr 19, 2016
1 parent 6b76464 commit 2b641a6
Show file tree
Hide file tree
Showing 20 changed files with 16 additions and 470 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ module.exports = function(grunt) {
},
dist: {
files: {
'./static/js/<%= pkg.name %>.js': [ './static/js/dev/app.js', './views/*.hbs' ],
'./tests/tests.js': [ './tests/specs/index.js', './views/*.hbs' ]
'./static/js/<%= pkg.name %>.js': [ './static/js/dev/app.js', './views/*.hbs' ]
//, './tests/tests.js': [ './tests/specs/index.js', './views/*.hbs' ]
}
}
},
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
"karma-phantomjs-launcher": "^0.2.3",
"karma-sinon": "^1.0.4",
"mocha": "^2.3.4",
"moleculejs": "^1.0.0",
"molecule-router": "^1.0.1",
"molecule-singleton": "^1.0.5",
"moleculejs": "^1.0.1",
"node-sass": "^3.4.2",
"phantomjs": "^1.9.19",
"sass": "~0.5.0",
Expand Down
2 changes: 1 addition & 1 deletion static/js/dev/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Router from './lib/router';
import { Router } from 'molecule-router';

// Pages
import BracketDisplay from './views/bracket-display';
Expand Down
26 changes: 0 additions & 26 deletions static/js/dev/lib/route.js

This file was deleted.

224 changes: 0 additions & 224 deletions static/js/dev/lib/router.js

This file was deleted.

21 changes: 0 additions & 21 deletions static/js/dev/lib/singleton.js

This file was deleted.

3 changes: 1 addition & 2 deletions static/js/dev/views/admin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Route from 'lib/route';
import Router from 'lib/router';
import { Route, Router } from 'molecule-router';
import $ from 'jquery';

import Characters from './admin/characters';
Expand Down
3 changes: 1 addition & 2 deletions static/js/dev/views/admin/characters.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import $ from 'jquery';

import Route from 'lib/route';
import { Route } from 'molecule-router';

const LOADING = 'loading';

Expand Down
3 changes: 1 addition & 2 deletions static/js/dev/views/admin/nominee.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import $ from 'jquery';

import Route from 'lib/route';
import { Route } from 'molecule-router';

import Nominee from 'templates/admin/nominee.hbs';

Expand Down
3 changes: 1 addition & 2 deletions static/js/dev/views/admin/start-bracket.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import $ from 'jquery';

import Route from 'lib/route';
import { Route } from 'molecule-router';

export default Route('admin-start-bracket', {
initRoute() {
Expand Down
3 changes: 1 addition & 2 deletions static/js/dev/views/admin/stats.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import $ from 'jquery';

import Route from 'lib/route';
import { Route } from 'molecule-router';

export default Route('admin-stats', {
initRoute() {
Expand Down
3 changes: 1 addition & 2 deletions static/js/dev/views/bracket-display.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import Handlebars from 'handlebars/runtime';
import { Route, Router } from 'molecule-router';
import $ from 'jquery';

import Entrant from '../model/entrant';
import { default as Tier, ENTRANT_HEIGHT } from '../model/tier';
import Route from 'lib/route';
import Router from 'lib/router';

import TPL_GROUP_PICKER from 'templates/groupPicker.hbs';
import TPL_ENTRANT from 'templates/partials/_entrant.hbs';
Expand Down
2 changes: 1 addition & 1 deletion static/js/dev/views/characters.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import $ from 'jquery';

import Route from 'lib/route';
import { Route } from 'molecule-router';

import characterList from 'templates/partials/_characterList.hbs';

Expand Down
2 changes: 1 addition & 1 deletion static/js/dev/views/nav.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import $ from 'jquery';

import Singleton from 'lib/singleton';
import Singleton from 'molecule-singleton';

const CLICK = 'click';
const SHOW_NAV = 'show';
Expand Down
2 changes: 1 addition & 1 deletion static/js/dev/views/nominations.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { Route } from 'molecule-router';

import Route from 'lib/route';
import Typeahead from '../controls/typeahead';

const IS_IE = (/MSIE/).test(window.navigator.userAgent);
Expand Down
3 changes: 1 addition & 2 deletions static/js/dev/views/voting.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import $ from 'jquery';

import Route from 'lib/route';
import { Route } from 'molecule-router';

const bracketId = window.bracketId;

Expand Down
3 changes: 0 additions & 3 deletions tests/specs/index.js

This file was deleted.

Loading

0 comments on commit 2b641a6

Please sign in to comment.