From 98875a2ecee343b930c07c0127ddd849df0a3000 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Wed, 9 Aug 2017 16:57:32 +0200 Subject: [PATCH] fix variable distribution --- package.json | 5 +++-- test/test.ts | 6 +++++- yarn.lock | 6 +++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 67bec11..231766d 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "dist/index.js", "typings": "dist/index.d.ts", "scripts": { - "test": "(npmts)" + "test": "(npmts)", + "testLocal": "(npmts --notest && ts-node --compilerOptions '{\"target\":\"es6\"}' test/test.ts)" }, "repository": { "type": "git", @@ -31,7 +32,7 @@ "smartfile": "^4.2.20", "smartfm": "^1.0.5", "smarthbs": "^1.0.16", - "smartinteract": "^1.0.9", + "smartinteract": "^1.0.10", "smartq": "^1.1.6", "smartyaml": "^1.0.2", "typings-global": "^1.0.20" diff --git a/test/test.ts b/test/test.ts index 1efe242..5598598 100644 --- a/test/test.ts +++ b/test/test.ts @@ -3,7 +3,7 @@ import * as path from 'path' import * as smartscaf from '../ts/index' -process.env.CI = 'true' +// process.env.CI = 'true' let testScafTemplate: smartscaf.ScafTemplate @@ -26,6 +26,10 @@ tap.test('ask cli', async () => { await testScafTemplate.askCliForMissingVariables() }) +tap.test('should have valid supplied variables', async () => { + console.log(testScafTemplate.suppliedVariables) +}) + tap.test('should output ready rendered template', async () => { await testScafTemplate.writeToDisk(path.resolve('./test/test_output')) }) diff --git a/yarn.lock b/yarn.lock index 94d0386..23453b1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -970,9 +970,9 @@ smarthbs@^1.0.16: smartq "^1.1.1" typings-global "^1.0.16" -smartinteract@^1.0.9: - version "1.0.9" - resolved "https://registry.yarnpkg.com/smartinteract/-/smartinteract-1.0.9.tgz#b342be7eaf9cc93d57faf13379500ed630c0dd22" +smartinteract@^1.0.10: + version "1.0.10" + resolved "https://registry.yarnpkg.com/smartinteract/-/smartinteract-1.0.10.tgz#0fd282ddd1eff65076f199dacc40ee609c5ec5cb" dependencies: "@types/inquirer" "0.0.35" "@types/q" "1.0.3"