feat: add cli to copy configurations

Fixes #1
This commit is contained in:
Karl-Philipp Wulfert
2018-12-04 12:58:57 +01:00
parent 84beb5065e
commit 98aa5a5f70
7 changed files with 450 additions and 12 deletions

46
src/configuration.ts Normal file
View File

@@ -0,0 +1,46 @@
import {join} from 'path';
/**
* Files that need to be copied
*/
export const NEEDED_FILES = [
'.editorconfig',
'.gitignore',
'.npmignore',
join('templates', 'tsconfig.json'),
join('templates', 'tslint.json'),
];
/**
* Configuration for nyc to add to package.json
*/
export const NYC_CONFIGURATION = {
all: true,
branches: 95,
'check-coverage': true,
exclude: [
'src/test/**/*.spec.ts',
],
extension: [
'.ts',
],
functions: 95,
include: [
'src',
],
lines: 95,
'per-file': true,
reporter: [
'html',
'text-summary',
],
statements: 95,
};
/**
* List of expected licenses
*/
export const EXPECTED_LICENSES = [
'AGPL-3.0-only',
'GPL-3.0-only',
];