Skip to content

Commit

Permalink
Rename bucklescript directories to js
Browse files Browse the repository at this point in the history
  • Loading branch information
aantron committed Nov 27, 2021
1 parent 685553f commit 29b406e
Show file tree
Hide file tree
Showing 22 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v2
- run: npm install esy
- run: echo PATH=$(pwd)/node_modules/.bin:$PATH >> $GITHUB_ENV
- run: make -C test/bucklescript full-test
- run: make -C test/js full-test
- if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/master' }}
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ a.out
# opam 2.
_opam/

# BuckleScript, NPM, esy.
# ReScript, NPM, esy, Melange.
node_modules/
package-lock.json
lib/
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ SELF_COVERAGE := _self
clean :
dune clean
make clean-usage
make -C test/bucklescript clean
make -C test/js clean
rm -rf $(SELF_COVERAGE)

INSTALLED_ENVIRONMENT := \
Expand Down Expand Up @@ -103,8 +103,8 @@ self-coverage-diff :

EXPECTED_FILES := \
--expect bisect_ppx/src/ \
--do-not-expect bisect_ppx/src/ppx/bucklescript/ \
--do-not-expect bisect_ppx/src/runtime/bucklescript/
--do-not-expect bisect_ppx/src/ppx/js/ \
--do-not-expect bisect_ppx/src/runtime/js/

.PHONY : self-coverage-test
self-coverage-test :
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ and install it:
```json
"jest": {
"setupFilesAfterEnv": [
"bisect_ppx/lib/js/src/runtime/bucklescript/jest.js"
"bisect_ppx/lib/js/src/runtime/js/jest.js"
]
}
```
Expand All @@ -194,7 +194,7 @@ and install it:
`bsconfig.json`, replace the path by
```json
"bisect_ppx/src/runtime/bucklescript/jest.js"
"bisect_ppx/src/runtime/js/jest.js"
```
You can exclude your test cases from the coverage report by adding this to
Expand Down Expand Up @@ -510,6 +510,6 @@ targets:
- `make test` for unit tests.
- `make usage` for build system integration tests, except ReScript.
- `make -C test/bucklescript full-test` for ReScript. This requires npm and esy.
- `make -C test/js full-test` for ReScript. This requires npm and esy.
[issues]: https://github.com/aantron/bisect_ppx/issues
2 changes: 1 addition & 1 deletion bsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"namespace": "Bisect",
"sources": [
"src/common",
"src/runtime/bucklescript"
"src/runtime/js"
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"url": "https://github.com/aantron/bisect_ppx/issues"
},
"keywords": [
"BuckleScript",
"ReScript",
"reason",
"coverage"
],
Expand Down
2 changes: 1 addition & 1 deletion src/common/bisect_common.mli
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- the instrumenter (PPX)
- the native runtime ([Bisect.Runtime] in [src/runtime/native/])
- the ReScript runtime ([Bisect.Runtime] in [src/runtime/bucklescript/])
- the ReScript runtime ([Bisect.Runtime] in [src/runtime/js/])
- the reporter ([bisect-ppx-report]) *)


Expand Down
4 changes: 2 additions & 2 deletions src/npm-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ esy_build() {
set -e
set -x
esy install -P binaries.esy.json
esy -P binaries.esy.json dune build -p bisect_ppx src/ppx/bucklescript/ppx.exe
cp _build/default/src/ppx/bucklescript/ppx.exe ./ppx
esy -P binaries.esy.json dune build -p bisect_ppx src/ppx/js/ppx.exe
cp _build/default/src/ppx/js/ppx.exe ./ppx
esy -P binaries.esy.json dune build -p bisect_ppx src/report/main.exe
cp _build/default/src/report/main.exe ./bisect-ppx-report
exit 0
Expand Down
2 changes: 1 addition & 1 deletion src/ppx/exclusions.ml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ let add_from_channel filename ch =
raise e

let add_from_file filename =
(* BuckleScript runs the PPX from PROJECT_ROOT/lib/bs. *)
(* ReScript runs the PPX from PROJECT_ROOT/lib/bs. *)
let cwd = Sys.getcwd () in
let parent = Filename.basename cwd in
let grandparent = Filename.(basename (dirname cwd)) in
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions test/ci/binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ try_to_commit() {
git reset --hard $GITHUB_SHA
fi
mkdir -p bin/$OS
cp test/bucklescript/node_modules/bisect_ppx/ppx bin/$OS/
cp test/bucklescript/node_modules/.bin/bisect-ppx-report bin/$OS/
cp test/js/node_modules/bisect_ppx/ppx bin/$OS/
cp test/js/node_modules/.bin/bisect-ppx-report bin/$OS/
strip bin/$OS/ppx
strip bin/$OS/bisect-ppx-report
git add bin/
Expand Down
2 changes: 1 addition & 1 deletion test/dune
Original file line number Diff line number Diff line change
@@ -1 +1 @@
(dirs (:standard \ bucklescript))
(dirs (:standard \ js))
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 29b406e

Please sign in to comment.