UNPKG

generator-begcode

Version:

Spring Boot + Angular/React/Vue in one handy generator

15 lines (14 loc) 569 B
import assert from 'assert'; import { createBaseNeedle } from '../../base/support/needles.js'; export function insertContentIntoApplicationProperties(application, needles) { if (needles) { assert.ok(this, 'Generator context is required'); return createBaseNeedle.call(this, { filePath: `${application.javaPackageSrcDir}config/ApplicationProperties.java`, needlesPrefix: 'application-properties', }, needles); } return createBaseNeedle({ needlesPrefix: 'application-properties', }, application); }