This commit is contained in:
parent
09530c439f
commit
3e4e5bba1c
@ -22,19 +22,20 @@ import {
|
|||||||
|
|
||||||
|
|
||||||
const packages = {
|
const packages = {
|
||||||
common: [ '@sapphirecode/eslint-config' ],
|
common: [ 'eslint' ],
|
||||||
|
js: [ '@sapphirecode/eslint-config' ],
|
||||||
|
ts: [
|
||||||
|
'typescript',
|
||||||
|
'@sapphirecode/eslint-config-ts'
|
||||||
|
],
|
||||||
test: [
|
test: [
|
||||||
'nyc',
|
'nyc',
|
||||||
'jasmine',
|
'jasmine',
|
||||||
'@types/jasmine'
|
'@types/jasmine'
|
||||||
],
|
],
|
||||||
test_ts: [
|
test_ts: [
|
||||||
'jasmine-ts',
|
'@ert78gb/jasmine-ts',
|
||||||
'ts-node'
|
'ts-node'
|
||||||
],
|
|
||||||
ts: [
|
|
||||||
'typescript',
|
|
||||||
'@sapphirecode/eslint-config-ts'
|
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -53,7 +54,7 @@ async function init_package (
|
|||||||
run_command ('yarn init -y', folder);
|
run_command ('yarn init -y', folder);
|
||||||
|
|
||||||
const bundle = [
|
const bundle = [
|
||||||
...(use_ts ? packages.ts : packages.common),
|
...(use_ts ? packages.ts : packages.js),
|
||||||
...(use_tests ? packages.test : []),
|
...(use_tests ? packages.test : []),
|
||||||
...(use_ts && use_tests ? packages.test_ts : [])
|
...(use_ts && use_tests ? packages.test_ts : [])
|
||||||
];
|
];
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@sapphirecode/snippeteer",
|
"name": "@sapphirecode/snippeteer",
|
||||||
"version": "1.5.2",
|
"version": "1.5.3",
|
||||||
"description": "macros for setting up projects or project parts",
|
"description": "macros for setting up projects or project parts",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user