Skip to content

Commit

Permalink
added StackApps generation to the build flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Oaphi committed May 9, 2022
1 parent 27b8320 commit 67c2b93
Show file tree
Hide file tree
Showing 5 changed files with 122 additions and 2 deletions.
60 changes: 60 additions & 0 deletions STACKAPPS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
Template - template repository for userscripters' projects

script


<!-- thumbnail: -->
<!-- version: 0.1.0 -->
<!-- tag: script -->
<!-- excerpt: This is a placeholder repository and should be customized upon forking -->

## Screenshot

![a post being highlighted and de-highlighted after a delay](https://i.stack.imgur.com/55TGz.gif)

## About

Template repository for UserScripters projects.

### License

The script is licensed under the [GPL-3.0-or-later](https://spdx.org/licenses/GPL-3.0-or-later) license.

### Download

Latest version: 0.1.0

[Install](https://github.com/userscripters/template/raw/master/dist/modern/index.user.js) | [Minified](https://github.com/userscripters/template/raw/master/dist/modern/index.min.user.js)

### Platform

Version number means "last tested on":

| Chrome | Edge | Explorer | Firefox | Opera |
| - | - | - | - | - |
| ✔ 100.0.4896.127 | - | - | - | - |

## Change log

| Version | Description |
| ---------- | ----------- |
| 0.1.0 | |

## Contact

Author: Jane Doe
<br>Organization: [UserScripters](https://github.com/userscripters)

Contributors:
<br>John Doe

Please, submit bug reports [on the source repository](https://github.com/userscripters/template/issues).
<br>Before adding a new one, please check if it hasn't been raised before.

You can also [drop by to chat](https://chat.stackoverflow.com/rooms/214345), we are a friendly bunch.

## Code

[Source code](https://github.com/userscripters/template/blob/master/src/index.ts) is written in TypeScript.

Contributions are welcome, you can always [submit a PR here](https://github.com/userscripters/template/pulls).
44 changes: 44 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"build-all": "bash ./scripts/build.sh",
"headers-tm": "bash ./scripts/headers.sh",
"readme": "bash ./scripts/readme.sh",
"postversion": "bash ./scripts/postversion.sh"
"postversion": "bash ./scripts/postversion.sh",
"stackapps": "bash ./scripts/stackapps.sh"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -51,6 +52,7 @@
"@typescript-eslint/parser": "^5.22.0",
"@userscripters/generate-headers": "^2.12.1",
"@userscripters/generate-readme": "^2.3.1",
"@userscripters/generate-stackapps": "^1.2.0",
"@userscripters/stackexchange-api-types": "^3.4.0",
"@userscripters/stackexchange-global-types": "^2.4.1",
"@userscripters/storage": "^0.1.2",
Expand Down
3 changes: 2 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ npm run prebuild &&
npm run build-legacy &&
npm run build-modern &&
npm run headers-tm &&
npm run readme
npm run readme &&
npm run stackapps

declare files=$(find dist -iname "*\.js" -not -iname "headers*")

Expand Down
13 changes: 13 additions & 0 deletions scripts/stackapps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
generate-stackapps \
--about "Template repository for UserScripters projects." \
--chrome "100.0.4896.127" \
--excerpt "This is a placeholder repository and should be customized upon forking" \
--install "https://github.com/userscripters/template/raw/master/dist/modern/index.user.js" \
--minified "https://github.com/userscripters/template/raw/master/dist/modern/index.min.user.js" \
--language "TypeScript" \
--org-name "UserScripters" \
--org-url "https://github.com/userscripters" \
--room "https://chat.stackoverflow.com/rooms/214345" \
--screenshot-alt "a post being highlighted and de-highlighted after a delay" \
--screenshot-url "https://i.stack.imgur.com/55TGz.gif" \
--tag "script"

0 comments on commit 67c2b93

Please sign in to comment.