mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
upgrade ember-cli to 1.13.0 and ember-cli-mocha to 0.9.3
no issue - upgrades ember-cli, ember-cli-mocha, ember-mocha dependencies - switches Brocfile.js to ember-cli-build.js - fixes controller tests with missing needs Pulled into a separate PR as it doesn't affect running code but does provide access to the very useful component integration tests.
This commit is contained in:
parent
07edc94c84
commit
2a9b24d3e1
8 changed files with 92 additions and 88 deletions
|
@ -1,75 +0,0 @@
|
|||
/* global require, module */
|
||||
|
||||
var EmberApp = require('ember-cli/lib/broccoli/ember-app'),
|
||||
environment = EmberApp.env(),
|
||||
isProduction = environment === 'production',
|
||||
mythCompress = isProduction || environment === 'test',
|
||||
disabled = {enabled: false},
|
||||
assetLocation,
|
||||
app;
|
||||
|
||||
assetLocation = function (fileName) {
|
||||
if (isProduction) {
|
||||
fileName = fileName.replace('.', '.min.');
|
||||
}
|
||||
return '/assets/' + fileName;
|
||||
};
|
||||
|
||||
app = new EmberApp({
|
||||
outputPaths: {
|
||||
app: {
|
||||
js: assetLocation('ghost.js')
|
||||
},
|
||||
vendor: {
|
||||
js: assetLocation('vendor.js'),
|
||||
css: assetLocation('vendor.css')
|
||||
}
|
||||
},
|
||||
mythOptions: {
|
||||
source: './app/styles/app.css',
|
||||
inputFile: 'app.css',
|
||||
browsers: 'last 2 versions',
|
||||
// @TODO: enable sourcemaps for development without including them in the release
|
||||
sourcemap: false,
|
||||
compress: mythCompress,
|
||||
outputFile: isProduction ? 'ghost.min.css' : 'ghost.css'
|
||||
},
|
||||
hinting: false,
|
||||
fingerprint: disabled,
|
||||
'ember-cli-selectize': {
|
||||
theme: false
|
||||
}
|
||||
});
|
||||
|
||||
// 'dem Scripts
|
||||
app.import('bower_components/validator-js/validator.js');
|
||||
app.import('bower_components/rangyinputs/rangyinputs-jquery-src.js');
|
||||
app.import('bower_components/showdown-ghost/src/showdown.js');
|
||||
app.import('bower_components/showdown-ghost/src/extensions/ghostgfm.js');
|
||||
app.import('bower_components/showdown-ghost/src/extensions/ghostimagepreview.js');
|
||||
app.import('bower_components/showdown-ghost/src/extensions/footnotes.js');
|
||||
app.import('bower_components/showdown-ghost/src/extensions/highlight.js');
|
||||
app.import('bower_components/moment/moment.js');
|
||||
app.import('bower_components/keymaster/keymaster.js');
|
||||
app.import('bower_components/devicejs/lib/device.js');
|
||||
app.import('bower_components/jquery-ui/jquery-ui.js');
|
||||
app.import('bower_components/jquery-file-upload/js/jquery.fileupload.js');
|
||||
app.import('bower_components/blueimp-load-image/js/load-image.all.min.js');
|
||||
app.import('bower_components/jquery-file-upload/js/jquery.fileupload-process.js');
|
||||
app.import('bower_components/jquery-file-upload/js/jquery.fileupload-image.js');
|
||||
app.import('bower_components/google-caja/html-css-sanitizer-bundle.js');
|
||||
app.import('bower_components/jqueryui-touch-punch/jquery.ui.touch-punch.js');
|
||||
app.import('bower_components/codemirror/lib/codemirror.js');
|
||||
app.import('bower_components/codemirror/mode/htmlmixed/htmlmixed.js');
|
||||
app.import('bower_components/codemirror/mode/xml/xml.js');
|
||||
app.import('bower_components/codemirror/mode/css/css.js');
|
||||
app.import('bower_components/codemirror/mode/javascript/javascript.js');
|
||||
app.import('bower_components/xregexp/xregexp-all.js');
|
||||
app.import('bower_components/password-generator/lib/password-generator.js');
|
||||
app.import('bower_components/blueimp-md5/js/md5.js');
|
||||
|
||||
// 'dem Styles
|
||||
app.import('bower_components/codemirror/lib/codemirror.css');
|
||||
app.import('bower_components/codemirror/theme/xq-light.css');
|
||||
|
||||
module.exports = app.toTree();
|
|
@ -8,9 +8,9 @@
|
|||
"ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3",
|
||||
"ember-cli-test-loader": "0.1.3",
|
||||
"ember-data": "1.0.0-beta.18",
|
||||
"ember-mocha": "0.7.0",
|
||||
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.4",
|
||||
"ember-resolver": "0.1.15",
|
||||
"ember-mocha": "0.8.2",
|
||||
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.5",
|
||||
"ember-resolver": "0.1.18",
|
||||
"ember-simple-auth": "0.8.0",
|
||||
"fastclick": "1.0.6",
|
||||
"google-caja": "5669.0.0",
|
||||
|
|
76
core/client/ember-cli-build.js
Normal file
76
core/client/ember-cli-build.js
Normal file
|
@ -0,0 +1,76 @@
|
|||
/* global require, module */
|
||||
|
||||
var EmberApp = require('ember-cli/lib/broccoli/ember-app'),
|
||||
environment = EmberApp.env(),
|
||||
isProduction = environment === 'production',
|
||||
mythCompress = isProduction || environment === 'test',
|
||||
disabled = {enabled: false},
|
||||
assetLocation;
|
||||
|
||||
assetLocation = function (fileName) {
|
||||
if (isProduction) {
|
||||
fileName = fileName.replace('.', '.min.');
|
||||
}
|
||||
return '/assets/' + fileName;
|
||||
};
|
||||
|
||||
module.exports = function (defaults) {
|
||||
var app = new EmberApp(defaults, {
|
||||
outputPaths: {
|
||||
app: {
|
||||
js: assetLocation('ghost.js')
|
||||
},
|
||||
vendor: {
|
||||
js: assetLocation('vendor.js'),
|
||||
css: assetLocation('vendor.css')
|
||||
}
|
||||
},
|
||||
mythOptions: {
|
||||
source: './app/styles/app.css',
|
||||
inputFile: 'app.css',
|
||||
browsers: 'last 2 versions',
|
||||
// @TODO: enable sourcemaps for development without including them in the release
|
||||
sourcemap: false,
|
||||
compress: mythCompress,
|
||||
outputFile: isProduction ? 'ghost.min.css' : 'ghost.css'
|
||||
},
|
||||
hinting: false,
|
||||
fingerprint: disabled,
|
||||
'ember-cli-selectize': {
|
||||
theme: false
|
||||
}
|
||||
});
|
||||
|
||||
// 'dem Scripts
|
||||
app.import('bower_components/validator-js/validator.js');
|
||||
app.import('bower_components/rangyinputs/rangyinputs-jquery-src.js');
|
||||
app.import('bower_components/showdown-ghost/src/showdown.js');
|
||||
app.import('bower_components/showdown-ghost/src/extensions/ghostgfm.js');
|
||||
app.import('bower_components/showdown-ghost/src/extensions/ghostimagepreview.js');
|
||||
app.import('bower_components/showdown-ghost/src/extensions/footnotes.js');
|
||||
app.import('bower_components/showdown-ghost/src/extensions/highlight.js');
|
||||
app.import('bower_components/moment/moment.js');
|
||||
app.import('bower_components/keymaster/keymaster.js');
|
||||
app.import('bower_components/devicejs/lib/device.js');
|
||||
app.import('bower_components/jquery-ui/jquery-ui.js');
|
||||
app.import('bower_components/jquery-file-upload/js/jquery.fileupload.js');
|
||||
app.import('bower_components/blueimp-load-image/js/load-image.all.min.js');
|
||||
app.import('bower_components/jquery-file-upload/js/jquery.fileupload-process.js');
|
||||
app.import('bower_components/jquery-file-upload/js/jquery.fileupload-image.js');
|
||||
app.import('bower_components/google-caja/html-css-sanitizer-bundle.js');
|
||||
app.import('bower_components/jqueryui-touch-punch/jquery.ui.touch-punch.js');
|
||||
app.import('bower_components/codemirror/lib/codemirror.js');
|
||||
app.import('bower_components/codemirror/mode/htmlmixed/htmlmixed.js');
|
||||
app.import('bower_components/codemirror/mode/xml/xml.js');
|
||||
app.import('bower_components/codemirror/mode/css/css.js');
|
||||
app.import('bower_components/codemirror/mode/javascript/javascript.js');
|
||||
app.import('bower_components/xregexp/xregexp-all.js');
|
||||
app.import('bower_components/password-generator/lib/password-generator.js');
|
||||
app.import('bower_components/blueimp-md5/js/md5.js');
|
||||
|
||||
// 'dem Styles
|
||||
app.import('bower_components/codemirror/lib/codemirror.css');
|
||||
app.import('bower_components/codemirror/theme/xq-light.css');
|
||||
|
||||
return app.toTree();
|
||||
};
|
|
@ -20,21 +20,23 @@
|
|||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"broccoli-asset-rev": "^2.0.2",
|
||||
"ember-cli": "0.2.7",
|
||||
"ember-cli-app-version": "0.3.3",
|
||||
"ember-cli": "1.13.0",
|
||||
"ember-cli-app-version": "0.4.0",
|
||||
"ember-cli-babel": "^5.0.0",
|
||||
"ember-cli-content-security-policy": "0.4.0",
|
||||
"ember-cli-dependency-checker": "^1.0.0",
|
||||
"ember-cli-fastclick": "1.0.3",
|
||||
"ember-cli-htmlbars": "0.7.6",
|
||||
"ember-cli-ic-ajax": "0.1.1",
|
||||
"ember-cli-htmlbars": "0.7.9",
|
||||
"ember-cli-htmlbars-inline-precompile": "^0.1.1",
|
||||
"ember-cli-ic-ajax": "0.2.1",
|
||||
"ember-cli-inject-live-reload": "^1.3.0",
|
||||
"ember-cli-mocha": "^0.7.0",
|
||||
"ember-cli-mocha": "0.9.3",
|
||||
"ember-cli-selectize": "0.4.0",
|
||||
"ember-cli-simple-auth": "0.8.0",
|
||||
"ember-cli-simple-auth-oauth2": "0.8.0",
|
||||
"ember-cli-uglify": "^1.0.1",
|
||||
"ember-data": "1.0.0-beta.18",
|
||||
"ember-disable-proxy-controllers": "^1.0.0",
|
||||
"ember-export-application-global": "^1.0.2",
|
||||
"ember-myth": "0.1.1",
|
||||
"ember-resize": "0.0.10",
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"framework": "qunit",
|
||||
"test_page": "tests/index.html?hidepassed",
|
||||
"disable_watching": true,
|
||||
"launch_in_ci": [
|
||||
"PhantomJS"
|
||||
],
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
import Ember from 'ember';
|
||||
import Application from '../../app';
|
||||
import Router from '../../router';
|
||||
import config from '../../config/environment';
|
||||
|
||||
function startApp(attrs) {
|
||||
export default function startApp(attrs) {
|
||||
var application,
|
||||
attributes = Ember.merge({}, config.APP);
|
||||
|
||||
|
@ -17,5 +16,3 @@ function startApp(attrs) {
|
|||
|
||||
return application;
|
||||
}
|
||||
|
||||
export default startApp;
|
||||
|
|
|
@ -7,7 +7,7 @@ import {
|
|||
describeModule(
|
||||
'controller:post-settings-menu',
|
||||
{
|
||||
needs: ['controller:application']
|
||||
needs: ['controller:application', 'service:notifications']
|
||||
},
|
||||
|
||||
function () {
|
||||
|
|
|
@ -6,6 +6,9 @@ import {
|
|||
|
||||
describeModule(
|
||||
'controller:settings/general',
|
||||
{
|
||||
needs: ['service:notifications']
|
||||
},
|
||||
|
||||
function () {
|
||||
it('isDatedPermalinks should be correct', function () {
|
||||
|
|
Loading…
Add table
Reference in a new issue