From 12414a9dc7f915173734c575b021aa4a015ed2b8 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sat, 10 Jun 2017 21:10:52 +0200 Subject: [PATCH] Move modules in subfolders. --- src/js/{accounts.js => accounts/index.js} | 2 +- src/js/{operations.js => operations/index.js} | 4 ++-- src/js/{scheduler.js => scheduler/index.js} | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename src/js/{accounts.js => accounts/index.js} (99%) rename src/js/{operations.js => operations/index.js} (99%) rename src/js/{scheduler.js => scheduler/index.js} (100%) 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