Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
c5ec7e9c24 | |||
98875a2ece | |||
5b42cf93cb | |||
e0ab34c466 | |||
beb3013e2c | |||
5d1c0a6f1e |
17
package.json
17
package.json
@ -1,11 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "smartscaf",
|
"name": "smartscaf",
|
||||||
"version": "1.0.11",
|
"version": "1.0.14",
|
||||||
"description": "scaffold projects quickly",
|
"description": "scaffold projects quickly",
|
||||||
"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",
|
||||||
@ -23,17 +24,17 @@
|
|||||||
"npm"
|
"npm"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"tapbundle": "^1.0.13"
|
"tapbundle": "^1.1.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/lodash": "^4.14.64",
|
"@types/lodash": "^4.14.72",
|
||||||
"lodash": "^4.17.4",
|
"lodash": "^4.17.4",
|
||||||
"smartfile": "^4.2.17",
|
"smartfile": "^4.2.20",
|
||||||
"smartfm": "^1.0.5",
|
"smartfm": "^1.0.5",
|
||||||
"smarthbs": "^1.0.16",
|
"smarthbs": "^1.0.16",
|
||||||
"smartinteract": "^1.0.4",
|
"smartinteract": "^1.0.10",
|
||||||
"smartq": "^1.1.1",
|
"smartq": "^1.1.6",
|
||||||
"smartyaml": "^1.0.2",
|
"smartyaml": "^1.0.2",
|
||||||
"typings-global": "^1.0.16"
|
"typings-global": "^1.0.20"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import { expect, tap } from 'tapbundle'
|
import { expect, tap } from 'tapbundle'
|
||||||
import * as path from 'path'
|
import * as path from 'path'
|
||||||
|
|
||||||
import * as smartscaf from '../dist/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'))
|
||||||
})
|
})
|
||||||
|
@ -1 +0,0 @@
|
|||||||
# some undefined variable
|
|
Reference in New Issue
Block a user