mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
Cleaned up Grunt copy plugin
refs 0a34be4012
- the admin html is no longer stored in core/server, and we don't need to
copy the production file to default.html
- this commit cleans up the grunt command to do this, and removes the
plugin whose only use was doing this
- this takes us another step closer to removing grunt
This commit is contained in:
parent
b9a0cc04b9
commit
82e7a0f103
3 changed files with 1 additions and 26 deletions
|
@ -28,7 +28,7 @@ module.exports = function (grunt) {
|
||||||
['subgrunt:init', 'clean:tmp', 'ember']);
|
['subgrunt:init', 'clean:tmp', 'ember']);
|
||||||
|
|
||||||
// Runs the asset generation tasks for production and duplicates default-prod.html to default.html
|
// Runs the asset generation tasks for production and duplicates default-prod.html to default.html
|
||||||
grunt.registerTask('release', 'Release task - creates a final built zip', ['clean:built', 'prod', 'copy:admin_html']);
|
grunt.registerTask('release', 'Release task - creates a final built zip', ['clean:built', 'prod']);
|
||||||
|
|
||||||
// --- Sub Commands
|
// --- Sub Commands
|
||||||
// Used to make other commands work
|
// Used to make other commands work
|
||||||
|
@ -208,16 +208,6 @@ module.exports = function (grunt) {
|
||||||
src: ['*'],
|
src: ['*'],
|
||||||
dest: '.git/hooks'
|
dest: '.git/hooks'
|
||||||
}
|
}
|
||||||
},
|
|
||||||
|
|
||||||
copy: {
|
|
||||||
admin_html: {
|
|
||||||
files: [{
|
|
||||||
cwd: '.',
|
|
||||||
src: 'core/server/web/admin/views/default-prod.html',
|
|
||||||
dest: 'core/server/web/admin/views/default.html'
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -226,7 +216,6 @@ module.exports = function (grunt) {
|
||||||
// Load all grunt tasks
|
// Load all grunt tasks
|
||||||
grunt.loadNpmTasks('grunt-bg-shell');
|
grunt.loadNpmTasks('grunt-bg-shell');
|
||||||
grunt.loadNpmTasks('grunt-contrib-clean');
|
grunt.loadNpmTasks('grunt-contrib-clean');
|
||||||
grunt.loadNpmTasks('grunt-contrib-copy');
|
|
||||||
grunt.loadNpmTasks('grunt-contrib-symlink');
|
grunt.loadNpmTasks('grunt-contrib-symlink');
|
||||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||||
grunt.loadNpmTasks('grunt-express-server');
|
grunt.loadNpmTasks('grunt-express-server');
|
||||||
|
|
|
@ -202,7 +202,6 @@
|
||||||
"grunt": "1.5.3",
|
"grunt": "1.5.3",
|
||||||
"grunt-bg-shell": "2.3.3",
|
"grunt-bg-shell": "2.3.3",
|
||||||
"grunt-contrib-clean": "2.0.1",
|
"grunt-contrib-clean": "2.0.1",
|
||||||
"grunt-contrib-copy": "1.0.0",
|
|
||||||
"grunt-contrib-symlink": "1.0.0",
|
"grunt-contrib-symlink": "1.0.0",
|
||||||
"grunt-contrib-watch": "1.1.0",
|
"grunt-contrib-watch": "1.1.0",
|
||||||
"grunt-express-server": "0.5.4",
|
"grunt-express-server": "0.5.4",
|
||||||
|
|
13
yarn.lock
13
yarn.lock
|
@ -5270,11 +5270,6 @@ file-extension@~4.0.5:
|
||||||
resolved "https://registry.yarnpkg.com/file-extension/-/file-extension-4.0.5.tgz#ae6cef34c28e7313a92baa4aa955755cacdf0ce3"
|
resolved "https://registry.yarnpkg.com/file-extension/-/file-extension-4.0.5.tgz#ae6cef34c28e7313a92baa4aa955755cacdf0ce3"
|
||||||
integrity sha512-l0rOL3aKkoi6ea7MNZe6OHgqYYpn48Qfflr8Pe9G9JPPTx5A+sfboK91ZufzIs59/lPqh351l0eb6iKU9J5oGg==
|
integrity sha512-l0rOL3aKkoi6ea7MNZe6OHgqYYpn48Qfflr8Pe9G9JPPTx5A+sfboK91ZufzIs59/lPqh351l0eb6iKU9J5oGg==
|
||||||
|
|
||||||
file-sync-cmp@^0.1.0:
|
|
||||||
version "0.1.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/file-sync-cmp/-/file-sync-cmp-0.1.1.tgz#a5e7a8ffbfa493b43b923bbd4ca89a53b63b612b"
|
|
||||||
integrity sha512-0k45oWBokCqh2MOexeYKpyqmGKG+8mQ2Wd8iawx+uWd/weWJQAZ6SoPybagdCI4xFisag8iAR77WPm4h3pTfxA==
|
|
||||||
|
|
||||||
file-uri-to-path@1:
|
file-uri-to-path@1:
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd"
|
resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd"
|
||||||
|
@ -5922,14 +5917,6 @@ grunt-contrib-clean@2.0.1:
|
||||||
async "^3.2.3"
|
async "^3.2.3"
|
||||||
rimraf "^2.6.2"
|
rimraf "^2.6.2"
|
||||||
|
|
||||||
grunt-contrib-copy@1.0.0:
|
|
||||||
version "1.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/grunt-contrib-copy/-/grunt-contrib-copy-1.0.0.tgz#7060c6581e904b8ab0d00f076e0a8f6e3e7c3573"
|
|
||||||
integrity sha512-gFRFUB0ZbLcjKb67Magz1yOHGBkyU6uL29hiEW1tdQ9gQt72NuMKIy/kS6dsCbV0cZ0maNCb0s6y+uT1FKU7jA==
|
|
||||||
dependencies:
|
|
||||||
chalk "^1.1.1"
|
|
||||||
file-sync-cmp "^0.1.0"
|
|
||||||
|
|
||||||
grunt-contrib-symlink@1.0.0:
|
grunt-contrib-symlink@1.0.0:
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/grunt-contrib-symlink/-/grunt-contrib-symlink-1.0.0.tgz#c83616c035711a6c0062a2810cf1c77ffc6bed2b"
|
resolved "https://registry.yarnpkg.com/grunt-contrib-symlink/-/grunt-contrib-symlink-1.0.0.tgz#c83616c035711a6c0062a2810cf1c77ffc6bed2b"
|
||||||
|
|
Loading…
Add table
Reference in a new issue