2014-02-09 19:29:23 +04:00
|
|
|
{
|
2015-05-06 02:54:23 +03:00
|
|
|
"name": "ghost",
|
2018-04-24 11:03:39 +03:00
|
|
|
"version": "1.22.4",
|
2017-07-27 11:26:31 +03:00
|
|
|
"description": "The professional publishing platform",
|
2015-05-06 02:54:23 +03:00
|
|
|
"author": "Ghost Foundation",
|
|
|
|
"homepage": "http://ghost.org",
|
|
|
|
"keywords": [
|
|
|
|
"ghost",
|
|
|
|
"blog",
|
|
|
|
"cms"
|
|
|
|
],
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "git://github.com/TryGhost/Ghost.git"
|
|
|
|
},
|
|
|
|
"bugs": "https://github.com/TryGhost/Ghost/issues",
|
|
|
|
"contributors": "https://github.com/TryGhost/Ghost/graphs/contributors",
|
2015-05-26 07:00:32 +03:00
|
|
|
"license": "MIT",
|
2015-05-06 02:54:23 +03:00
|
|
|
"main": "./core/index",
|
|
|
|
"scripts": {
|
|
|
|
"start": "node index",
|
2017-08-09 19:20:02 +03:00
|
|
|
"dev": "DEBUG=ghost:* grunt dev",
|
2017-03-23 19:02:21 +03:00
|
|
|
"test": "grunt validate --verbose",
|
2018-04-09 14:43:16 +03:00
|
|
|
"setup": "yarn install && knex-migrator init && grunt symlink && grunt init || true",
|
|
|
|
"lint": "grunt lint"
|
2015-05-06 02:54:23 +03:00
|
|
|
},
|
|
|
|
"engines": {
|
2018-04-30 13:33:36 +03:00
|
|
|
"node": "^6.9.0 || ^8.9.0",
|
2018-04-13 04:29:36 +03:00
|
|
|
"cli": "^1.7.0"
|
2015-05-06 02:54:23 +03:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2018-01-04 16:44:33 +03:00
|
|
|
"amperize": "0.3.7",
|
2017-08-22 14:23:23 +03:00
|
|
|
"analytics-node": "2.4.1",
|
2017-01-04 15:54:41 +03:00
|
|
|
"archiver": "1.3.0",
|
2017-02-08 20:54:16 +03:00
|
|
|
"bcryptjs": "2.4.3",
|
2017-11-17 18:29:21 +03:00
|
|
|
"bluebird": "3.5.1",
|
2017-09-25 15:27:14 +03:00
|
|
|
"body-parser": "1.18.2",
|
2018-03-26 16:12:02 +03:00
|
|
|
"bookshelf": "0.13.3",
|
2018-03-19 18:27:06 +03:00
|
|
|
"bookshelf-relations": "0.2.0",
|
|
|
|
"brute-knex": "https://github.com/cobbspur/brute-knex/tarball/4feff38ad2e4ccd8d9de05f04a2ad7a5eb3e0ac1",
|
2018-01-02 14:08:32 +03:00
|
|
|
"bson-objectid": "1.2.2",
|
2016-04-21 12:19:55 +03:00
|
|
|
"chalk": "1.1.3",
|
2016-09-19 14:32:40 +03:00
|
|
|
"cheerio": "0.22.0",
|
2018-03-21 20:49:42 +03:00
|
|
|
"compression": "1.7.2",
|
2015-06-03 14:15:11 +03:00
|
|
|
"connect-slashes": "1.3.1",
|
2017-09-25 15:27:14 +03:00
|
|
|
"cookie-session": "1.3.2",
|
2017-08-03 10:09:03 +03:00
|
|
|
"cors": "2.8.4",
|
2017-11-17 18:29:21 +03:00
|
|
|
"csv-parser": "1.12.0",
|
2015-05-06 02:54:23 +03:00
|
|
|
"downsize": "0.0.8",
|
2018-03-21 20:49:42 +03:00
|
|
|
"express": "4.16.3",
|
2016-11-08 14:33:19 +03:00
|
|
|
"express-brute": "1.0.1",
|
2017-01-11 22:40:39 +03:00
|
|
|
"express-hbs": "1.0.4",
|
2017-10-31 14:11:59 +03:00
|
|
|
"extract-zip": "1.6.6",
|
2017-05-10 10:51:54 +03:00
|
|
|
"fs-extra": "3.0.1",
|
2018-03-27 17:16:15 +03:00
|
|
|
"ghost-gql": "0.0.9",
|
2018-04-02 22:05:16 +03:00
|
|
|
"ghost-ignition": "2.9.1",
|
😱 🎨 Refactor storage adapter (#8229)
refs #7687
There are four main changes in this PR:
we have outsourced the base storage adapter to npm, because for storage developers it's annoying to inherit from a script within Ghost
we hacked theme storage handling into the default local storage adapter - this was reverted, instead we have added a static theme storage here
use classes instead of prototyping
optimise the storage adapter in general - everything is explained in each commit
----
* rename local-file-store to LocalFileStorage
I would like to keep the name pattern i have used for scheduling.
If a file is a class, the file name reflects the class name.
We can discuss this, if concerns are raised.
* Transform LocalFileStorage to class and inherit from new base
- inherit from npm ghost-storage-base
- rewrite to class
- no further refactoring, happens later
* Rename core/test/unit/storage/local-file-store_spec.js -> core/test/unit/storage/LocalFileStorage_spec.js
* Fix wrong require in core/test/unit/storage/LocalFileStorage_spec.js
* remove base storage and test
- see https://github.com/kirrg001/Ghost-Storage-Base
- the test has moved to this repo as well
* Use npm ghost-storage-base in storage/index.js
* remove the concept of getStorage('themes')
This concept was added when we added themes as a feature.
Back then, we have changed the local storage adapter to support images and themes.
This has added some hacks into the local storage adapters.
We want to revert this change and add a simple static theme storage.
Will adapt the api/themes layer in the next commits.
* Revert LocalFileStorage
- revert serve
- revert delete
* add storagePath as property to LocalFileStorage
- define one property which holds the storage path
- could be considered to pass from outside, but found that not helpful, as other storage adapters do not need this property
- IMPORTANT: save has no longer a targetDir option, because this was used to pass the alternative theme storage path
- IMPORTANT: exists has now an alternative targetDir, this makes sense, because
- you can either ask the storage exists('my-file') and it will look in the base storage path
- or you pass a specific path where to look exists('my-file', /path/to/dir)
* LocalFileStorage: get rid of store pattern
- getUniqueFileName(THIS)
- this doesn't make sense, instances always have access to this by default
* Add static theme storage
- inherits from the local file storage, because they both operate on the file system
- IMPORTANT: added a TODO to consider a merge of themes/loader and themes/storage
- but will be definitely not part of this PR
* Use new static theme storage in api/themes
- storage functions are simplified!
* Add https://github.com/kirrg001/Ghost-Storage-Base as dependency
- tarball for now, as i am still testing
- will release if PR review get's accepted
* Adapt tests and jscs/jshint
* 🐛 fix storage.read in favicon utility
- wrong implementation of error handling
* 🎨 optimise error messages for custom storage adapter errors
* little renaming in the storage utlity
- purpose is to have access to the custom storage instance and to the custom storage class
- see next commit why
* optimise instanceof base storage
- instanceof is always tricky in javascript
- if multiple modules exist, it can happen that instanceof is false
* fix getTargetDir
- the importer uses the `targetDir` option to ensure that images land in the correct folder
* ghost-storage-base@0.0.1 package.json dependency
2017-04-05 17:10:34 +03:00
|
|
|
"ghost-storage-base": "0.0.1",
|
2015-10-14 12:29:08 +03:00
|
|
|
"glob": "5.0.15",
|
2017-08-31 12:39:37 +03:00
|
|
|
"got": "7.1.0",
|
2018-03-27 17:16:15 +03:00
|
|
|
"gscan": "1.4.0",
|
2017-06-22 20:40:56 +03:00
|
|
|
"html-to-text": "3.3.0",
|
2018-01-02 14:08:32 +03:00
|
|
|
"image-size": "0.6.2",
|
2016-09-26 12:13:38 +03:00
|
|
|
"intl": "1.2.5",
|
2016-04-30 00:30:41 +03:00
|
|
|
"intl-messageformat": "1.3.0",
|
YAML settings loader and parser
closes #9528
These code changes introduce a YAML parser which will load and parse YAML files from the `/content/settings` directory. There are three major parts involved:
1. `ensure-settings.js`: this fn takes care that on bootstrap, the supported files are present in the `/content/settings` directory. If the files are not present, they get copied back from our default files. The default files to copy from are located in `core/server/services/settings`.
2. `loader.js`: the settings loader reads the requested `yaml` file from the disk and passes it to the yaml parser, which returns a `json` object of the file. The settings loader throws an error, if the file is not accessible, e. g. because of permission errors.
3. `yaml-parser`: gets passed a `yaml` file and returns a `json` object. If the file is not parseable, it returns a clear error that contains the information, what and where the parsing error occurred (e. g. line number and reason).
- added a `get()` fn to settings services, that returns the settings object that's asked for. e. g. `settings.get('routes').then(()...` will return the `routes` settings.
- added a `getAll()` fn to settings services, that returns all available settings in an object. The object looks like: `{routes: {routes: {}, collections: {}, resources: {}}, globals: {value: {}}`, assuming that we have to supported settings `routes` and `globals`.
Further additions:
- config `contentPath` for `settings`
- config overrides for default `yaml` files location in `/core/server/services/settings`
**Important**: These code changes are in preparation for Dynamic Routing and not yet used. The process of copying the supported `yaml` files (in this first step, the `routes.yaml` file) is not yet activated.
2018-04-13 04:34:03 +03:00
|
|
|
"js-yaml": "3.11.0",
|
2017-10-31 14:21:48 +03:00
|
|
|
"jsonpath": "1.0.0",
|
2018-03-19 18:27:06 +03:00
|
|
|
"knex": "0.14.4",
|
2018-03-21 20:49:42 +03:00
|
|
|
"knex-migrator": "3.1.5",
|
|
|
|
"lodash": "4.17.5",
|
2018-03-05 12:03:24 +03:00
|
|
|
"markdown-it": "8.4.1",
|
replace custom showdown fork with markdown-it (#8451)
refs https://github.com/TryGhost/Ghost-Admin/pull/690, closes #1501, closes #2093, closes #4592, closes #4627, closes #4659, closes #5039, closes #5237, closes #5587, closes #5625, closes #5632, closes #5822, closes #5939, closes #6840, closes #7183, closes #7536
- replace custom showdown fork with markdown-it
- swaps showdown for markdown-it when rendering markdown
- match existing header ID behaviour
- allow headers without a space after the #s
- add duplicate header ID handling
- remove legacy markdown spec
- move markdown-it setup into markdown-converter util
- update mobiledoc specs to match markdown-it newline behaviour
- update data-generator HTML to match markdown-it newline behaviour
- fix Post "converts html to plaintext" test
- update rss spec to match markdown-it newline behaviour
- close almost all related showdown bugs
2017-05-15 19:48:14 +03:00
|
|
|
"markdown-it-footnote": "3.0.1",
|
|
|
|
"markdown-it-lazy-headers": "0.1.3",
|
|
|
|
"markdown-it-mark": "2.0.0",
|
2017-03-14 21:07:33 +03:00
|
|
|
"mobiledoc-dom-renderer": "0.6.5",
|
2018-03-21 20:49:42 +03:00
|
|
|
"moment": "2.21.0",
|
2017-10-31 13:53:16 +03:00
|
|
|
"moment-timezone": "0.5.14",
|
2017-02-08 19:00:11 +03:00
|
|
|
"multer": "1.3.0",
|
2017-10-31 13:53:16 +03:00
|
|
|
"mysql": "2.15.0",
|
2018-01-02 14:08:32 +03:00
|
|
|
"nconf": "0.10.0",
|
2018-03-21 20:49:42 +03:00
|
|
|
"netjet": "1.3.0",
|
2015-05-06 02:54:23 +03:00
|
|
|
"nodemailer": "0.7.1",
|
2017-11-17 18:29:21 +03:00
|
|
|
"oauth2orize": "1.11.0",
|
2017-09-25 15:27:14 +03:00
|
|
|
"passport": "0.4.0",
|
2015-05-06 02:54:23 +03:00
|
|
|
"passport-http-bearer": "1.0.1",
|
|
|
|
"passport-oauth2-client-password": "0.1.2",
|
2016-04-21 12:44:58 +03:00
|
|
|
"path-match": "1.2.4",
|
2017-01-11 22:42:13 +03:00
|
|
|
"rss": "1.2.2",
|
2018-03-21 20:49:42 +03:00
|
|
|
"sanitize-html": "1.18.2",
|
2018-01-25 00:50:20 +03:00
|
|
|
"semver": "5.5.0",
|
2017-03-14 21:07:33 +03:00
|
|
|
"simple-dom": "0.3.2",
|
2017-10-31 13:53:16 +03:00
|
|
|
"simple-html-tokenizer": "0.4.3",
|
2018-01-02 14:08:32 +03:00
|
|
|
"superagent": "3.8.2",
|
2015-12-08 14:01:49 +03:00
|
|
|
"unidecode": "0.1.8",
|
2018-01-25 00:50:20 +03:00
|
|
|
"uuid": "3.2.1",
|
2017-03-03 17:04:38 +03:00
|
|
|
"validator": "6.3.0",
|
2016-02-09 00:30:57 +03:00
|
|
|
"xml": "1.0.1"
|
2015-05-06 02:54:23 +03:00
|
|
|
},
|
|
|
|
"optionalDependencies": {
|
2018-03-21 20:49:42 +03:00
|
|
|
"sqlite3": "4.0.0"
|
2015-05-06 02:54:23 +03:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2018-03-21 20:49:42 +03:00
|
|
|
"eslint": "4.19.0",
|
|
|
|
"grunt": "1.0.2",
|
2016-04-06 23:07:55 +03:00
|
|
|
"grunt-bg-shell": "2.3.3",
|
|
|
|
"grunt-cli": "1.2.0",
|
2017-07-10 21:56:05 +03:00
|
|
|
"grunt-contrib-clean": "1.1.0",
|
|
|
|
"grunt-contrib-compress": "1.4.3",
|
2016-04-06 23:07:55 +03:00
|
|
|
"grunt-contrib-copy": "1.0.0",
|
2017-04-13 10:26:48 +03:00
|
|
|
"grunt-contrib-symlink": "^1.0.0",
|
2018-01-02 14:08:32 +03:00
|
|
|
"grunt-contrib-uglify": "3.3.0",
|
2016-04-06 23:07:55 +03:00
|
|
|
"grunt-contrib-watch": "1.0.0",
|
2017-04-10 12:30:21 +03:00
|
|
|
"grunt-cssnano": "2.1.0",
|
2016-04-06 23:07:55 +03:00
|
|
|
"grunt-docker": "0.0.11",
|
2017-11-01 16:44:54 +03:00
|
|
|
"grunt-eslint": "20.1.0",
|
2018-03-21 20:49:42 +03:00
|
|
|
"grunt-express-server": "0.5.4",
|
2017-11-28 21:47:35 +03:00
|
|
|
"grunt-mocha-cli": "3.0.0",
|
2016-08-10 21:09:59 +03:00
|
|
|
"grunt-mocha-istanbul": "5.0.2",
|
2017-11-28 21:45:29 +03:00
|
|
|
"grunt-shell": "2.1.0",
|
2018-01-02 14:08:32 +03:00
|
|
|
"grunt-subgrunt": "1.3.0",
|
2015-05-28 18:16:09 +03:00
|
|
|
"grunt-update-submodules": "0.4.1",
|
2016-09-19 15:51:25 +03:00
|
|
|
"istanbul": "0.4.5",
|
2017-11-28 21:43:33 +03:00
|
|
|
"matchdep": "2.0.0",
|
2016-09-26 19:17:40 +03:00
|
|
|
"minimist": "1.2.0",
|
2018-01-02 14:08:32 +03:00
|
|
|
"mocha": "4.1.0",
|
2018-02-15 22:14:30 +03:00
|
|
|
"mock-knex": "0.4.0",
|
2018-03-21 20:49:42 +03:00
|
|
|
"nock": "9.2.3",
|
2017-11-28 21:22:29 +03:00
|
|
|
"rewire": "3.0.2",
|
2018-01-25 00:50:20 +03:00
|
|
|
"should": "13.2.1",
|
2017-04-04 11:12:37 +03:00
|
|
|
"should-http": "0.1.1",
|
2018-03-21 20:49:42 +03:00
|
|
|
"sinon": "4.4.6",
|
2017-02-08 17:42:31 +03:00
|
|
|
"supertest": "3.0.0",
|
2017-09-25 15:27:14 +03:00
|
|
|
"tmp": "0.0.33"
|
2016-02-07 16:16:18 +03:00
|
|
|
},
|
|
|
|
"greenkeeper": {
|
2016-03-29 06:24:32 +03:00
|
|
|
"ignore": [
|
|
|
|
"glob",
|
|
|
|
"nodemailer",
|
2016-09-30 15:38:14 +03:00
|
|
|
"grunt",
|
|
|
|
"grunt-bg-shell",
|
|
|
|
"grunt-cli",
|
|
|
|
"grunt-contrib-clean",
|
|
|
|
"grunt-contrib-compress",
|
|
|
|
"grunt-contrib-copy",
|
|
|
|
"grunt-contrib-jshint",
|
|
|
|
"grunt-contrib-uglify",
|
|
|
|
"grunt-contrib-watch",
|
|
|
|
"grunt-docker",
|
|
|
|
"grunt-express-server",
|
|
|
|
"grunt-jscs",
|
|
|
|
"grunt-mocha-cli",
|
|
|
|
"grunt-mocha-istanbul",
|
|
|
|
"grunt-shell",
|
|
|
|
"grunt-subgrunt",
|
2017-04-04 13:54:48 +03:00
|
|
|
"grunt-update-submodules",
|
|
|
|
"sinon"
|
2016-03-29 06:24:32 +03:00
|
|
|
]
|
2015-05-06 02:54:23 +03:00
|
|
|
}
|
2014-02-09 19:29:23 +04:00
|
|
|
}
|