forked from FrontendMasters/testing-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kent C. Dodds
committed
Feb 2, 2018
1 parent
cd45c21
commit cf0d726
Showing
5 changed files
with
38 additions
and
11 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 |
---|---|---|
|
@@ -13,3 +13,5 @@ cypress/screenshots | |
dist | ||
.opt-in | ||
.eslintcache | ||
/client/other/shared | ||
/server/other/shared |
This file was deleted.
Oops, something went wrong.
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,17 +1,43 @@ | ||
/* eslint-disable */ | ||
|
||
var path = require('path') | ||
var installDeps = require('./workshop-setup').installDeps | ||
const path = require('path') | ||
const fs = require('fs') | ||
const installDeps = require('./workshop-setup').installDeps | ||
|
||
ensureExists(path.resolve(__dirname, '../client/other')) | ||
ensureExists(path.resolve(__dirname, '../server/other')) | ||
|
||
symlinkDir( | ||
path.resolve(__dirname, '../shared/'), | ||
path.resolve(__dirname, '../client/other/shared') | ||
) | ||
symlinkDir( | ||
path.resolve(__dirname, '../shared/'), | ||
path.resolve(__dirname, '../server/other/shared') | ||
) | ||
|
||
const main = path.resolve(__dirname, '..') | ||
const shared = path.resolve(__dirname, '../shared') | ||
const server = path.resolve(__dirname, '../server') | ||
const client = path.resolve(__dirname, '../client') | ||
|
||
var main = path.resolve(__dirname, '..') | ||
var shared = path.resolve(__dirname, '../shared') | ||
var server = path.resolve(__dirname, '../server') | ||
var client = path.resolve(__dirname, '../client') | ||
installDeps([main, shared, server, client]).then( | ||
function() { | ||
() => { | ||
console.log('👍 all dependencies installed') | ||
}, | ||
function() { | ||
() => { | ||
// ignore, workshop-setup will log for us... | ||
} | ||
}, | ||
) | ||
|
||
function symlinkDir(src, dest) { | ||
if (!fs.existsSync(dest)) { | ||
fs.symlinkSync(src, dest, 'dir') | ||
} | ||
} | ||
|
||
function ensureExists(dir) { | ||
if (!fs.existsSync(dir)) { | ||
fs.mkdirSync(dir) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.