Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Commit

Permalink
Test moving bsconfig to src. (#151)
Browse files Browse the repository at this point in the history
* Test moving bsconfig to src.

* Changes to CI.
  • Loading branch information
cristianoc committed Feb 19, 2019
1 parent b2eea60 commit 109faef
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Expand Up @@ -43,7 +43,7 @@ jobs:
- node_modules

# Tar things up
- run: tar czvf artifacts/gentype-linux.tar.gz -C lib/bs/native gentype.native
- run: tar czvf artifacts/gentype-linux.tar.gz -C src/lib/bs/native gentype.native

- store_artifacts:
path: artifacts/gentype-linux.tar.gz
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
- node_modules

# Tar things up
- run: tar czvf artifacts/gentype-macos.tar.gz -C lib/bs/native gentype.native
- run: tar czvf artifacts/gentype-macos.tar.gz -C src/lib/bs/native gentype.native

- store_artifacts:
path: artifacts/gentype-macos.tar.gz
Expand Down
4 changes: 2 additions & 2 deletions appveyor.yml
Expand Up @@ -15,8 +15,8 @@ build_script:
- npm run build
- npm test
# Validate binary
- lib\bs\native\gentype.native.exe --help
- tar czvf gentype-win.tar.gz -C lib\bs\native gentype.native.exe
- src\lib\bs\native\gentype.native.exe --help
- tar czvf gentype-win.tar.gz -C src\lib\bs\native gentype.native.exe

artifacts:
- path: gentype-win.tar.gz
Expand Down
4 changes: 2 additions & 2 deletions create-release.sh
Expand Up @@ -6,7 +6,7 @@ rm -f lib/gentype-*.tar.gz
# MacOS
npm install
npm run clean && npm run build && npm run test
tar czvf lib/gentype-macos.tar.gz -C lib/bs/native gentype.native
tar czvf lib/gentype-macos.tar.gz -C src/lib/bs/native gentype.native


# Linux
Expand All @@ -16,4 +16,4 @@ docker build -t gentype .
# Mounts only the lib and src volume and runs `npm run build`
docker run -it -v $PWD/lib:/genType/lib -v $PWD/src:/genType/src gentype bash -c "npm run clean && npm run build"

tar czvf lib/gentype-linux.tar.gz -C lib/bs/native gentype.native
tar czvf lib/gentype-linux.tar.gz -C src/lib/bs/native gentype.native
2 changes: 1 addition & 1 deletion examples/clean_bsb.js
Expand Up @@ -11,7 +11,7 @@ const spawn = child_process.spawn;
const isWindows = /^win/i.test(process.platform);

function genTypeNativePath() {
const base = path.join(__dirname, "..", "lib", "bs", "native");
const base = path.join(__dirname, "..", "src", "lib", "bs", "native");
if (isWindows) {
return path.join(base, "gentype.native.exe");
} else {
Expand Down
2 changes: 1 addition & 1 deletion examples/run_bsb.js
Expand Up @@ -11,7 +11,7 @@ const spawn = child_process.spawn;
const isWindows = /^win/i.test(process.platform);

function genTypeNativePath() {
const base = path.join(__dirname, "..", "lib", "bs", "native");
const base = path.join(__dirname, "..", "src", "lib", "bs", "native");
if (isWindows) {
return path.join(base, "gentype.native.exe");
} else {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -5,9 +5,9 @@
"description": "Use Reason values from Javascript: vanilla, or TypeScript/FlowType-annotated",
"license": "MIT",
"scripts": {
"start": "bsb -make-world -backend native -w",
"build": "bsb -make-world -backend native",
"clean": "bsb -clean-world",
"start": "cd src && bsb -make-world -backend native -w",
"build": "cd src && bsb -make-world -backend native",
"clean": "cd src && bsb -clean-world",
"test": "node ./scripts/run_integration_tests.js",
"install:examples": "(cd examples/flow-react-example && npm install) & (cd examples/typescript-react-example && npm install) & (cd examples/untyped-react-example && npm install) & (cd examples/commonjs-react-example && npm install)",
"build:examples": "(cd examples/flow-react-example && npm run clean && npm run build) & (cd examples/typescript-react-example && npm run clean && npm run build) & (cd examples/untyped-react-example && npm run clean && npm run build) & (cd examples/commonjs-react-example && npm run clean && npm run build)",
Expand Down
2 changes: 1 addition & 1 deletion scripts/run_integration_tests.js
Expand Up @@ -22,7 +22,7 @@ const exampleDirPaths = [
const isWindows = /^win/i.test(process.platform);

function getGenTypeFilePath() {
const base = path.join(__dirname, "..", "lib", "bs", "native");
const base = path.join(__dirname, "..", "src", "lib", "bs", "native");
if (isWindows) {
return path.join(base, "gentype.native.exe");
} else {
Expand Down
2 changes: 1 addition & 1 deletion bsconfig.json → src/bsconfig.json
Expand Up @@ -2,7 +2,7 @@
"name": "refactor",
"sources": [
{
"dir": "src",
"dir": ".",
"subdirs": true
}
],
Expand Down

0 comments on commit 109faef

Please sign in to comment.