diff --git a/.npmignore b/.npmignore index 1d5be5b..1c2895f 100644 --- a/.npmignore +++ b/.npmignore @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 + src/ tsconfig.json src/*.ts diff --git a/README.md b/README.md index 17e18ad..be4d9e6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ + + # Rule Command Line Interface Documentation * * * diff --git a/src/cli.ts b/src/cli.ts index 1c84bab..fe9ec78 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -1,4 +1,5 @@ -#!/usr/bin/env node +// SPDX-License-Identifier: Apache-2.0 + /* eslint-disable @typescript-eslint/no-explicit-any */ import { program } from 'commander'; import handleTemplating from './init/template'; diff --git a/src/common/loader.ts b/src/common/loader.ts index c05c1c1..5fa6dbf 100644 --- a/src/common/loader.ts +++ b/src/common/loader.ts @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + const loadingIndicator = ['|', '/', '-', '\\']; let currentIndex = 0; diff --git a/src/common/remove.ts b/src/common/remove.ts index d4277b4..db11d19 100644 --- a/src/common/remove.ts +++ b/src/common/remove.ts @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + /* eslint-disable @typescript-eslint/no-explicit-any */ import * as shell from 'shelljs'; import * as path from 'path'; diff --git a/src/init/template.ts b/src/init/template.ts index 5003a08..842aa45 100644 --- a/src/init/template.ts +++ b/src/init/template.ts @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + /* eslint-disable @typescript-eslint/no-explicit-any */ import * as path from 'path'; import * as prompts from 'prompts'; diff --git a/src/init/templates/non-returner-typescript/.github/workflows/publish.yml b/src/init/templates/non-returner-typescript/.github/workflows/publish.yml index b38a94b..bcc93a6 100644 --- a/src/init/templates/non-returner-typescript/.github/workflows/publish.yml +++ b/src/init/templates/non-returner-typescript/.github/workflows/publish.yml @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 + on: push: branches: diff --git a/src/init/templates/non-returner-typescript/.npmignore b/src/init/templates/non-returner-typescript/.npmignore index fd9d7b8..fe5e260 100644 --- a/src/init/templates/non-returner-typescript/.npmignore +++ b/src/init/templates/non-returner-typescript/.npmignore @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 + src src/*.ts **/index.ts diff --git a/src/init/templates/non-returner-typescript/README.md b/src/init/templates/non-returner-typescript/README.md index a37043c..c3cca83 100644 --- a/src/init/templates/non-returner-typescript/README.md +++ b/src/init/templates/non-returner-typescript/README.md @@ -1,2 +1,4 @@ + + # {{rulename}} Read me of {{rulename}} from {{orgname}} diff --git a/src/init/templates/returner-typescript/.github/workflows/publish.yml b/src/init/templates/returner-typescript/.github/workflows/publish.yml index b38a94b..bcc93a6 100644 --- a/src/init/templates/returner-typescript/.github/workflows/publish.yml +++ b/src/init/templates/returner-typescript/.github/workflows/publish.yml @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 + on: push: branches: diff --git a/src/init/templates/returner-typescript/.npmignore b/src/init/templates/returner-typescript/.npmignore index fd9d7b8..fe5e260 100644 --- a/src/init/templates/returner-typescript/.npmignore +++ b/src/init/templates/returner-typescript/.npmignore @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 + src src/*.ts **/index.ts diff --git a/src/init/templates/returner-typescript/README.md b/src/init/templates/returner-typescript/README.md index a37043c..c3cca83 100644 --- a/src/init/templates/returner-typescript/README.md +++ b/src/init/templates/returner-typescript/README.md @@ -1,2 +1,4 @@ + + # {{rulename}} Read me of {{rulename}} from {{orgname}} diff --git a/src/module/module.ts b/src/module/module.ts index 3cee14c..2cdfb8e 100644 --- a/src/module/module.ts +++ b/src/module/module.ts @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + /* eslint-disable @typescript-eslint/no-explicit-any */ import * as shell from 'shelljs'; import * as path from 'path'; diff --git a/src/start/start.ts b/src/start/start.ts index 453366e..b80241d 100644 --- a/src/start/start.ts +++ b/src/start/start.ts @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + /* eslint-disable @typescript-eslint/no-explicit-any */ import * as shell from 'shelljs'; import * as path from 'path';