From c25b352041c2004af90e46cacc45c02877a046f5 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Thu, 7 May 2020 18:40:35 +0200 Subject: [PATCH] fixes --- .eslintrc.js | 2 +- LICENSE | 30 +++----------- assets/jenkins/general/Jenkinsfile.asset | 39 ------------------- assets/jenkins/node/Jenkinsfile.asset | 23 ----------- assets/jenkins/node/jenkins.js.asset | 28 ------------- index.js | 2 +- jenkins.js | 7 ++++ lib/.eslintrc.js | 2 +- lib/Helper.ts | 7 ++++ lib/Snippet.ts | 2 +- lib/dialog.ts | 2 +- lib/enquirer.d.ts | 2 +- lib/index.ts | 2 +- lib/snippets/copyright/copyright_generator.ts | 2 +- lib/snippets/copyright/copyright_options.ts | 2 +- lib/snippets/copyright/file_mapper.ts | 2 +- lib/snippets/copyright/index.ts | 2 +- lib/snippets/database/classes/Column.ts | 7 ++++ lib/snippets/database/classes/ColumnType.ts | 7 ++++ lib/snippets/database/classes/Database.ts | 7 ++++ lib/snippets/database/classes/PatchAction.ts | 7 ++++ lib/snippets/database/classes/PatchActions.ts | 7 ++++ lib/snippets/database/classes/Relation.ts | 7 ++++ lib/snippets/database/classes/Serializable.ts | 7 ++++ lib/snippets/database/classes/Table.ts | 7 ++++ lib/snippets/database/index.ts | 7 ++++ .../database/patch_actions/RenameColumn.ts | 7 ++++ lib/snippets/jenkins/Assets.ts | 7 ++++ lib/snippets/jenkins/index.ts | 2 +- lib/snippets/node/Assets.ts | 16 +++++--- lib/snippets/node/index.ts | 7 ++-- package.json | 4 +- 32 files changed, 124 insertions(+), 138 deletions(-) delete mode 100644 assets/jenkins/general/Jenkinsfile.asset delete mode 100644 assets/jenkins/node/Jenkinsfile.asset delete mode 100644 assets/jenkins/node/jenkins.js.asset diff --git a/.eslintrc.js b/.eslintrc.js index 97e09b4..8c84026 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -2,7 +2,7 @@ * Copyright (C) SapphireCode - All Rights Reserved * This file is part of Snippeteer which is released under BSD-3-Clause. * See file 'LICENSE' for full license details. - * Created by Timo Hocker , April 2020 + * Created by Timo Hocker , May 2020 */ module.exports = { diff --git a/LICENSE b/LICENSE index c74b11e..60c09dc 100644 --- a/LICENSE +++ b/LICENSE @@ -1,29 +1,11 @@ -Copyright (c) 2020, Timo Hocker +Copyright (c) . All rights reserved. +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: -All rights reserved. + 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: + 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - * Neither the name of snippeteer nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/assets/jenkins/general/Jenkinsfile.asset b/assets/jenkins/general/Jenkinsfile.asset deleted file mode 100644 index 3bed245..0000000 --- a/assets/jenkins/general/Jenkinsfile.asset +++ /dev/null @@ -1,39 +0,0 @@ -pipeline { - agent any - - environment { - VERSION = VersionNumber([ - versionNumberString: - '${BUILDS_ALL_TIME}', - versionPrefix: '1.0.', - worstResultForIncrement: 'SUCCESS' - ]) - publish = 0 - } - - stages { - stage('Setup') { - steps { - script { - currentBuild.displayName = env.VERSION - } - echo 'Setting up test environment' - sh 'echo setup' - } - } - } - post { - success { - script { - publish = sh script: "git log -1 | grep '\\[no publish\\]'", returnStatus: true - if (publish != 0) { - echo 'Deploying' - sh 'echo deploy' - } else { - echo 'Build successful, Commit not marked for deploying' - currentBuild.result = "UNSTABLE" - } - } - } - } -} diff --git a/assets/jenkins/node/Jenkinsfile.asset b/assets/jenkins/node/Jenkinsfile.asset deleted file mode 100644 index 81d532c..0000000 --- a/assets/jenkins/node/Jenkinsfile.asset +++ /dev/null @@ -1,23 +0,0 @@ -pipeline { - agent any - - environment { - VERSION = VersionNumber([ - versionNumberString: - '${BUILDS_ALL_TIME}', - versionPrefix: '1.0.', - worstResultForIncrement: 'SUCCESS' - ]) - } - - stages { - stage('Building') { - steps { - script { - currentBuild.displayName = env.VERSION - } - sh 'yarn ci ${VERSION}' - } - } - } -} diff --git a/assets/jenkins/node/jenkins.js.asset b/assets/jenkins/node/jenkins.js.asset deleted file mode 100644 index 45f6336..0000000 --- a/assets/jenkins/node/jenkins.js.asset +++ /dev/null @@ -1,28 +0,0 @@ -/* eslint-disable no-process-exit */ -/* eslint-disable no-console */ -/* eslint-disable no-sync */ -'use strict'; - -const fs = require ('fs'); -const child_process = require ('child_process'); - -const pkg = JSON.parse (fs.readFileSync ('package.json', 'utf-8')); -[ - ,, pkg.version -] = process.argv; -fs.writeFileSync ('package.json', JSON.stringify (pkg, null, 2)); - -child_process.execSync ('yarn lint', { stdio: 'inherit' }); -if (typeof pkg.scripts !== 'undefined' && typeof pkg.scripts.test === 'string') - child_process.execSync ('yarn test', { stdio: 'inherit' }); -if (typeof pkg.scripts !== 'undefined' && typeof pkg.scripts.compile === 'string') - child_process.execSync ('yarn compile', { stdio: 'inherit' }); - -child_process.exec ('git log -1 | grep \'\\[no publish\\]\'') - .addListener ('exit', (code) => { - if (code === 0) { - console.log ('build not marked for deployment'); - process.exit (1); - } - else { child_process.execSync ('yarn publish'); } - }); diff --git a/index.js b/index.js index bb977e0..5d3068a 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ * Copyright (C) SapphireCode - All Rights Reserved * This file is part of Snippeteer which is released under BSD-3-Clause. * See file 'LICENSE' for full license details. - * Created by Timo Hocker , April 2020 + * Created by Timo Hocker , May 2020 */ 'use strict'; diff --git a/jenkins.js b/jenkins.js index c2fb836..f3ee386 100644 --- a/jenkins.js +++ b/jenkins.js @@ -1,3 +1,10 @@ +/* + * Copyright (C) SapphireCode - All Rights Reserved + * This file is part of Snippeteer which is released under BSD-3-Clause. + * See file 'LICENSE' for full license details. + * Created by Timo Hocker , May 2020 + */ + /* eslint-disable no-process-exit */ /* eslint-disable no-console */ /* eslint-disable no-sync */ diff --git a/lib/.eslintrc.js b/lib/.eslintrc.js index 40ee43f..45e29b8 100644 --- a/lib/.eslintrc.js +++ b/lib/.eslintrc.js @@ -2,7 +2,7 @@ * Copyright (C) SapphireCode - All Rights Reserved * This file is part of Snippeteer which is released under BSD-3-Clause. * See file 'LICENSE' for full license details. - * Created by Timo Hocker , April 2020 + * Created by Timo Hocker , May 2020 */ module.exports = { diff --git a/lib/Helper.ts b/lib/Helper.ts index 66729a2..bc35100 100644 --- a/lib/Helper.ts +++ b/lib/Helper.ts @@ -1,3 +1,10 @@ +/* + * Copyright (C) SapphireCode - All Rights Reserved + * This file is part of Snippeteer which is released under BSD-3-Clause. + * See file 'LICENSE' for full license details. + * Created by Timo Hocker , May 2020 + */ + import path from 'path'; import child_process from 'child_process'; import fs from 'fs-extra'; diff --git a/lib/Snippet.ts b/lib/Snippet.ts index 8137188..b5f71bb 100644 --- a/lib/Snippet.ts +++ b/lib/Snippet.ts @@ -2,7 +2,7 @@ * Copyright (C) SapphireCode - All Rights Reserved * This file is part of Snippeteer which is released under BSD-3-Clause. * See file 'LICENSE' for full license details. - * Created by Timo Hocker , April 2020 + * Created by Timo Hocker , May 2020 */ export interface Snippet { diff --git a/lib/dialog.ts b/lib/dialog.ts index 85b6cdb..fe7aadc 100644 --- a/lib/dialog.ts +++ b/lib/dialog.ts @@ -2,7 +2,7 @@ * Copyright (C) SapphireCode - All Rights Reserved * This file is part of Snippeteer which is released under BSD-3-Clause. * See file 'LICENSE' for full license details. - * Created by Timo Hocker , April 2020 + * Created by Timo Hocker , May 2020 */ export class DialogHandler { diff --git a/lib/enquirer.d.ts b/lib/enquirer.d.ts index 7a46283..d654194 100644 --- a/lib/enquirer.d.ts +++ b/lib/enquirer.d.ts @@ -2,7 +2,7 @@ * Copyright (C) SapphireCode - All Rights Reserved * This file is part of Snippeteer which is released under BSD-3-Clause. * See file 'LICENSE' for full license details. - * Created by Timo Hocker , April 2020 + * Created by Timo Hocker , May 2020 */ declare module 'enquirer'; diff --git a/lib/index.ts b/lib/index.ts index f8b589a..5550ffd 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -2,7 +2,7 @@ * Copyright (C) SapphireCode - All Rights Reserved * This file is part of Snippeteer which is released under BSD-3-Clause. * See file 'LICENSE' for full license details. - * Created by Timo Hocker , April 2020 + * Created by Timo Hocker , May 2020 */ import path from 'path'; diff --git a/lib/snippets/copyright/copyright_generator.ts b/lib/snippets/copyright/copyright_generator.ts index e0af717..880bc3c 100644 --- a/lib/snippets/copyright/copyright_generator.ts +++ b/lib/snippets/copyright/copyright_generator.ts @@ -2,7 +2,7 @@ * Copyright (C) SapphireCode - All Rights Reserved * This file is part of Snippeteer which is released under BSD-3-Clause. * See file 'LICENSE' for full license details. - * Created by Timo Hocker , April 2020 + * Created by Timo Hocker , May 2020 */ import { CopyrightOptions } from './copyright_options'; diff --git a/lib/snippets/copyright/copyright_options.ts b/lib/snippets/copyright/copyright_options.ts index 4a50cec..520e4b4 100644 --- a/lib/snippets/copyright/copyright_options.ts +++ b/lib/snippets/copyright/copyright_options.ts @@ -2,7 +2,7 @@ * Copyright (C) SapphireCode - All Rights Reserved * This file is part of Snippeteer which is released under BSD-3-Clause. * See file 'LICENSE' for full license details. - * Created by Timo Hocker , April 2020 + * Created by Timo Hocker , May 2020 */ export class CopyrightOptions { diff --git a/lib/snippets/copyright/file_mapper.ts b/lib/snippets/copyright/file_mapper.ts index e300831..5aa294f 100644 --- a/lib/snippets/copyright/file_mapper.ts +++ b/lib/snippets/copyright/file_mapper.ts @@ -2,7 +2,7 @@ * Copyright (C) SapphireCode - All Rights Reserved * This file is part of Snippeteer which is released under BSD-3-Clause. * See file 'LICENSE' for full license details. - * Created by Timo Hocker , April 2020 + * Created by Timo Hocker , May 2020 */ /* eslint-disable no-await-in-loop */ diff --git a/lib/snippets/copyright/index.ts b/lib/snippets/copyright/index.ts index 40ae72e..c273c8e 100644 --- a/lib/snippets/copyright/index.ts +++ b/lib/snippets/copyright/index.ts @@ -2,7 +2,7 @@ * Copyright (C) SapphireCode - All Rights Reserved * This file is part of Snippeteer which is released under BSD-3-Clause. * See file 'LICENSE' for full license details. - * Created by Timo Hocker , April 2020 + * Created by Timo Hocker , May 2020 */ /* eslint-disable no-await-in-loop */ diff --git a/lib/snippets/database/classes/Column.ts b/lib/snippets/database/classes/Column.ts index 78e01e5..d256d98 100644 --- a/lib/snippets/database/classes/Column.ts +++ b/lib/snippets/database/classes/Column.ts @@ -1,3 +1,10 @@ +/* + * Copyright (C) SapphireCode - All Rights Reserved + * This file is part of Snippeteer which is released under BSD-3-Clause. + * See file 'LICENSE' for full license details. + * Created by Timo Hocker , May 2020 + */ + import { ColumnType } from './ColumnType'; import { Relation } from './Relation'; diff --git a/lib/snippets/database/classes/ColumnType.ts b/lib/snippets/database/classes/ColumnType.ts index 4ecc8c1..a7cf81b 100644 --- a/lib/snippets/database/classes/ColumnType.ts +++ b/lib/snippets/database/classes/ColumnType.ts @@ -1,3 +1,10 @@ +/* + * Copyright (C) SapphireCode - All Rights Reserved + * This file is part of Snippeteer which is released under BSD-3-Clause. + * See file 'LICENSE' for full license details. + * Created by Timo Hocker , May 2020 + */ + export enum ColumnType { string = 'string', text = 'text', diff --git a/lib/snippets/database/classes/Database.ts b/lib/snippets/database/classes/Database.ts index 386d388..45f98c9 100644 --- a/lib/snippets/database/classes/Database.ts +++ b/lib/snippets/database/classes/Database.ts @@ -1,3 +1,10 @@ +/* + * Copyright (C) SapphireCode - All Rights Reserved + * This file is part of Snippeteer which is released under BSD-3-Clause. + * See file 'LICENSE' for full license details. + * Created by Timo Hocker , May 2020 + */ + import { Table } from './Table'; export class Database { diff --git a/lib/snippets/database/classes/PatchAction.ts b/lib/snippets/database/classes/PatchAction.ts index aa91222..185ebf2 100644 --- a/lib/snippets/database/classes/PatchAction.ts +++ b/lib/snippets/database/classes/PatchAction.ts @@ -1,3 +1,10 @@ +/* + * Copyright (C) SapphireCode - All Rights Reserved + * This file is part of Snippeteer which is released under BSD-3-Clause. + * See file 'LICENSE' for full license details. + * Created by Timo Hocker , May 2020 + */ + import { Database } from './Database'; export interface PatchAction { diff --git a/lib/snippets/database/classes/PatchActions.ts b/lib/snippets/database/classes/PatchActions.ts index 0f52c6f..b9da465 100644 --- a/lib/snippets/database/classes/PatchActions.ts +++ b/lib/snippets/database/classes/PatchActions.ts @@ -1,3 +1,10 @@ +/* + * Copyright (C) SapphireCode - All Rights Reserved + * This file is part of Snippeteer which is released under BSD-3-Clause. + * See file 'LICENSE' for full license details. + * Created by Timo Hocker , May 2020 + */ + export enum PatchActions { rename_column = 'rc', add_column = 'ac', diff --git a/lib/snippets/database/classes/Relation.ts b/lib/snippets/database/classes/Relation.ts index 89cb134..66e7e63 100644 --- a/lib/snippets/database/classes/Relation.ts +++ b/lib/snippets/database/classes/Relation.ts @@ -1,3 +1,10 @@ +/* + * Copyright (C) SapphireCode - All Rights Reserved + * This file is part of Snippeteer which is released under BSD-3-Clause. + * See file 'LICENSE' for full license details. + * Created by Timo Hocker , May 2020 + */ + export class Relation { public column: string; public table: string; diff --git a/lib/snippets/database/classes/Serializable.ts b/lib/snippets/database/classes/Serializable.ts index 7d5a8d3..3a25705 100644 --- a/lib/snippets/database/classes/Serializable.ts +++ b/lib/snippets/database/classes/Serializable.ts @@ -1,3 +1,10 @@ +/* + * Copyright (C) SapphireCode - All Rights Reserved + * This file is part of Snippeteer which is released under BSD-3-Clause. + * See file 'LICENSE' for full license details. + * Created by Timo Hocker , May 2020 + */ + export interface Serializable { serialize(): string; } diff --git a/lib/snippets/database/classes/Table.ts b/lib/snippets/database/classes/Table.ts index 94abde1..dd9d9de 100644 --- a/lib/snippets/database/classes/Table.ts +++ b/lib/snippets/database/classes/Table.ts @@ -1,3 +1,10 @@ +/* + * Copyright (C) SapphireCode - All Rights Reserved + * This file is part of Snippeteer which is released under BSD-3-Clause. + * See file 'LICENSE' for full license details. + * Created by Timo Hocker , May 2020 + */ + import { Column } from './Column'; export class Table { diff --git a/lib/snippets/database/index.ts b/lib/snippets/database/index.ts index c51316c..dc59e37 100644 --- a/lib/snippets/database/index.ts +++ b/lib/snippets/database/index.ts @@ -1,3 +1,10 @@ +/* + * Copyright (C) SapphireCode - All Rights Reserved + * This file is part of Snippeteer which is released under BSD-3-Clause. + * See file 'LICENSE' for full license details. + * Created by Timo Hocker , May 2020 + */ + import { Snippet } from '../../Snippet'; export default class Database implements Snippet { diff --git a/lib/snippets/database/patch_actions/RenameColumn.ts b/lib/snippets/database/patch_actions/RenameColumn.ts index 289c382..c1bff12 100644 --- a/lib/snippets/database/patch_actions/RenameColumn.ts +++ b/lib/snippets/database/patch_actions/RenameColumn.ts @@ -1,3 +1,10 @@ +/* + * Copyright (C) SapphireCode - All Rights Reserved + * This file is part of Snippeteer which is released under BSD-3-Clause. + * See file 'LICENSE' for full license details. + * Created by Timo Hocker , May 2020 + */ + import { Serializable } from '../classes/Serializable'; import { PatchAction } from '../classes/PatchAction'; import { Database } from '../classes/Database'; diff --git a/lib/snippets/jenkins/Assets.ts b/lib/snippets/jenkins/Assets.ts index 6b75946..0c10f8b 100644 --- a/lib/snippets/jenkins/Assets.ts +++ b/lib/snippets/jenkins/Assets.ts @@ -1,3 +1,10 @@ +/* + * Copyright (C) SapphireCode - All Rights Reserved + * This file is part of Snippeteer which is released under BSD-3-Clause. + * See file 'LICENSE' for full license details. + * Created by Timo Hocker , May 2020 + */ + /* eslint-disable max-len */ import { files } from '@sapphirecode/standard'; diff --git a/lib/snippets/jenkins/index.ts b/lib/snippets/jenkins/index.ts index 199b90d..ba62ab7 100644 --- a/lib/snippets/jenkins/index.ts +++ b/lib/snippets/jenkins/index.ts @@ -2,7 +2,7 @@ * Copyright (C) SapphireCode - All Rights Reserved * This file is part of Snippeteer which is released under BSD-3-Clause. * See file 'LICENSE' for full license details. - * Created by Timo Hocker , April 2020 + * Created by Timo Hocker , May 2020 */ import { Confirm } from 'enquirer'; diff --git a/lib/snippets/node/Assets.ts b/lib/snippets/node/Assets.ts index 599f7c6..4888c10 100644 --- a/lib/snippets/node/Assets.ts +++ b/lib/snippets/node/Assets.ts @@ -1,3 +1,10 @@ +/* + * Copyright (C) SapphireCode - All Rights Reserved + * This file is part of Snippeteer which is released under BSD-3-Clause. + * See file 'LICENSE' for full license details. + * Created by Timo Hocker , May 2020 + */ + const eslintrc = `module.exports = { env: { commonjs: true, @@ -5,7 +12,7 @@ const eslintrc = `module.exports = { node: true }, extends: [ - '@scode' + '@sapphirecode' ], globals: { Atomics: 'readonly', @@ -24,7 +31,7 @@ const eslintrc_ts = `module.exports = { node: true }, extends: [ - '@scode/eslint-config-ts' + '@sapphirecode/eslint-config-ts' ], globals: { Atomics: 'readonly', @@ -42,9 +49,6 @@ const gitignore = `/node_modules/ /coverage/ `; -const npmrc = `@scode:registry=https://npm.scode.ovh -`; - const tsconfig = `{ "compilerOptions": { "target": "es5", @@ -63,4 +67,4 @@ const eslintignore = `/dist/ *.d.ts `; -export { eslintrc, gitignore, npmrc, tsconfig, eslintrc_ts, eslintignore }; +export { eslintrc, gitignore, tsconfig, eslintrc_ts, eslintignore }; diff --git a/lib/snippets/node/index.ts b/lib/snippets/node/index.ts index 28d6491..c8c0cce 100644 --- a/lib/snippets/node/index.ts +++ b/lib/snippets/node/index.ts @@ -2,7 +2,7 @@ * Copyright (C) SapphireCode - All Rights Reserved * This file is part of Snippeteer which is released under BSD-3-Clause. * See file 'LICENSE' for full license details. - * Created by Timo Hocker , April 2020 + * Created by Timo Hocker , May 2020 */ import path from 'path'; @@ -12,7 +12,7 @@ import { Snippet } from '../../Snippet'; import { apply_template, modify_json, run_command } from '../../Helper'; import { - eslintrc, gitignore, npmrc, + eslintrc, gitignore, tsconfig, eslintrc_ts, eslintignore } from './Assets'; @@ -75,7 +75,6 @@ export default class Node implements Snippet { .run (); await apply_template (eslintrc, path.join (folder, '.eslintrc.js')); - await apply_template (npmrc, path.join (folder, '.npmrc')); await apply_template (gitignore, path.join (folder, '.gitignore')); await apply_template ( eslintignore, @@ -91,7 +90,7 @@ export default class Node implements Snippet { run_command ('git init', folder); run_command ('yarn init -y', folder); run_command ( - `yarn add --dev @scode/eslint-config${use_ts + `yarn add --dev @sapphirecode/eslint-config${use_ts ? '-ts typescript @ava/typescript' : ''} eslint nyc ava`, folder diff --git a/package.json b/package.json index 4057dcd..e6abf3e 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "/dist/", "LICENSE" ], - "author": "Timo Hocker", + "author": "Timo Hocker ", "license": "BSD-3-Clause", "devDependencies": { "@sapphirecode/eslint-config-ts": "^1.0.22", @@ -38,4 +38,4 @@ "engines": { "node": ">=10.0.0" } -} +} \ No newline at end of file