KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
necropolis
★ 11
Open GitHub ↗
Typescript ScriptUI starter template
Download README (.md)
Explore Similar Repositories
websocketstream-polyfill
:
WebSocketStream Polyfill
device-registry-flask
:
An example REST API web service for registering smart devices, written in Python using Flask
Economic-Well-Being-Prediction
:
No description available.
php-blog-client
:
PHP client to get recent blog posts from popular blogging platforms.
atek.cloud
:
Website repository
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
necropolis
?
Download (.md)
# Necropolis Typescript ScriptUI starter template. Run as a resizable ScriptUI Panel, headless, or from [Kbar](https://aescripts.com/kbar/). Includes: - JSON - Footer info system - Simplified button stack building <img src="https://user-images.githubusercontent.com/8580225/185628520-2794035f-435d-4e53-b74b-534bad95c938.png" width="240"> # Documentation ### Getting started 1. Clone the repo without history ```shell git clone --depth 1 https://github.com/adamplouff/necropolis.git newProjName ``` or use [Degit](https://github.com/Rich-Harris/degit) to clone without an origin: ```shell degit https://github.com/adamplouff/necropolis.git ``` 2. Open the project in VS Code and CMD+Shift+F to replace `Necropolis` to your new project name. It's low-tech and simple. ### Main variables Update these to change the footer. ```js const scriptName = 'Necropolis' const scriptVersion = '0.1.0' const releaseYear = '2021' const author = 'Battle Axe' const helpURL = 'https://battleaxe.co/' ``` - `releaseYear` will create a copyright range from the first release to the current year, or a single year if the release and current years match. - `helpURL` becomes the link in the [ ? ] button. Remove or leave blank to remove this link. ### Buttons Within the `buildUI()` function, is an array of button objects. Add new buttons with a reference to the func they should call as strings. ```js const buildUI = () => { const buttons = [ { text: 'Do cool shit', func: 'mainFunc()', helpTip: 'This is a tooltip' }, ] ... ``` ### Kbar support A template for [Kbar arguments](https://bitbucket.org/kraftyfx/kbar/issues/105/let-consuming-scripts-know-if-and-how-they) is included. ```js switch (button.argument.toLowerCase()) { case 'run': // Kbar argument name mainFunc() break; default: buildUI() break; } ``` ## Scripts ### [Update](https://github.com/adamplouff/necropolis/blob/main/node_scripts/update.js) (thanks to [Tom Scharstein](https://github.com/Inventsable)) - Updates semantic versioning in: - `package.json` - `scriptVersion` variable in [host.ts](https://github.com/adamplouff/necropolis/blob/9911dccaeb5d725b1e89d238503c29e31629844b/src/host.ts#L8) ### [Package](https://github.com/adamplouff/necropolis/blob/main/node_scripts/package.js) (thanks to [Remco Janssen](https://gist.github.com/Klustre)) - Converts `./dist/ProjectName.jsx` to jsxbin - Creates a `manual.url` file linking to the `docsUrl` in [package.json](https://github.com/adamplouff/necropolis/blob/9911dccaeb5d725b1e89d238503c29e31629844b/package.json#L14) - Zips up all the files as `ProjectName_0.1.0.zip` into `./archive/` - ProjectName.jsx - ProjectName manual.url - All files in `./Package/`