0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fixed yarn dev

refs https://github.com/TryGhost/Toolbox/issues/365

- this fixes the path of the admin assets to the ghost package dir and
  points the subgrunt path to the admin dir
This commit is contained in:
Daniel Lockyer 2022-08-03 15:59:51 +02:00
parent e1bee3c647
commit b1d6b434b5
No known key found for this signature in database
GPG key ID: D21186F0B47295AD
2 changed files with 5 additions and 5 deletions

View file

@ -22,7 +22,7 @@ module.exports = {
const fs = this.project.require('fs-extra');
const walkSync = this.project.require('walk-sync');
const assetsOut = `../built/admin/${this.env}`;
const assetsOut = `../core/core/built/admin/${this.env}`;
fs.ensureDirSync(assetsOut);
// the dist folder contains more than just index.html and /assets, especially

View file

@ -175,21 +175,21 @@ module.exports = function (grunt) {
npmInstall: true
},
projects: {
'core/admin': 'init'
'../admin': 'init'
}
},
dev: {
'core/admin': 'shell:ember:dev'
'../admin': 'shell:ember:dev'
},
prod: {
'core/admin': 'shell:ember:prod'
'../admin': 'shell:ember:prod'
},
watch: {
projects: {
'core/admin': ['shell:ember:watch', '--live-reload-base-url="' + config.getSubdir() + '/ghost/"']
'../admin': ['shell:ember:watch', '--live-reload-base-url="' + config.getSubdir() + '/ghost/"']
}
}
},