fix variable distribution

This commit is contained in:
Philipp Kunz 2017-08-09 16:57:32 +02:00
parent 5b42cf93cb
commit 98875a2ece
3 changed files with 11 additions and 6 deletions

View File

@ -5,7 +5,8 @@
"main": "dist/index.js", "main": "dist/index.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",
"scripts": { "scripts": {
"test": "(npmts)" "test": "(npmts)",
"testLocal": "(npmts --notest && ts-node --compilerOptions '{\"target\":\"es6\"}' test/test.ts)"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -31,7 +32,7 @@
"smartfile": "^4.2.20", "smartfile": "^4.2.20",
"smartfm": "^1.0.5", "smartfm": "^1.0.5",
"smarthbs": "^1.0.16", "smarthbs": "^1.0.16",
"smartinteract": "^1.0.9", "smartinteract": "^1.0.10",
"smartq": "^1.1.6", "smartq": "^1.1.6",
"smartyaml": "^1.0.2", "smartyaml": "^1.0.2",
"typings-global": "^1.0.20" "typings-global": "^1.0.20"

View File

@ -3,7 +3,7 @@ import * as path from 'path'
import * as smartscaf from '../ts/index' import * as smartscaf from '../ts/index'
process.env.CI = 'true' // process.env.CI = 'true'
let testScafTemplate: smartscaf.ScafTemplate let testScafTemplate: smartscaf.ScafTemplate
@ -26,6 +26,10 @@ tap.test('ask cli', async () => {
await testScafTemplate.askCliForMissingVariables() await testScafTemplate.askCliForMissingVariables()
}) })
tap.test('should have valid supplied variables', async () => {
console.log(testScafTemplate.suppliedVariables)
})
tap.test('should output ready rendered template', async () => { tap.test('should output ready rendered template', async () => {
await testScafTemplate.writeToDisk(path.resolve('./test/test_output')) await testScafTemplate.writeToDisk(path.resolve('./test/test_output'))
}) })

View File

@ -970,9 +970,9 @@ smarthbs@^1.0.16:
smartq "^1.1.1" smartq "^1.1.1"
typings-global "^1.0.16" typings-global "^1.0.16"
smartinteract@^1.0.9: smartinteract@^1.0.10:
version "1.0.9" version "1.0.10"
resolved "https://registry.yarnpkg.com/smartinteract/-/smartinteract-1.0.9.tgz#b342be7eaf9cc93d57faf13379500ed630c0dd22" resolved "https://registry.yarnpkg.com/smartinteract/-/smartinteract-1.0.10.tgz#0fd282ddd1eff65076f199dacc40ee609c5ec5cb"
dependencies: dependencies:
"@types/inquirer" "0.0.35" "@types/inquirer" "0.0.35"
"@types/q" "1.0.3" "@types/q" "1.0.3"