playground/

directory
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2023 License: MIT

README

uGO Playground

uGO Playground is a single page web application to create playground for uGO script language. Playground is built for WebAssembly.

Project setup

Install followings:

  • go v1.17
  • node v14
  • npm
  • yarn
go install github.com/ozanh/ugo@latest

It is recommended to install Vue CLI npm packages globally for development purposes. See detailed Vue CLI installation instructions here.

yarn global add @vue/cli

Install all node dependencies with the following:

yarn install

Use vue ui command to access to awesome Vue GUI to serve/build/test instantly.

Compiles and hot-reloads for development
make development
yarn run serve
Compiles and minifies for production
make production
yarn run build

Built files are placed in dist directory.

There is a simple Go web server in the package at cmd/server directory to access web application which can be run with the following command:

go run cmd/server/main.go
go run cmd/server/main.go -h
Usage
  -dir string
        file server root directory (default "dist")
  -listen string
        bind address:port (default ":9090")
Lints and fixes files
yarn run lint
Test Go and JS
make test
yarn run test
Customize configuration

See Makefile file for testing and building.

See vue.config.js file for Vue settings (Configuration Reference).

See package.json file for other settings.

TODO

  • Import uGO scripts as modules from local files, http(s) addresses and github gists.

LICENSE

uGO Playground is licensed under the MIT License.

See LICENSE for the full license text.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL