UNPKG

merger-js

Version:

Yet another simple cross-platform CLI build tool to bundle JavaScript files, with a custom file import syntax, ES8+ minification, auto build capabilities, and native OS notifications.

26 lines (20 loc) 1.17 kB
/* * Copyright (c) 2018-2020 João Pedro Martins Neves - All Rights Reserved. * * MergerJS (merger-js) is licensed under the * GPLv3.0 license (GNU General Public License v3.0), * located in the root of this project, under the name "LICENSE.md". */ const StaticClass = require( '../../models/staticClassBase' ); const TokenType = require( '../../enums/tokenType' ); module.exports = class MockImports extends StaticClass { constructor() { super( 'MockImports' ); } static relative_DIR( path ) { return `// ${TokenType.importPath}${TokenType.push_DIR} '${path}'`; } static relative_dir( path ) { return `// ${TokenType.importPath}${TokenType.push_dir} '${path}'`; } static relative_DIRECTORY( path ) { return `// ${TokenType.importPath}${TokenType.push_DIRECTORY} '${path}'`; } static relative_directory( path ) { return `// ${TokenType.importPath}${TokenType.push_directory} '${path}'`; } static github_DIR( path ) { return `// ${TokenType.importUrl_simbol}${TokenType.push_github}${TokenType.push_DIR} '${path}'` } static GH_dir( path ) { return `// ${TokenType.importUrl}${TokenType.push_GH}${TokenType.push_dir} '${path}'` } };