0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Merge pull request #2218 from hswolff/npm-package-updates

Fix package.json scripts to be more in line with
This commit is contained in:
Hannah Wolfe 2014-02-19 18:48:40 +00:00
commit fe34ced41d
4 changed files with 11 additions and 10 deletions

View file

@ -9,9 +9,7 @@ matrix:
allow_failures:
- env: DB=pg
before_install:
- rvm use 1.9.3
- gem install bundler
- npm install -g grunt-cli
- git clone git://github.com/n1k0/casperjs.git ~/casperjs
- cd ~/casperjs
- git checkout tags/1.1-beta3
@ -22,3 +20,4 @@ before_install:
before_script:
- phantomjs --version
- casperjs --version
- grunt init

View file

@ -197,8 +197,7 @@ developing Ghost.
* If the install fails with errors to do with "node-gyp rebuild" or "SQLite3", follow the SQLite3 install
instructions below this list
* Usually if you're within vagrant, and have installed the guest plugins and updated that, this will not happen
1. Run `grunt init` from the root - this generates the Bourbon directory, compiles SASS and compiles Handlebars
templates
1. Run `grunt init` from the root - this runs bundler, generates the Bourbon directory, compiles SASS and compiles Handlebars templates
1. Run `npm start` from the root to start the server.
If something goes wrong, please see the

View file

@ -49,7 +49,7 @@ var path = require('path'),
configureGrunt = function (grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
require('matchdep').filterDev(['grunt-*', '!grunt-cli']).forEach(grunt.loadNpmTasks);
var cfg = {
// Common paths to be used by tasks
@ -277,6 +277,10 @@ var path = require('path'),
// ### config for grunt-shell
// command line tools
shell: {
// run bundle
bundle: {
command: 'bundle install'
},
// install bourbon
bourbon: {
command: 'bourbon install --path <%= paths.adminAssets %>/sass/modules/'
@ -847,7 +851,7 @@ var path = require('path'),
// ### Tools for building assets
grunt.registerTask('init', 'Prepare the project for development', ['shell:bourbon', 'default']);
grunt.registerTask('init', 'Prepare the project for development', ['shell:bundle', 'shell:bourbon', 'default']);
// Before running in production mode
grunt.registerTask('prod', 'Build CSS, JS & templates for production', ['sass:compress', 'handlebars', 'concat', 'uglify']);

View file

@ -25,8 +25,7 @@
"main": "./core/index",
"scripts": {
"start": "node index",
"test": "./node_modules/.bin/grunt validate --verbose",
"install": "bundle install && grunt init"
"test": "./node_modules/.bin/grunt validate --verbose"
},
"engines": {
"node": "~0.10.0"