内容简介: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:
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》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
精通Spring
罗时飞 / 第1版 (2005年4月1日) / 2005-4 / 39.0
本书深入剖析了当前流行的轻量级开发框架Spring技术。本书总共分成3部分。第一部分,重点阐述Spring的架构。这部分内容循序渐进带领开发者进入Spring中。主要在于阐述Spring IoC和Spring AOP。第二部分,重点阐述Spring的使用。这部分内容从简化Java/J2EE的角度出发,从J2EE平台各个技术层面分析、并给出大量的研究实例,对Spring提供的API进行阐述。主要在于......一起来看看 《精通Spring》 这本书的介绍吧!