mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-11 23:24:32 +08:00
[*] 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:
parent
be805f7b5a
commit
4c6848d5df
2 changed files with 5 additions and 7 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -15,7 +15,6 @@
|
||||||
**/internal_packages/activity-list
|
**/internal_packages/activity-list
|
||||||
**/internal_packages/composer-mail-merge
|
**/internal_packages/composer-mail-merge
|
||||||
**/internal_packages/composer-scheduler
|
**/internal_packages/composer-scheduler
|
||||||
**/internal_packages/isomorphic-core
|
|
||||||
**/internal_packages/link-tracking
|
**/internal_packages/link-tracking
|
||||||
**/internal_packages/open-tracking
|
**/internal_packages/open-tracking
|
||||||
**/internal_packages/send-later
|
**/internal_packages/send-later
|
||||||
|
@ -54,6 +53,9 @@ spec-saved-state.json
|
||||||
**/jasmine/config.json
|
**/jasmine/config.json
|
||||||
!packages/isomorphic-core/spec/jasmine/config.json
|
!packages/isomorphic-core/spec/jasmine/config.json
|
||||||
|
|
||||||
|
# Symlinked isomorphic-core Specs
|
||||||
|
packages/client-app/spec/isomorphic-core
|
||||||
|
|
||||||
# Elastic Beanstalk Files
|
# Elastic Beanstalk Files
|
||||||
.elasticbeanstalk/*
|
.elasticbeanstalk/*
|
||||||
!.elasticbeanstalk/*.cfg.yml
|
!.elasticbeanstalk/*.cfg.yml
|
||||||
|
|
|
@ -120,13 +120,9 @@ function linkJasmineConfigs() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function linkIsomorphicCoreSpecs() {
|
function linkIsomorphicCoreSpecs() {
|
||||||
console.log("\n---> Linking isomorphic-core specs to client-app")
|
console.log("\n---> Linking isomorphic-core specs to client-app specs")
|
||||||
const dir = path.resolve(path.join('packages', 'client-app', 'internal_packages', 'isomorphic-core'))
|
|
||||||
if (!fs.existsSync(dir)) {
|
|
||||||
fs.mkdirSync(dir)
|
|
||||||
}
|
|
||||||
const from = path.resolve(path.join('packages', 'isomorphic-core', 'spec'))
|
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)
|
unlinkIfExistsSync(to)
|
||||||
fs.symlinkSync(from, to, 'dir')
|
fs.symlinkSync(from, to, 'dir')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue