Skip to content

Commit

Permalink
Added better default tokens.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Mar 21, 2023
1 parent 9fbc18a commit 220125d
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# These are supported funding model platforms

patreon: alexskrypnyk
patreon: yournamespace
53 changes: 25 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
# Scaffold

Generic project scaffold template
Generic project yourproject template

[//]: # (#;< META)
<br>

<table>
<tr>
<td colspan="5" align="center"><strong>META: How to use this scaffold repository</strong></td>
</tr>
<tr>
<td>1. Click on <strong>Use this template</strong> > <strong>Create a new repository</strong></td>
<td> → </td>
<td>2. Checkout locally and run <code>./init.sh</code></td>
<td> → </td>
<td>3. Adjust this <code>README.md</code> as required</td>
</tr>
<tr>
<td colspan="5">The content of this <code>README.md</code> file will be a part of your repository.</td>
</tr>
</table>
| **META: How to use this scaffold repository** |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 1. Click on **Use this template** > **Create a new repository**<br>2. Checkout locally <br>3. Run `./init.sh` to replace `yournamespace`, `yourproject`, `Your Name` strings with your own |
| The contents below will be a part of your repository. |
<br>

[//]: # (#;> META)

Expand All @@ -33,41 +24,47 @@ Generic project scaffold template
- Your third feature as a list item

## Installation

[//]: # (#;< COMPOSER)
composer require alexskrypnyk/scaffold

composer require yournamespace/yourproject

[//]: # (#;> COMPOSER)

[//]: # (#;< NODEJS)
npm install @alexskrypnyk/scaffold

npm install @yournamespace/yourproject

[//]: # (#;> NODEJS)

## Usage

[//]: # (#;< COMPOSER)

vendor/bin/scaffold
vendor/bin/yourproject

[//]: # (#;> COMPOSER)

[//]: # (#;< NODEJS)

node_modules/.bin/scaffold
node_modules/.bin/yourproject

[//]: # (#;> NODEJS)

## Maintenance

[//]: # (#;< COMPOSER)

composer install
composer lint
composer test

[//]: # (#;> COMPOSER)

[//]: # (#;< NODEJS)

npm install
npm run lint
npm run test

[//]: # (#;> NODEJS)
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"name": "alexskrypnyk/scaffold",
"name": "yournamespace/yourproject",
"type": "library",
"description": "Provides scaffold functionality.",
"description": "Provides yourproject functionality.",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Alex Skrypnyk",
"email": "alex@drevops.com",
"homepage": "https://alexskrypnyk.com",
"name": "Your Name",
"email": "yourproject@yournamespace.com",
"homepage": "https://yournamespace.com",
"role": "Maintainer"
}
],
"homepage": "https://github.com/alexskrypnyk/scaffold",
"homepage": "https://github.com/yournamespace/yourproject",
"support": {
"issues": "https://github.com/alexskrypnyk/scaffold/issues",
"source": "https://github.com/alexskrypnyk/scaffold"
"issues": "https://github.com/yournamespace/yourproject/issues",
"source": "https://github.com/yournamespace/yourproject"
},
"require": {},
"scripts": {
Expand Down
9 changes: 5 additions & 4 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# ./init
#
# Silent:
# ./init yournamespace yourproject "your name"
# ./init yournamespace yourproject "Your Name"
#
# shellcheck disable=SC2162

Expand Down Expand Up @@ -71,10 +71,11 @@ remove_nodejs() {
[ "$usecomposer" != "y" ] && remove_composer
[ "$usenodejs" != "y" ] && remove_nodejs

replace_string_content "alexskrypnyk" "$namespace"
replace_string_content "yournamespace" "$namespace"
replace_string_content "yournamespace" "$namespace"
replace_string_content "AlexSkrypnyk" "$namespace"
replace_string_content "scaffold" "$project"
replace_string_content "Alex Skrypnyk" "$author"
replace_string_content "yourproject" "$project"
replace_string_content "Your Name" "$author"

remove_tokens_with_content "META"
remove_special_comments
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "@alexskrypnyk/scaffold",
"name": "@yournamespace/yourproject",
"version": "0.1.0",
"description": "Provides scaffold functionality.",
"description": "Provides yourproject functionality.",
"license": "GPL-2.0-or-later",
"author": {
"name": "Alex Skrypnyk",
"email": "alex@drevops.com",
"url": "https://alexskrypnyk.com"
"name": "Your Name",
"email": "yourproject@yournamespace.com",
"url": "https://yournamespace.com"
},
"contributors": [],
"repository": "github:alexskrypnyk/scaffold",
"bugs": "https://github.com/alexskrypnyk/scaffold/issues",
"repository": "github:yournamespace/yourproject",
"bugs": "https://github.com/yournamespace/yourproject/issues",
"directories": {
"test": "tests"
},
Expand Down

0 comments on commit 220125d

Please sign in to comment.