Skip to content

Commit

Permalink
Separate concerns to books directory
Browse files Browse the repository at this point in the history
- Create book directory to move events and ui scripts
- Set up starter code to uncomment when needed
  • Loading branch information
berziiii committed Aug 30, 2016
1 parent 9a843b8 commit edfc952
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 4 deletions.
7 changes: 7 additions & 0 deletions assets/scripts/books/events.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict';

// const libraryApi = require('../library-api');
// const ui = require('./ui');

module.exports = {
};
4 changes: 4 additions & 0 deletions assets/scripts/books/ui.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
'use strict';

module.exports = {
};
7 changes: 7 additions & 0 deletions assets/scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@

// use require without a reference to ensure a file is bundled
require('./example');

const bookEvents = require('./books/events');

// On document ready
$(() => {

});
7 changes: 6 additions & 1 deletion assets/scripts/library-api.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
'use strict';

module.exports = true;
// const app = require('./app');
// const getFormFields = require('../../lib/get-form-fields');

module.exports = {

};
3 changes: 0 additions & 3 deletions assets/scripts/ui.js

This file was deleted.

File renamed without changes.
File renamed without changes.

0 comments on commit edfc952

Please sign in to comment.