Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
95 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lib/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Copyright (C) 2015-2016 Bloomberg Finance L.P. | ||
|
||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Lesser General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
|
||
In addition to the permissions granted to you by the LGPL, you may combine | ||
or link a "work that uses the Library" with a publicly distributed version | ||
of this file to produce a combined library or application, then distribute | ||
that combined work under the terms of your choosing, with no requirement | ||
to comply with the obligations normally placed on you by section 4 of the | ||
LGPL version 3 (or the corresponding section of a later version of the LGPL | ||
should you choose to use a later version). | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Lesser General Public License for more details. | ||
|
||
You should have received a copy of the GNU Lesser General Public License | ||
along with this program; if not, write to the Free Software | ||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "belt-js", | ||
"version": "2.2.3", | ||
"description": "BuckleScript compiled standard libraries", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/bucklescript/bucklescript.git" | ||
}, | ||
"keywords": [ | ||
"ocaml", | ||
"bucklescript", | ||
"stdlib", | ||
"functional programming" | ||
], | ||
"author": { | ||
"name": "Hongbo Zhang" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "hongbo_zhang", | ||
"email": "bobzhang1988@gmail.com" | ||
} | ||
], | ||
"license": "SEE LICENSE IN LICENSE", | ||
"bugs": { | ||
"url": "https://github.com/bucklescript/bucklescript/issues" | ||
}, | ||
"homepage": "https://github.com/bucklescript/bucklescript#readme" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
BELT_FOLDER_NAME="belt-js" | ||
MAIN_PACKAGE_VERSION=$(node -p -e "require('./package.json').version") | ||
BELT_PACKAGE_VERSION=$(node -p -e "require('./$BELT_FOLDER_NAME/package.json').version") | ||
|
||
echo "**Preparing and publishing belt-js...**\n" | ||
|
||
if [ $MAIN_PACKAGE_VERSION == $BELT_PACKAGE_VERSION ]; then | ||
# make && make install && \ | ||
cd jscomp && cd ../belt-js && \ | ||
mkdir -p ./lib/js && cp ../lib/js/* ./lib/js && \ | ||
mkdir -p ./lib/amdjs && cp ../lib/amdjs/* ./lib/amdjs && \ | ||
mkdir -p ./lib/es6 && cp ../lib/es6/* ./lib/es6 && \ | ||
echo "Finished prepublishing $BELT_FOLDER_NAME, version $BELT_PACKAGE_VERSION" | ||
# && npm publish | ||
else | ||
echo "Error: bs-platform and belt-js don't have the same version.\nbs-platform is $MAIN_PACKAGE_VERSION and belt-js is $BELT_PACKAGE_VERSION" | ||
fi |