fix variable distribution
This commit is contained in:
parent
5b42cf93cb
commit
98875a2ece
@ -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"
|
||||
|
@ -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'))
|
||||
})
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user