diff --git a/src/js/accounts.js b/src/js/accounts/index.js similarity index 99% rename from src/js/accounts.js rename to src/js/accounts/index.js index 1450c57..3fc8814 100644 --- a/src/js/accounts.js +++ b/src/js/accounts/index.js @@ -29,7 +29,7 @@ var ngResource = require('angular-resource'), ngBootbox = 'ngBootbox'; // FIXME Alexis Lahouze 2017-06-06 move into templates.js. -require('../views/account.form.tmpl.html'); +require('../../views/account.form.tmpl.html'); var accountModule = angular.module('accountant.accounts', [ ngResource, diff --git a/src/js/operations.js b/src/js/operations/index.js similarity index 99% rename from src/js/operations.js rename to src/js/operations/index.js index 8ea4004..9910ed9 100644 --- a/src/js/operations.js +++ b/src/js/operations/index.js @@ -23,7 +23,7 @@ var moment = require('moment'), var angular = require('angular'); -require('../views/operation.form.tmpl.html'); +require('../../views/operation.form.tmpl.html'); var ngResource = require('angular-resource'), ngMessages = require('angular-messages'), @@ -34,7 +34,7 @@ var ngResource = require('angular-resource'), // Note: ngBootbox seems to have no module.exports. ngBootbox = 'ngBootbox'; -var accountModule = require('./accounts'); +var accountModule = require('../accounts'); var operationModule = angular.module('accountant.operations', [ accountModule.name, diff --git a/src/js/scheduler.js b/src/js/scheduler/index.js similarity index 100% rename from src/js/scheduler.js rename to src/js/scheduler/index.js