mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
convert bower deps to npm deps
no issue - convert moment + moment-timezone to npm dependencies - convert password-generator to npm dependency - convert keymaster.js to npm dependency - convert blueimp-md5 to npm dependency
This commit is contained in:
parent
8192d6fd64
commit
861d79299f
3 changed files with 15 additions and 8 deletions
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "ghost",
|
"name": "ghost",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"blueimp-md5": "2.3.0",
|
|
||||||
"devicejs": "0.2.7",
|
"devicejs": "0.2.7",
|
||||||
"ember": "2.6.1",
|
"ember": "2.6.1",
|
||||||
"ember-cli-shims": "0.1.3",
|
"ember-cli-shims": "0.1.3",
|
||||||
|
@ -16,10 +15,7 @@
|
||||||
"jquery.simulate.drag-sortable": "0.1.0",
|
"jquery.simulate.drag-sortable": "0.1.0",
|
||||||
"keymaster": "1.6.3",
|
"keymaster": "1.6.3",
|
||||||
"lodash": "3.7.0",
|
"lodash": "3.7.0",
|
||||||
"moment": "2.13.0",
|
|
||||||
"moment-timezone": "0.5.4",
|
|
||||||
"normalize.css": "3.0.3",
|
"normalize.css": "3.0.3",
|
||||||
"password-generator": "2.0.2",
|
|
||||||
"pretender": "1.1.0",
|
"pretender": "1.1.0",
|
||||||
"rangyinputs": "1.2.0",
|
"rangyinputs": "1.2.0",
|
||||||
"selectize": "~0.12.1",
|
"selectize": "~0.12.1",
|
||||||
|
|
|
@ -42,6 +42,9 @@ module.exports = function (defaults) {
|
||||||
hinting: false,
|
hinting: false,
|
||||||
fingerprint: disabled,
|
fingerprint: disabled,
|
||||||
nodeAssets: {
|
nodeAssets: {
|
||||||
|
'blueimp-md5': {
|
||||||
|
import: ['js/md5.js']
|
||||||
|
},
|
||||||
codemirror: {
|
codemirror: {
|
||||||
import: [
|
import: [
|
||||||
'lib/codemirror.js',
|
'lib/codemirror.js',
|
||||||
|
@ -56,6 +59,15 @@ module.exports = function (defaults) {
|
||||||
'jquery-deparam': {
|
'jquery-deparam': {
|
||||||
enabled: EmberApp.env() === 'test',
|
enabled: EmberApp.env() === 'test',
|
||||||
import: ['jquery-deparam.js']
|
import: ['jquery-deparam.js']
|
||||||
|
},
|
||||||
|
moment: {
|
||||||
|
import: ['moment.js']
|
||||||
|
},
|
||||||
|
'moment-timezone': {
|
||||||
|
import: ['builds/moment-timezone-with-data.js']
|
||||||
|
},
|
||||||
|
'password-generator': {
|
||||||
|
import: ['lib/password-generator.js']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'ember-cli-selectize': {
|
'ember-cli-selectize': {
|
||||||
|
@ -71,8 +83,6 @@ module.exports = function (defaults) {
|
||||||
app.import('bower_components/showdown-ghost/src/extensions/ghostimagepreview.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/footnotes.js');
|
||||||
app.import('bower_components/showdown-ghost/src/extensions/highlight.js');
|
app.import('bower_components/showdown-ghost/src/extensions/highlight.js');
|
||||||
app.import('bower_components/moment/moment.js');
|
|
||||||
app.import('bower_components/moment-timezone/builds/moment-timezone-with-data.js');
|
|
||||||
app.import('bower_components/keymaster/keymaster.js');
|
app.import('bower_components/keymaster/keymaster.js');
|
||||||
app.import('bower_components/devicejs/lib/device.js');
|
app.import('bower_components/devicejs/lib/device.js');
|
||||||
app.import('bower_components/jquery-ui/jquery-ui.js');
|
app.import('bower_components/jquery-ui/jquery-ui.js');
|
||||||
|
@ -82,8 +92,6 @@ module.exports = function (defaults) {
|
||||||
app.import('bower_components/jquery-file-upload/js/jquery.fileupload-image.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/google-caja/html-css-sanitizer-bundle.js');
|
||||||
app.import('bower_components/jqueryui-touch-punch/jquery.ui.touch-punch.js');
|
app.import('bower_components/jqueryui-touch-punch/jquery.ui.touch-punch.js');
|
||||||
app.import('bower_components/password-generator/lib/password-generator.js');
|
|
||||||
app.import('bower_components/blueimp-md5/js/md5.js');
|
|
||||||
|
|
||||||
if (app.env === 'test') {
|
if (app.env === 'test') {
|
||||||
app.import(app.bowerDirectory + '/jquery.simulate.drag-sortable/jquery.simulate.drag-sortable.js', {type: 'test'});
|
app.import(app.bowerDirectory + '/jquery.simulate.drag-sortable/jquery.simulate.drag-sortable.js', {type: 'test'});
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"bluebird": "3.4.1",
|
"bluebird": "3.4.1",
|
||||||
|
"blueimp-md5": "2.3.0",
|
||||||
"bower": "1.7.9",
|
"bower": "1.7.9",
|
||||||
"broccoli-asset-rev": "2.4.3",
|
"broccoli-asset-rev": "2.4.3",
|
||||||
"chalk": "1.1.3",
|
"chalk": "1.1.3",
|
||||||
|
@ -80,6 +81,8 @@
|
||||||
"lodash": "4.13.1",
|
"lodash": "4.13.1",
|
||||||
"matchdep": "1.0.1",
|
"matchdep": "1.0.1",
|
||||||
"moment": "2.13.0",
|
"moment": "2.13.0",
|
||||||
|
"moment-timezone": "0.5.4",
|
||||||
|
"password-generator": "2.0.2",
|
||||||
"top-gh-contribs": "2.0.4",
|
"top-gh-contribs": "2.0.4",
|
||||||
"walk-sync": "^0.2.6"
|
"walk-sync": "^0.2.6"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue