AlexeyRaga/purescript-react-electron-example

语言: PureScript

git: https://github.com/AlexeyRaga/purescript-react-electron-example

README.md (中文)

示例$ PureScript + React + Electron

Screenshot

做好准备

如果您还没有这样做,请安装purescript(编译器)和纸浆(构建工具):

$ npm install -g purescript pulp

克隆存储库并使其准备就绪(只需要gulp因为我不知道如何做得更好;))

$ git clone git@github.com:AlexeyRaga/purescript-react-electron-example.git
$ cd purescript-react-electron-example

$ npm install        # installs js dependencies
$ pulp dep install   # installs purescript dependencies
$ gulp               # builds the project

在浏览器中运行

$ pulp server

然后导航到http:// localhost:1337

在电子中运行

首先安装电子:

$ npm install electron-prebuilt -g

然后,假设您在示例项目目录中执行:

$ electron .

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

Example $ PureScript + React + Electron

Screenshot

Getting ready

If you haven't done it already, install purescript (a compiler) and pulp (a build tool):

$ npm install -g purescript pulp

Clone the repository and make it ready (gulp is only needed because I don't know how to do better ;))

$ git clone git@github.com:AlexeyRaga/purescript-react-electron-example.git
$ cd purescript-react-electron-example

$ npm install        # installs js dependencies
$ pulp dep install   # installs purescript dependencies
$ gulp               # builds the project

Running in browser

$ pulp server

and then navigate to http://localhost:1337

Running in Electron

First install Electron:

$ npm install electron-prebuilt -g

Then, assuming you are in the example project directory execute:

$ electron .