mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
comment env-to-yaml script
This commit is contained in:
@@ -2,8 +2,15 @@ import * as fs from 'fs';
|
|||||||
import * as yaml from 'js-yaml';
|
import * as yaml from 'js-yaml';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
|
|
||||||
const args = process.argv.slice(2);
|
/**
|
||||||
|
* Script to help convert previous version environment.*.ts to yaml.
|
||||||
|
*
|
||||||
|
* Usage (see package.json):
|
||||||
|
*
|
||||||
|
* yarn env:yaml [relative path to environment.ts file] (optional relative path to write yaml file) *
|
||||||
|
*/
|
||||||
|
|
||||||
|
const args = process.argv.slice(2);
|
||||||
if (args[0] === undefined) {
|
if (args[0] === undefined) {
|
||||||
console.log(`Usage:\n\tyarn env:yaml [relative path to environment.ts file] (optional relative path to write yaml file)\n`);
|
console.log(`Usage:\n\tyarn env:yaml [relative path to environment.ts file] (optional relative path to write yaml file)\n`);
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
|
Reference in New Issue
Block a user