This commit is contained in:
parent
da8c39c91b
commit
f38ff47fe2
@ -13,6 +13,7 @@ import {
|
||||
} from '@sapphirecode/standard';
|
||||
import { Snippet } from '../../Snippet';
|
||||
import { apply_template, modify_json, run_command } from '../../Helper';
|
||||
import fs from 'fs-extra';
|
||||
|
||||
import {
|
||||
eslintrc, gitignore,
|
||||
@ -128,10 +129,11 @@ export default class Node implements Snippet {
|
||||
run_command ('git init', folder);
|
||||
|
||||
if (use_tests) {
|
||||
apply_template (
|
||||
await apply_template (
|
||||
standard_files.jasmine,
|
||||
path.join (folder, 'jasmine.json')
|
||||
);
|
||||
await fs.mkdirp(path.join(folder,'test/spec'))
|
||||
}
|
||||
|
||||
await init_package (folder, use_ts, use_tests);
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@sapphirecode/snippeteer",
|
||||
"version": "1.5.0",
|
||||
"version": "1.5.1",
|
||||
"description": "macros for setting up projects or project parts",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user