Texa-Electron
A Powerful TypeScript Framework For Creating Beautiful, Secure, Natively And Fast Desktop App With ElectronJS
⚠Important Note This is Beta Release
- Components-Based & Customizable UI Components : Build Complex UI Components that's logic is written in JavaScript
Files Only easily and fast pass rich data through your app With texa-ui.
- Electron JS Project management : So You Don,t Need To Use Electron Packer To Publish or Electron Cli to Build Only
All That Created By One Command
- Optimized Project : Texa Uses WebPack And Some Loaders To Build Your Own App Faster And
Simplify + Minify Your Code To Get High Performance
- Native-Performance : Texa Uses Assembly Script To Create Your Own Native
Modules And Liked After App Loading To Get Native Performance
Not Realsed
Installation
Install the package with NPM and add it to your as `devDependencies`
$ npm i -g texa-electron
$ mkdir Hello && cd Hello
$ tx-e create <---- this command is for creating App
ℹ it Installs Texa-Lib package by Default
Create Project
if you want to create project form inside package you can use `"create":"texa create"` to package.json
{
"script": {
"create": "tx-e create"
}
}
Start Project
⚠ Before Run Project You Should Add Boot.js To Main Entry of package.json
Add "start":"tx-e start && electron ."
to package.json
{
"script": {
"start": "tx-e start && electron ."
}
}
Start Electron App Without Build
You Can Use electron cli because it should be installed after project created
Add "start:app":"electron ."
to package.json
{
"script": {
"start:app": "electron ."
}
}
Watch Project
it enables to webpack to start watching
Add "watch": "tx-e watch"
to package.json
ℹ Run start:app then watch
{
"script": {
"start:app": "electron .",
"watch": "tx-e watch"
}
}
Build & Pack Your Project To Executables
Edit Your `build.json` for more info
Add "build": "tx-e build"
to package.json
{
"script": {
"build": "tx-e build"
}
}
build.json
⚠ Dont Delete This File Without This File Your App Not Compile
build.json
this file is configuration file for electron-packer
{
"appName": "Hello World",
"appVersion": "1.0.0",
"appCopyRight": "2021",
"arch": "x64",
"icon": "./app.ico",
"executableName": "HelloWorld",
"macos": {
"appCategoryType": "None"
}
}