-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accept underscores in module path (#58)
* Accept underscores in module path (with a test)
- Loading branch information
1 parent
fc67f23
commit 2416a5e
Showing
10 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
e2e-tests/pesy-configure-test-projects/pesy-npm-with-underscore/.gitignore
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,11 @@ | ||
npm-debug.log | ||
.merlin | ||
yarn-error.log | ||
node_modules | ||
node_modules/ | ||
_build | ||
_release | ||
_esy/ | ||
y.install | ||
.DS_Store | ||
*.install |
1 change: 1 addition & 0 deletions
1
e2e-tests/pesy-configure-test-projects/pesy-npm-with-underscore/dune
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 @@ | ||
(dirs (:standard \ node_modules \ _esy)) |
2 changes: 2 additions & 0 deletions
2
e2e-tests/pesy-configure-test-projects/pesy-npm-with-underscore/dune-project
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,2 @@ | ||
(lang dune 1.6) | ||
(name pesy-c-stubs) |
2 changes: 2 additions & 0 deletions
2
e2e-tests/pesy-configure-test-projects/pesy-npm-with-underscore/executable/PesyNpmApp.re
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,2 @@ | ||
Library.Util.foo(); | ||
Bar.bar(); |
1 change: 1 addition & 0 deletions
1
e2e-tests/pesy-configure-test-projects/pesy-npm-with-underscore/lib_foo/Util.re
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 @@ | ||
let foo = () => print_endline("Hello"); |
1 change: 1 addition & 0 deletions
1
e2e-tests/pesy-configure-test-projects/pesy-npm-with-underscore/lib_foo/foo/bar/Index.re
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 @@ | ||
let bar = () => print_endline("in bar"); |
49 changes: 49 additions & 0 deletions
49
e2e-tests/pesy-configure-test-projects/pesy-npm-with-underscore/package.json
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,49 @@ | ||
{ | ||
"name": "pesy-npm", | ||
"version": "0.0.0", | ||
"description": "My Project", | ||
"esy": { | ||
"build": "dune build -p #{self.name}", | ||
"release": { | ||
"releasedBinaries": [ | ||
"PesyNpmApp.exe" | ||
] | ||
} | ||
}, | ||
"buildDirs": { | ||
"test": { | ||
"imports": [ | ||
"Library = require('pesy-npm/lib_foo')" | ||
], | ||
"bin": "TestPesyNpm.re" | ||
}, | ||
"lib_foo": {}, | ||
"lib_foo/foo/bar": {}, | ||
"executable": { | ||
"imports": [ | ||
"Bar = require('pesy-npm/lib_foo/foo/bar')", | ||
"Library = require('pesy-npm/lib_foo')" | ||
], | ||
"bin": { | ||
"pesy-npm-app.exe": "PesyNpmApp.re" | ||
} | ||
} | ||
}, | ||
"scripts": { | ||
"test": "esy b dune runtest" | ||
}, | ||
"dependencies": { | ||
"ocaml": "4.7.x", | ||
"@opam/dune": ">=1.6.0", | ||
"@esy-ocaml/reason": "*", | ||
"refmterr": "*", | ||
"pesy": "*", | ||
"refmterr": "*" | ||
}, | ||
"devDependencies": { | ||
"@opam/merlin": "*" | ||
}, | ||
"resolutions": { | ||
"pesy": "<RESOLUTION_LINK>" | ||
} | ||
} |
Empty file.
2 changes: 2 additions & 0 deletions
2
e2e-tests/pesy-configure-test-projects/pesy-npm-with-underscore/test/TestPesyNpm.re
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,2 @@ | ||
Library.Util.foo(); | ||
print_endline("Add Your Test Cases Here"); |
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