Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
86f19de7d8 | |||
1b6b45f15f | |||
a8d2954689 | |||
6071ae5de3 | |||
a664f3da76 | |||
5d3b4585b0 |
12087
package-lock.json
generated
12087
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
26
package.json
26
package.json
@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartscaf",
|
"name": "@pushrocks/smartscaf",
|
||||||
"version": "4.0.2",
|
"version": "4.0.5",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "scaffold projects quickly",
|
"description": "scaffold projects quickly",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "(tstest test/)",
|
"test": "(tstest test/)",
|
||||||
"build": "(tsbuild)",
|
"build": "(tsbuild --web --allowimplicitany)",
|
||||||
"buildDocs": "tsdoc"
|
"buildDocs": "tsdoc"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
@ -26,23 +26,21 @@
|
|||||||
"npm"
|
"npm"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.63",
|
"@gitzone/tsbuild": "^2.1.66",
|
||||||
"@gitzone/tsrun": "^1.2.37",
|
"@gitzone/tsrun": "^1.2.42",
|
||||||
"@gitzone/tstest": "^1.0.71",
|
"@gitzone/tstest": "^1.0.74",
|
||||||
"@pushrocks/tapbundle": "^5.0.3",
|
"@pushrocks/tapbundle": "^5.0.8",
|
||||||
"@types/node": "^18.0.0",
|
"@types/node": "^20.3.1"
|
||||||
"tslint": "^6.0.0",
|
|
||||||
"tslint-config-prettier": "^1.18.0"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/lik": "^6.0.0",
|
"@pushrocks/lik": "^6.0.2",
|
||||||
"@pushrocks/smartfile": "^10.0.2",
|
"@pushrocks/smartfile": "^10.0.17",
|
||||||
"@pushrocks/smartfm": "^2.0.4",
|
"@pushrocks/smartfm": "^2.0.4",
|
||||||
"@pushrocks/smarthbs": "^2.0.8",
|
"@pushrocks/smarthbs": "^3.0.3",
|
||||||
"@pushrocks/smartinteract": "^2.0.11",
|
"@pushrocks/smartinteract": "^2.0.11",
|
||||||
"@pushrocks/smartparam": "^1.1.6",
|
"@pushrocks/smartparam": "^1.1.6",
|
||||||
"@pushrocks/smartpromise": "^3.1.7",
|
"@pushrocks/smartpromise": "^4.0.2",
|
||||||
"@pushrocks/smartshell": "^2.0.30",
|
"@pushrocks/smartshell": "^3.0.3",
|
||||||
"@pushrocks/smartyaml": "^2.0.5"
|
"@pushrocks/smartyaml": "^2.0.5"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
4616
pnpm-lock.yaml
generated
Normal file
4616
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
3
test/test_output/anothername.yml
Normal file
3
test/test_output/anothername.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# this is a wow
|
||||||
|
# this is a here
|
||||||
|
# this is a undefined variable
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@pushrocks/smartscaf',
|
name: '@pushrocks/smartscaf',
|
||||||
version: '4.0.2',
|
version: '4.0.5',
|
||||||
description: 'scaffold projects quickly'
|
description: 'scaffold projects quickly'
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,9 @@ export interface ScafTemplateContructorOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class ScafTemplate {
|
export class ScafTemplate {
|
||||||
public static async createTemplateFromDir() {}
|
public static async createTemplateFromDir(dirPathArg: string) {
|
||||||
|
return new ScafTemplate(dirPathArg);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the name of the template
|
* the name of the template
|
||||||
@ -149,7 +151,7 @@ export class ScafTemplate {
|
|||||||
smartfile.updateFileName(parsedTemplate.data.fileName);
|
smartfile.updateFileName(parsedTemplate.data.fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
smartfile.contents = Buffer.from(parsedTemplate.content);
|
smartfile.contents = Buffer.from(await plugins.smarthbs.postprocess(parsedTemplate.content));
|
||||||
smartfileArrayToWrite.push(smartfile);
|
smartfileArrayToWrite.push(smartfile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user