Skip to content

Commit

Permalink
feat: add BSD 2-Clause License and author information (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kordrad committed Jun 18, 2024
1 parent 1325318 commit 9336578
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 1 deletion.
24 changes: 24 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
BSD 2-Clause License

Copyright (c) 2024, Konrad Stępień

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

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.

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.
24 changes: 24 additions & 0 deletions projects/cli/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
BSD 2-Clause License

Copyright (c) 2024, Konrad Stępień

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

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.

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.
15 changes: 14 additions & 1 deletion projects/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
{
"name": "@ng-zen/cli",
"version": "0.0.1",
"license": "BSD-2-Clause",
"repository": {
"url": "https://github.com/Kordrad/ng-zen",
"directory": "projects/cli"
},
"bugs": {
"url": "https://github.com/Kordrad/ng-zen/issues"
},
"author": {
"name": "Konrad Stępień",
"email": "[email protected]",
"url": "https://www.linkedin.com/in/KonradStepien/"
},
"scripts": {
"build": "tsc -p tsconfig.schematics.json",
"postbuild": "npm run copy-files && npm run clean-packagejson",
"copy-files": "copyfiles schematics/*/schema.json schematics/*/files/** schematics/*/templates/** schematics/collection.json **/README.md package.json ../../dist/@ng-zen/cli/",
"copy-files": "copyfiles schematics/*/schema.json schematics/*/files/** schematics/*/templates/** schematics/collection.json **/README.md LICENSE package.json ../../dist/@ng-zen/cli/",
"clean-packagejson": "cd ../../dist/@ng-zen/cli && npm pkg delete scripts"
},
"schematics": "./schematics/collection.json",
Expand Down
1 change: 1 addition & 0 deletions projects/cli/schematics/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export function componentGenerator(options: ComponentGeneratorSchema): Rule {
const rules: Rule[] = [
applyTemplates({
name: component,
localeDate: new Date().toLocaleString(),
...strings,
}),
move(normalize(`${options.path}/${component}`)),
Expand Down
11 changes: 11 additions & 0 deletions projects/cli/schematics/components/templates/README.md.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
![GitHub License](https://img.shields.io/github/license/Kordrad/ng-zen)
![Angular Version](https://img.shields.io/badge/angular-v17-red)

Generated by `@ng-zen/cli` on <%= localeDate %>

## Overview

<%= classify(name) %> component was generated by
Expand All @@ -28,3 +30,12 @@ then you can generate components via
```bash
ng generate @ng-zen/cli:component
```


## Author

This component was generated by the `@ng-zen/cli` tool developed by Konrad Stępień.

This code is licensed under the BSD-2-Clause license. See the [LICENSE](https://github.com/Kordrad/ng-zen/blob/master/projects/cli/LICENSE) file for more details.

Source code can be found [here](https://github.com/Kordrad/ng-zen).

0 comments on commit 9336578

Please sign in to comment.