UNPKG

@pecometer/peco-cli

Version:

Pecometer Command Line Interface Application with monorepo support

5 lines 1.88 kB
"use strict"; /** * @author Sean Hutchinson * @copyright Pecometer Software Ltd */Object.defineProperty(exports,"__esModule",{value:!0}),exports.BACKEND_DEPENDENCIES=exports.BACKEND_FILES=exports.BACKEND_STRUCTURE=void 0;const path=require("node:path"),node_crypto_1=require("node:crypto"),RANDOM_BYTES_LENGTH=16;exports.BACKEND_STRUCTURE=[["controllers"],["providers"]],exports.BACKEND_FILES=[{content:path.join("backend","site-controller.data"),location:["controllers"],name:"site.ts"},{content:path.join("backend","server.data"),location:[""],name:"server.ts"},{content:path.join("backend","index.data"),location:[""],name:"index.ts"},{content:path.join("backend","env.data"),location:[""],name:".env",placeholders:[{name:"pecots_client_id",prompt:"PecoTS Client ID"},{default:"1",name:"pecots_instance_id",prompt:"PecoTS Instance ID (1)"},{name:"pecots_licence",prompt:"PecoTS Licence Key"},{name:"pecots_email",prompt:"PecoTS Email"},{name:"app_secret",prompt:!1,value:()=>(0,node_crypto_1.randomBytes)(16).toString("hex").toUpperCase()},{name:"cookie_secret",prompt:!1,value:()=>(0,node_crypto_1.randomBytes)(16).toString("hex").toUpperCase()}]},{content:path.join("backend","tsconfig-no-frontend.data"),location:[""],name:"tsconfig.json",withFrontend:!1},{content:path.join("backend","tsconfig-frontend.data"),location:[""],name:"tsconfig.json",withFrontend:!0},{content:path.join("backend","gulp-no-frontend.data"),location:[""],name:"gulpfile.js",withFrontend:!1},{content:path.join("backend","gulp-with-frontend.data"),location:[".."],name:"gulpfile.js",withFrontend:!0}],exports.BACKEND_DEPENDENCIES={dev:{"@types/lodash":"","@types/node":"",gulp:"","gulp-terser":"","gulp-typescript":"",rimraf:"","ts-node":"","ts-node-dev":"","ts-patch":"","tsconfig-paths":"","typescript-transform-paths":""},main:{"@pecometer/pecots":"",moment:"",rxjs:"",tslib:"",typescript:""}};