mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Use subgrunt to install client dependencies
closes https://github.com/TryGhost/Ghost/pull/7005, requires https://github.com/TryGhost/Ghost-Admin/pull/79 - defers to client's Gruntfile to install client dependencies, avoids requirement for a global bower install
This commit is contained in:
parent
3e92d63c27
commit
706d47fb5b
1 changed files with 5 additions and 4 deletions
|
@ -232,9 +232,6 @@ var _ = require('lodash'),
|
|||
ember: {
|
||||
command: function (mode) {
|
||||
switch (mode) {
|
||||
case 'init':
|
||||
return 'echo Installing client dependencies... && npm install && bower install';
|
||||
|
||||
case 'prod':
|
||||
return emberPath + ' build --environment=production --silent';
|
||||
|
||||
|
@ -347,6 +344,10 @@ var _ = require('lodash'),
|
|||
// ### grunt-subgrunt
|
||||
// Run grunt tasks in submodule Gruntfiles
|
||||
subgrunt: {
|
||||
init: {
|
||||
'core/client': 'init'
|
||||
},
|
||||
|
||||
lint: {
|
||||
'core/client': 'lint'
|
||||
}
|
||||
|
@ -769,7 +770,7 @@ var _ = require('lodash'),
|
|||
// `bower` does have some quirks, such as not running as root. If you have problems please try running
|
||||
// `grunt init --verbose` to see if there are any errors.
|
||||
grunt.registerTask('init', 'Prepare the project for development',
|
||||
['update_submodules', 'shell:ember:init', 'assets', 'default']);
|
||||
['update_submodules', 'subgrunt:init', 'assets', 'default']);
|
||||
|
||||
// ### Basic Asset Building
|
||||
// Builds and moves necessary client assets. Prod additionally builds the ember app.
|
||||
|
|
Loading…
Add table
Reference in a new issue