Skip to content

Commit

Permalink
cleanup code for new release
Browse files Browse the repository at this point in the history
  • Loading branch information
izelnakri committed Apr 22, 2021
1 parent e13751d commit d4d53bc
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
tmp
vendor
2 changes: 0 additions & 2 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


- autorefresh: true
- QX keybind to run all tests
- regex needs to be there
Expand Down
3 changes: 2 additions & 1 deletion lib/commands/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,6 @@ export default async function(config) {
}

function logWatcherAndKeyboardShortcutInfo() {
console.log('# Watching files.. Press "qa" to run all the tests, "ql" to run last failing test'); // NOTE: maybe add also qx to exit
console.log('# Watching files...'); // NOTE: maybe add also qx to exit
// console.log('# Watching files.. Press "qa" to run all the tests, "ql" to run last failing test'); // NOTE: maybe add also qx to exit
}
2 changes: 0 additions & 2 deletions lib/setup/file-watcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ export default async function fileWatcher(fileOrFolderInputs, closure, closureOn
}

function watch(watchPath, buildFunction, callback) {
console.log(watchPath);
return chokidar.watch(watchPath, { ignoreInitial: true }).on('all', (event, path) => {
if (!global.chokidarBuild) {
global.chokidarBuild = true;

console.log('');
console.log('#', getEventColor(event), path.split(config.projectRoot)[1]);
console.log('');

Expand Down
2 changes: 1 addition & 1 deletion lib/utils/parse-fs-inputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default async function(fsInputs=[], initialFsTree={}, callback=async () =
try {
const entry = await fs.stat(fsReference);

if (entry.isFile()) { // handle what to do when its .ts
if (entry.isFile()) {
if (!fsTree[fsReference]) {
let treeEntry = {
targetLine: null,
Expand Down

0 comments on commit d4d53bc

Please sign in to comment.