Skip to content

Commit

Permalink
🚚 Rename init scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
skerit committed Jan 14, 2024
1 parent b1f922b commit 8f5dfdf
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions lib/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require('protoblast')(true);
/**
* Define global constants and require methods
*/
require('./init_scripts/constants');
require('./scripts/create_constants');

/**
* Alchemy's Base class (from which all other classes inherit)
Expand All @@ -24,7 +24,7 @@ requireCorePath('core', 'client_base');
/**
* Load the stages classes
*/
requireCorePath('core', 'stages.js');
requireCorePath('core', 'stage.js');

/**
* Define the Stages instance
Expand All @@ -40,6 +40,6 @@ DEFINE('STAGES', new Classes.Alchemy.Stages.Stage('root'));
/**
* Start the stages script
*/
requireCorePath('init_scripts', 'stages.js');
requireCorePath('scripts', 'create_stages.js');

module.exports = STAGES;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions lib/stages/00-load_core.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const init_settings = load_core.createStage('init_settings', () => {
/**
* Load the actual settings
*/
requireCorePath('init_scripts', 'settings');
requireCorePath('scripts', 'create_settings');
});

/**
Expand All @@ -50,7 +50,7 @@ const init_alchemy = load_core.createStage('init_alchemy', () => {
/**
* Load the actual settings
*/
requireCorePath('init_scripts', 'alchemy');
requireCorePath('scripts', 'init_alchemy');

/**
* Require basic functions
Expand All @@ -76,7 +76,7 @@ const init_languages = load_core.createStage('init_languages', () => {
/**
* Get all the languages by their locale
*/
requireCorePath('init_scripts', 'languages');
requireCorePath('scripts', 'create_languages');
});

/**
Expand All @@ -92,7 +92,7 @@ const preload_modules = load_core.createStage('preload_modules', () => {
/**
* Pre-load basic requirements
*/
requireCorePath('init_scripts', 'preload_modules');
requireCorePath('scripts', 'preload_modules');
});

/**
Expand All @@ -108,7 +108,7 @@ const devwatch = load_core.createStage('devwatch', () => {
/**
* Set up file change watchers for development
*/
requireCorePath('init_scripts', 'devwatch');
requireCorePath('scripts', 'setup_devwatch');
});

/**
Expand Down Expand Up @@ -272,9 +272,9 @@ const core_classes = load_core.createStage('core_classes', () => {
alchemy.hawkejs.load(resolveCorePath('class', 'schema_client'), CLIENT_HAWKEJS_OPTIONS);

/**
* Set up routing functions
* Set up prefixes
*/
alchemy.useOnce(resolveCorePath('core', 'routing'));
alchemy.useOnce(resolveCorePath('core', 'prefix'));

/**
* Set up middleware functions
Expand Down

0 comments on commit 8f5dfdf

Please sign in to comment.