Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to use "echo" without "shx" on Windows
- Loading branch information
1 parent
2ae5484
commit a577863
Showing
7 changed files
with
7 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module.exports = { | ||
description: | ||
'does not replace input with stdin but allows referencing it when using a config file', | ||
command: `shx echo "import {PRINT as p} from './a'; import C from './b'; 0 && fail() || p(C); export {C as value, p as print}" | rollup -c` | ||
command: `echo "import {PRINT as p} from './a'; import C from './b'; 0 && fail() || p(C); export {C as value, p as print}" | rollup -c` | ||
}; |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
description: 'allows forcing inputs to be replaced with stdin in config files', | ||
command: `shx echo "console.log('STDIN');" | rollup -c --stdin` | ||
command: `echo "console.log('STDIN');" | rollup -c --stdin` | ||
}; |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
description: 'allows forcing stdin input on TTY interfaces via option', | ||
command: `shx echo "console.log('PASS');" | ./wrapper.js -f es --stdin` | ||
command: `echo "console.log('PASS');" | ./wrapper.js -f es --stdin` | ||
}; |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
description: 'uses stdin input when piping into Rollup without an input', | ||
command: `shx mkdir -p _actual && shx echo "0 && fail() || console.log('PASS');" | rollup > _actual/out.js` | ||
command: `shx mkdir -p _actual && echo "0 && fail() || console.log('PASS');" | rollup > _actual/out.js` | ||
}; |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
description: 'allows using "-" as a regular file name via flag', | ||
command: `shx echo "console.log('IGNORED');" | rollup -c --no-stdin` | ||
command: `echo "console.log('IGNORED');" | rollup -c --no-stdin` | ||
}; |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
description: 'stdin input with dash on CLI', | ||
command: `shx mkdir -p _actual && shx echo "0 && fail() || console.log('PASS');" | rollup - > _actual/out.js` | ||
command: `shx mkdir -p _actual && echo "0 && fail() || console.log('PASS');" | rollup - > _actual/out.js` | ||
}; |