merge scripts, tasks and config folder and convert code to typescript
This commit is contained in:
21
dist_scripts/scripts/paths.js
Normal file
21
dist_scripts/scripts/paths.js
Normal file
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.appYarnLock = exports.appBuild = exports.appRdJson = exports.templateBuild = exports.template = exports.radarJson = void 0;
|
||||
var path_1 = require("path");
|
||||
var fs_1 = require("fs");
|
||||
exports.radarJson = "rd.json";
|
||||
var appDirectory = fs_1.realpathSync(process.cwd());
|
||||
var resolveApp = function (relativePath) {
|
||||
if (relativePath === void 0) { relativePath = ""; }
|
||||
return path_1.resolve(appDirectory, relativePath);
|
||||
};
|
||||
var templateDirectory = fs_1.realpathSync(__dirname);
|
||||
var resolveTemplate = function (relativePath) {
|
||||
if (relativePath === void 0) { relativePath = ""; }
|
||||
return path_1.resolve(templateDirectory, "..", relativePath);
|
||||
};
|
||||
exports.template = resolveTemplate();
|
||||
exports.templateBuild = resolveTemplate("build");
|
||||
exports.appRdJson = resolveApp("build/" + exports.radarJson);
|
||||
exports.appBuild = resolveApp("build");
|
||||
exports.appYarnLock = resolveApp("yarn.lock");
|
||||
Reference in New Issue
Block a user