Add "info" command to get information about the local env.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
import {getConfigs} from "./helpers.js";
|
||||
|
||||
const {isDev, modulesPath, projectPath, developmentBlockName} = getConfigs();
|
||||
|
||||
console.log('----------------------------------\n')
|
||||
console.log('Local Details', process.versions, '\n');
|
||||
console.log('Configs', {
|
||||
isDev,
|
||||
modulesPath,
|
||||
projectPath,
|
||||
developmentBlockName
|
||||
});
|
||||
console.log('\n----------------------------------\n')
|
||||
Generated
+546
-569
File diff suppressed because it is too large
Load Diff
@@ -8,6 +8,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"start": "component-dev",
|
||||
"info": "node debug.js",
|
||||
"dev": "NODE_ENV=development NODE_CONFIG_DIR=blocks/text-block/config BLOCK_NAME=text-block node server.js",
|
||||
"build": "rollup --config rollup.config.js",
|
||||
"build-platform": "NODE_ENV=development NODE_CONFIG_DIR=blocks/text-block/config BLOCK_NAME=text-block node ./build.js",
|
||||
@@ -63,6 +64,7 @@
|
||||
},
|
||||
"files": [
|
||||
"helpers.js",
|
||||
"debug.js",
|
||||
"layouts/*.hbs",
|
||||
"layouts/styles/*.css*",
|
||||
"layouts/scripts/dist/*.js*",
|
||||
|
||||
@@ -402,13 +402,3 @@ function handlebarLayoutsPath() {
|
||||
return path.join(...arguments)
|
||||
.replace(/\\/g, '/'); // Windows path issue. Fix all "\" for Handlebars.
|
||||
}
|
||||
|
||||
console.log('----------------------------------\n')
|
||||
console.log('Local Details', process.versions, '\n');
|
||||
console.log('Configs', {
|
||||
isDev,
|
||||
modulesPath,
|
||||
projectPath,
|
||||
developmentBlockName
|
||||
});
|
||||
console.log('\n----------------------------------\n')
|
||||
|
||||
Reference in New Issue
Block a user