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:
commit
fe34ced41d
4 changed files with 11 additions and 10 deletions
|
@ -9,9 +9,7 @@ matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- env: DB=pg
|
- env: DB=pg
|
||||||
before_install:
|
before_install:
|
||||||
- rvm use 1.9.3
|
|
||||||
- gem install bundler
|
- gem install bundler
|
||||||
- npm install -g grunt-cli
|
|
||||||
- git clone git://github.com/n1k0/casperjs.git ~/casperjs
|
- git clone git://github.com/n1k0/casperjs.git ~/casperjs
|
||||||
- cd ~/casperjs
|
- cd ~/casperjs
|
||||||
- git checkout tags/1.1-beta3
|
- git checkout tags/1.1-beta3
|
||||||
|
@ -22,3 +20,4 @@ before_install:
|
||||||
before_script:
|
before_script:
|
||||||
- phantomjs --version
|
- phantomjs --version
|
||||||
- casperjs --version
|
- casperjs --version
|
||||||
|
- grunt init
|
|
@ -197,8 +197,7 @@ developing Ghost.
|
||||||
* If the install fails with errors to do with "node-gyp rebuild" or "SQLite3", follow the SQLite3 install
|
* If the install fails with errors to do with "node-gyp rebuild" or "SQLite3", follow the SQLite3 install
|
||||||
instructions below this list
|
instructions below this list
|
||||||
* Usually if you're within vagrant, and have installed the guest plugins and updated that, this will not happen
|
* 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
|
1. Run `grunt init` from the root - this runs bundler, generates the Bourbon directory, compiles SASS and compiles Handlebars templates
|
||||||
templates
|
|
||||||
1. Run `npm start` from the root to start the server.
|
1. Run `npm start` from the root to start the server.
|
||||||
|
|
||||||
If something goes wrong, please see the
|
If something goes wrong, please see the
|
||||||
|
|
|
@ -49,7 +49,7 @@ var path = require('path'),
|
||||||
configureGrunt = function (grunt) {
|
configureGrunt = function (grunt) {
|
||||||
|
|
||||||
// load all grunt tasks
|
// load all grunt tasks
|
||||||
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
|
require('matchdep').filterDev(['grunt-*', '!grunt-cli']).forEach(grunt.loadNpmTasks);
|
||||||
|
|
||||||
var cfg = {
|
var cfg = {
|
||||||
// Common paths to be used by tasks
|
// Common paths to be used by tasks
|
||||||
|
@ -277,6 +277,10 @@ var path = require('path'),
|
||||||
// ### config for grunt-shell
|
// ### config for grunt-shell
|
||||||
// command line tools
|
// command line tools
|
||||||
shell: {
|
shell: {
|
||||||
|
// run bundle
|
||||||
|
bundle: {
|
||||||
|
command: 'bundle install'
|
||||||
|
},
|
||||||
// install bourbon
|
// install bourbon
|
||||||
bourbon: {
|
bourbon: {
|
||||||
command: 'bourbon install --path <%= paths.adminAssets %>/sass/modules/'
|
command: 'bourbon install --path <%= paths.adminAssets %>/sass/modules/'
|
||||||
|
@ -847,7 +851,7 @@ var path = require('path'),
|
||||||
|
|
||||||
// ### Tools for building assets
|
// ### 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
|
// Before running in production mode
|
||||||
grunt.registerTask('prod', 'Build CSS, JS & templates for production', ['sass:compress', 'handlebars', 'concat', 'uglify']);
|
grunt.registerTask('prod', 'Build CSS, JS & templates for production', ['sass:compress', 'handlebars', 'concat', 'uglify']);
|
||||||
|
|
|
@ -25,8 +25,7 @@
|
||||||
"main": "./core/index",
|
"main": "./core/index",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node index",
|
"start": "node index",
|
||||||
"test": "./node_modules/.bin/grunt validate --verbose",
|
"test": "./node_modules/.bin/grunt validate --verbose"
|
||||||
"install": "bundle install && grunt init"
|
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "~0.10.0"
|
"node": "~0.10.0"
|
||||||
|
|
Loading…
Add table
Reference in a new issue