Electron Gatsby Boilerplate

栏目: IT技术 · 发布时间: 5年前

内容简介:Just another Electron boilerplate with Gatsby.Make sure you have Node.js installed:If you don't have Node.js installed into your system. Get it from

electron-gatsby-boilerplate

Just another Electron boilerplate with Gatsby.

Quick start

Make sure you have Node.js installed:

node -v

If you don't have Node.js installed into your system. Get it from here Once you're done with the installation, then type the following commands:

git clone https://github.com/zonayedpca/electron-gatsby-boilerplate.git
cd electron-gatsby-boilerplate
npm install
npm start

And now you'll see a running desktop application on your screen: Electron Gatsby Boilerplate

Structure of the project

This app has two main directory:

  • app (Electron Side)
  • client (Gatsby Side)

app (Electron Side)

Here you will put all of your logic related to Electron itself

client (Gatsby Side)

Here you will put all of you logic for the UI. Inside this directory, you will find another directory called screens . You can create new screens from here. Just give it a name, and you will able to create new BrowserWindow using the name. This boilerplate has also included a helper util function called getWindowURL which will help you to create new BrowserWindow for both production and development mode without any trouble. Just take a look at the given examples with the boilerplate.

Automatic Deployment

This project has also included a very basic configuration for TravisCI to build and deploy the production files to the GitHub release. But you must set an environment variable inside TravisCI's settings: Generate a new personal access token from your GitHub account with scope of repo (All Selected). And then set GH_TOKEN environemt variable inside TravisCI to work it properly.

You can also configure np inside package.json to personalize your deployment:

...
"np": {
		"publish": true,
		"releaseDraft": true
},
...

Development

You are welcome to make a PR for any kind of improvement of this project. If you find any issue, let us know . Thank You!


以上所述就是小编给大家介绍的《Electron Gatsby Boilerplate》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

海量运维、运营规划之道

海量运维、运营规划之道

唐文 / 电子工业出版社 / 2014-1-1 / 59.00

《海量运维、运营规划之道》作者具有腾讯、百度等中国一线互联网公司多年从业经历,书中依托工作实践,以互联网海量产品质量、效率、成本为核心,从规划、速度、监控、告警、安全、管理、流程、预案、考核、设备、带宽等方面,结合大量案例与读者分享了作者对互联网海量运维、运营规划的体会。 《海量运维、运营规划之道》全面介绍大型互联网公司运维工作所涉及的各个方面,是每个互联网运维工程师、架构师、管理人员不可或......一起来看看 《海量运维、运营规划之道》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

html转js在线工具
html转js在线工具

html转js在线工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具