[*] Change the symlink location for the isomorphic-core specs

Summary:
Put them in the client-app/spec folder instead of
client-app/internal_packages

Test Plan: Ran the tests

Reviewers: juan, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D4080
This commit is contained in:
Halla Moore 2017-03-02 10:38:59 -08:00
parent be805f7b5a
commit 4c6848d5df
2 changed files with 5 additions and 7 deletions

4
.gitignore vendored
View file

@ -15,7 +15,6 @@
**/internal_packages/activity-list
**/internal_packages/composer-mail-merge
**/internal_packages/composer-scheduler
**/internal_packages/isomorphic-core
**/internal_packages/link-tracking
**/internal_packages/open-tracking
**/internal_packages/send-later
@ -54,6 +53,9 @@ spec-saved-state.json
**/jasmine/config.json
!packages/isomorphic-core/spec/jasmine/config.json
# Symlinked isomorphic-core Specs
packages/client-app/spec/isomorphic-core
# Elastic Beanstalk Files
.elasticbeanstalk/*
!.elasticbeanstalk/*.cfg.yml

View file

@ -120,13 +120,9 @@ function linkJasmineConfigs() {
}
function linkIsomorphicCoreSpecs() {
console.log("\n---> Linking isomorphic-core specs to client-app")
const dir = path.resolve(path.join('packages', 'client-app', 'internal_packages', 'isomorphic-core'))
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir)
}
console.log("\n---> Linking isomorphic-core specs to client-app specs")
const from = path.resolve(path.join('packages', 'isomorphic-core', 'spec'))
const to = path.resolve(path.join(dir, 'spec'))
const to = path.resolve(path.join('packages', 'client-app', 'spec', 'isomorphic-core'))
unlinkIfExistsSync(to)
fs.symlinkSync(from, to, 'dir')
}