Skip to content

Commit

Permalink
Release 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
osoftware committed May 19, 2020
1 parent b7ca245 commit bb8e0bf
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 13 deletions.
10 changes: 6 additions & 4 deletions spedn-js/cli/build.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
VERSION="0.3.0"

cabal new-build --ghcjs

npx google-closure-compiler \
--compilation_level=SIMPLE \
--env=CUSTOM \
--module_resolution=NODE \
--jscomp_off=checkVars \
--externs=dist-newstyle/build/x86_64-linux/ghcjs-8.6.0.1/spedn-0.2.2/x/spedn/build/spedn/spedn.jsexe/all.js.externs \
--js=dist-newstyle/build/x86_64-linux/ghcjs-8.6.0.1/spedn-0.2.2/x/spedn/build/spedn/spedn.jsexe/all.js \
--js_output_file=dist-newstyle/build/x86_64-linux/ghcjs-8.6.0.1/spedn-0.2.2/x/spedn/build/spedn/spedn.jsexe/all.min.js
--externs=dist-newstyle/build/x86_64-linux/ghcjs-8.6.0.1/spedn-$VERSION/x/spedn/build/spedn/spedn.jsexe/all.js.externs \
--js=dist-newstyle/build/x86_64-linux/ghcjs-8.6.0.1/spedn-$VERSION/x/spedn/build/spedn/spedn.jsexe/all.js \
--js_output_file=dist-newstyle/build/x86_64-linux/ghcjs-8.6.0.1/spedn-$VERSION/x/spedn/build/spedn/spedn.jsexe/all.min.js

rm spedn.js
echo "#!/usr/bin/env node" >> spedn.js
cat dist-newstyle/build/x86_64-linux/ghcjs-8.6.0.1/spedn-0.2.2/x/spedn/build/spedn/spedn.jsexe/all.min.js >> spedn.js
cat dist-newstyle/build/x86_64-linux/ghcjs-8.6.0.1/spedn-$VERSION/x/spedn/build/spedn/spedn.jsexe/all.min.js >> spedn.js
chmod +x spedn.js
2 changes: 1 addition & 1 deletion spedn-js/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spedn-cli",
"version": "0.2.2",
"version": "0.3.0",
"description": "Spedn compiler CLI",
"main": "all.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion spedn-js/cli/spedn.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cabal-version: 1.12
-- hash: 787c2e773af182cffd3e873076670af89fbb21b733050a549efd5aeb89e2f476

name: spedn
version: 0.2.2
version: 0.3.0
synopsis: Bitcoin Cash smart contracts compiler.
description: Spedn is a high-level, strongly typed smart contract language compiled to Bitcoin Script.
category: Bitcoin
Expand Down
10 changes: 6 additions & 4 deletions spedn-js/lib/bundle.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
VERSION="0.3.0"

cabal new-build --ghcjs

rm -rf dist
Expand All @@ -10,10 +12,10 @@ npx google-closure-compiler \
--jscomp_off=checkVars \
--output_wrapper="(function(global){%output%})(exports)" \
--assume_function_wrapper \
--externs=dist-newstyle/build/x86_64-linux/ghcjs-8.6.0.1/spedn-0.2.2/x/spedn/build/spedn/spedn.jsexe/all.js.externs \
--js=dist-newstyle/build/x86_64-linux/ghcjs-8.6.0.1/spedn-0.2.2/x/spedn/build/spedn/spedn.jsexe/rts.js \
--js=dist-newstyle/build/x86_64-linux/ghcjs-8.6.0.1/spedn-0.2.2/x/spedn/build/spedn/spedn.jsexe/lib.js \
--js=dist-newstyle/build/x86_64-linux/ghcjs-8.6.0.1/spedn-0.2.2/x/spedn/build/spedn/spedn.jsexe/out.js \
--externs=dist-newstyle/build/x86_64-linux/ghcjs-8.6.0.1/spedn-$VERSION/x/spedn/build/spedn/spedn.jsexe/all.js.externs \
--js=dist-newstyle/build/x86_64-linux/ghcjs-8.6.0.1/spedn-$VERSION/x/spedn/build/spedn/spedn.jsexe/rts.js \
--js=dist-newstyle/build/x86_64-linux/ghcjs-8.6.0.1/spedn-$VERSION/x/spedn/build/spedn/spedn.jsexe/lib.js \
--js=dist-newstyle/build/x86_64-linux/ghcjs-8.6.0.1/spedn-$VERSION/x/spedn/build/spedn/spedn.jsexe/out.js \
--js=src/interop.js \
--js_output_file=dist/compiler_service.js

2 changes: 1 addition & 1 deletion spedn-js/lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spedn",
"version": "0.2.2",
"version": "0.3.0",
"description": "Spedn compiler SDK",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion spedn-js/lib/spedn.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cabal-version: 1.12
-- hash: cdacdca15f298e522044a4a951eb7d7a674745d4c5fc7cfa435d63ffbd51b84b

name: spedn
version: 0.2.2
version: 0.3.0
synopsis: Bitcoin Cash smart contracts compiler.
description: Spedn is a high-level, strongly typed smart contract language compiled to Bitcoin Script.
category: Bitcoin
Expand Down
2 changes: 1 addition & 1 deletion spedn/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Cabal file when you run `stack build`. See the hpack website for help with
# this file: <https://github.com/sol/hpack>.
name: spedn
version: '0.2.2'
version: '0.3.0'
git: "https://bitbucket.org/o-studio/spedn.git"
license: MIT
author: (o) Software
Expand Down

0 comments on commit bb8e0bf

Please sign in to comment.