Skip to content

Commit

Permalink
Fix build-js
Browse files Browse the repository at this point in the history
  • Loading branch information
gz-c committed May 28, 2018
1 parent 40bd7aa commit b6baf98
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.idea/
gopherjs-tool.exe
gopherjs-tool
skycoin.js
skycoin.js.map
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
.PHONY: build-js build-js-min test lint check install-linters format fix-skycoin-dep help
.PHONY: test-js

build-js: ## Build /skycoinjs/skycoinjs.go. The result is saved in the repo root
build-js: ## Build /skycoin/skycoin.go. The result is saved in the repo root
go build -o gopherjs-tool vendor/github.com/gopherjs/gopherjs/tool.go
GOOS=linux ./gopherjs-tool build skycoinjs/skycoinjs.go
GOOS=linux ./gopherjs-tool build skycoin/skycoin.go

build-js-min: ## Build /skycoinjs/skycoinjs.go. The result is minified and saved in the repo root
build-js-min: ## Build /skycoin/skycoin.go. The result is minified and saved in the repo root
go build -o gopherjs-tool vendor/github.com/gopherjs/gopherjs/tool.go
GOOS=linux ./gopherjs-tool build skycoinjs/skycoinjs.go -m
GOOS=linux ./gopherjs-tool build skycoin/skycoin.go -m

test-js:
go build -o gopherjs-tool vendor/github.com/gopherjs/gopherjs/tool.go
./gopherjs-tool test ./skycoinjs/
./gopherjs-tool test ./skycoin/

test:
go test ./... -timeout=10m -cover
Expand Down
2 changes: 1 addition & 1 deletion skycoinjs/skycoinjs.go → skycoin/skycoin.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package skycoinjs
package main

import (
"github.com/gopherjs/gopherjs/js"
Expand Down
File renamed without changes.

0 comments on commit b6baf98

Please sign in to comment.