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O,SAAU,GACM,MAArB,EAAK,SAAS,KACd,EAAK,SAAW,IAAM,EAAK,SAAS,MAAM,GAElD,KACC,KAAK,OAAO,EAAc,MAAM,OAChC,KAAK,SAAS,KAAM,CAAC,cAAe,OACpC,KAAK,KAAK,KAAK,OACf,GAAG,OAAO,WACP,GACJ,GACR,GAER","file":"/npm/slush-marklogic-spring-boot@1.0.0-rc2/slushfile.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/slush-marklogic-spring-boot@1.0.0-rc2/slushfile.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/*\n * slush-marklogic-spring-boot\n * https://github.com/rjrudin/slush-marklogic-spring-boot\n *\n * Copyright (c) 2016, Rob Rudin\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nvar gulp = require('gulp'),\n  gulpif = require('gulp-if'),\n  conflict = require('gulp-conflict'),\n  chmod = require('gulp-chmod'),\n  template = require('gulp-template'),\n  rename = require('gulp-rename'),\n  _ = require('underscore.string'),\n  inquirer = require('inquirer'),\n  path = require('path');\n\nfunction format(string) {\n    var username = string.toLowerCase();\n    return username.replace(/\\s/g, '');\n}\n\nvar defaults = (function () {\n    var workingDirName = path.basename(process.cwd()),\n      homeDir, osUserName, configFile, user;\n\n    if (process.platform === 'win32') {\n        homeDir = process.env.USERPROFILE;\n        osUserName = process.env.USERNAME || path.basename(homeDir).toLowerCase();\n    }\n    else {\n        homeDir = process.env.HOME || process.env.HOMEPATH;\n        osUserName = homeDir && homeDir.split('/').pop() || 'root';\n    }\n\n    configFile = path.join(homeDir, '.gitconfig');\n    user = {};\n\n    if (require('fs').existsSync(configFile)) {\n        user = require('iniparser').parseSync(configFile).user;\n    }\n\n    return {\n        appName: workingDirName,\n        userName: osUserName || format((user && user.name) || ''),\n        authorName: (user && user.name) || '',\n        authorEmail: (user && user.email) || ''\n    };\n})();\n\ngulp.task('default', function (done) {\n    var prompts = [\n      {\n        name: 'appName',\n        message: 'What is the name of your application?',\n        default: defaults.appName\n      },\n      {\n        name: 'appHost',\n        message: 'What MarkLogic host do you want to deploy to?',\n        default: 'localhost'\n      },\n      {\n        name: 'appAdminUsername',\n        message: 'What MarkLogic admin user do you want to deploy with?',\n        default: 'admin'\n      },\n      {\n        name: 'appAdminPassword',\n        message: 'What is the MarkLogic admin user password? (Or keep blank and modify in gradle.properties afterwards)',\n        default: ''\n      },\n      {\n        name: 'appRestPort',\n        message: 'What port do you want the MarkLogic application REST API server to use?',\n        default: '8003'\n      },\n      {\n        name: 'appTestRestPort',\n        message: '(Optional) What port do you want a MarkLogic REST API server for testing to use? (zero means no test server)',\n        default: '0'\n      },\n      {\n        name: 'appBootPort',\n        message: 'What port do you want the Spring Boot server to use?',\n        default: '8080'\n      },\n      {\n        type: 'list',\n        name: 'template',\n        message: 'Select Template',\n        choices: [{\n            name: 'default',\n            value: 'default'\n        }, {\n            name: '3-columns',\n            value: '3column'\n        }, {\n            name: 'Cards',\n            value: 'cards'\n        }, {\n            name: 'Dashboard',\n            value: 'dashboard'\n        }, {\n            name: 'Full-screen map',\n            value: 'map'\n        }, {\n            name: 'I don\\'t know',\n            value: 'unsure'\n        }]\n      },\n      {\n        type: 'list',\n        name: 'theme',\n        message: 'What is the main focus?',\n        when: function(ans) {\n            return ans.template === 'unsure';\n        },\n        choices: [{\n            name: 'Semantics',\n            value: '3column'\n        }, {\n            name: 'Charts',\n            value: 'dashboard'\n        }, {\n            name: 'Map/Graph',\n            value: 'map'\n        }, {\n            name: 'Data records',\n            value: 'cards'\n        }, {\n            name: 'Documents',\n            value: '3column'\n        }, {\n            name: 'Other',\n            value: 'default'\n        }]\n      }\n    ];\n\n    // gulp-template bombs on certain font files, so using gulpif to not process them\n    var isTemplateable = function(file) {\n      var rel = file.relative;\n      var result = \n        rel.indexOf('fonts') == -1 && \n        rel.indexOf('images') == -1 &&\n        rel.indexOf('gradle-wrapper') == -1 &&\n        !rel.endsWith('.zip');\n      console.log (rel);\n      return result;\n    };\n\n    // Need to make the gradlew scripts executable\n    var isExecutable = function(file) {\n      return file.relative.indexOf('gulp-chmod') > -1;\n    };\n\n    // Tell lodash to only interpolate <%= and %>; we need to ignore ${ and } as\n    // those are used by Thymeleaf\n    var templateOptions = {\n      interpolate: /<%=([\\s\\S]+?)%>/g\n    };\n\n    inquirer.prompt(prompts,\n        function (answers) {\n            answers.appNameSlug = _.slugify(answers.appName);\n\n            var srcPaths = [\n              __dirname + '/templates/**', \n              __dirname + '/templates/.bowerrc',\n              __dirname + '/templates/.editorconfig',\n              __dirname + '/templates/.gitignore',\n              '!' + __dirname + '/templates/.gradle',\n              '!' + __dirname + '/templates/bin',\n              '!' + __dirname + '/templates/bin/**',\n              '!' + __dirname + '/templates/build',\n              '!' + __dirname + '/templates/build/**'\n            ];\n\n            if (answers.appTestRestPort == 0) {\n              srcPaths.push('!' + __dirname + '/templates/src/test');\n              srcPaths.push('!' + __dirname + '/templates/src/test/**');\n            }\n\n            var theme = answers.theme || answers.template || clArgs.theme || 'default';\n            if (theme !== 'default') { // overlay the theme if not the default theme chosen\n                srcPaths.push(__dirname + '/themes/' + theme + '/**');\n            }\n\n            gulp.src(srcPaths)\n                .pipe(gulpif(isTemplateable, template(answers, templateOptions)))\n                .pipe(rename(function (file) {\n                    if (file.basename[0] === '_') {\n                        file.basename = '.' + file.basename.slice(1);\n                    }\n                }))\n                .pipe(gulpif(isExecutable, chmod(755)))\n                .pipe(conflict('./', {defaultChoice: 'y'}))\n                .pipe(gulp.dest('./'))\n                .on('end', function () {\n                    done();\n                });\n        });\n\n});\n"]}