mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-20 23:36:21 +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
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -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
|
||||
|
|
|
@ -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')
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue