Commit Graph

45 Commits

Author SHA1 Message Date
Daniel Lockyer
ab5ced6bdd Published new versions
- @tryghost/adapter-manager@0.1.10
 - @tryghost/bootstrap-socket@0.2.1
 - @tryghost/constants@0.1.0
 - @tryghost/errors@0.2.3
 - @tryghost/image-transform@1.0.3
 - @tryghost/moleculer-service-from-class@0.2.5
 - @tryghost/mw-session-from-token@0.1.7
 - @tryghost/pretty-cli@1.2.9
 - @tryghost/release-utils@0.6.5
 - @tryghost/session-service@0.1.8
 - @tryghost/vhost-middleware@1.0.8
 - @tryghost/zip@1.1.3
2020-08-11 12:42:52 +01:00
Renovate Bot
9e11010f6a Update dependency sinon to v9.0.3 2020-08-11 08:02:08 +00:00
Daniel Lockyer
9f3114d1a1 Published new versions
- @tryghost/adapter-manager@0.1.8
 - @tryghost/errors@0.2.1
 - @tryghost/image-transform@1.0.1
 - @tryghost/moleculer-service-from-class@0.2.4
 - @tryghost/mw-session-from-token@0.1.6
 - @tryghost/pretty-cli@1.2.8
 - @tryghost/release-utils@0.6.4
 - @tryghost/session-service@0.1.6
 - @tryghost/vhost-middleware@1.0.6
 - @tryghost/zip@1.1.2
2020-08-07 16:06:21 +01:00
Renovate Bot
16dbfbc207 Update dependency mocha to v8.1.1 2020-08-04 19:32:11 +00:00
Renovate Bot
8af8886f86 Update Test & linting packages 2020-08-04 15:05:13 +00:00
Daniel Lockyer
e751f94500 Updated test theme package.json dependencies
- these were getting quite old and started flagging security issues in
  GitHub
2020-08-04 15:03:53 +01:00
Daniel Lockyer
3978858b83 Remove trailing commas from .eslintrc.js files
- the upcoming eslint update flags errors for trailing commas, so this
  commits tidies that up
2020-08-04 14:48:07 +01:00
Renovate Bot
fd19cc0d37 Update dependency folder-hash to v3.3.2 2020-08-04 12:37:37 +00:00
Renovate Bot
d586ad780b Update dependency fs-extra to v9.0.1 2020-08-04 12:32:34 +00:00
Daniel Lockyer
d3459271bf Updated zip test to reflect intended behaviour
- the symlink test has been failing for some time because recent minors
  of Node 12 produce different size zip files
- we were checking that the produced zip is a specific size, but we
  basically just want to check it's smaller than the original folder
- this commit updates the test with the size of the original folder,
  found by running `du -b test/fixtures/test-theme/`
2020-08-04 13:05:34 +01:00
Fabien O'Carroll
76478e4c74 Published new versions
- @tryghost/adapter-manager@0.1.6
 - @tryghost/errors@0.2.0
 - @tryghost/image-transform@0.2.4
 - @tryghost/moleculer-service-from-class@0.2.2
 - @tryghost/mw-session-from-token@0.1.4
 - @tryghost/pretty-cli@1.2.7
 - @tryghost/release-utils@0.6.3
 - @tryghost/session-service@0.1.4
 - @tryghost/vhost-middleware@1.0.5
 - @tryghost/zip@1.1.1
2020-05-26 18:19:01 +02:00
Renovate Bot
52f7aa09a8 Update dependency mocha to v7.2.0 2020-05-25 01:19:06 +00:00
Hannah Wolfe
ed3f229136 Published new versions
- @tryghost/adapter-manager@0.1.4
 - @tryghost/errors@0.1.3
 - @tryghost/image-transform@0.2.2
 - @tryghost/moleculer-service-from-class@0.1.3
 - @tryghost/mw-session-from-token@0.1.2
 - @tryghost/pretty-cli@1.2.6
 - @tryghost/release-utils@0.6.2
 - @tryghost/session-service@0.1.2
 - @tryghost/vhost-middleware@1.0.4
 - @tryghost/zip@1.1.0
2020-05-08 16:23:52 +01:00
Hannah Wolfe
7964f6ec82 Added dotfile support and set it on by default
refs https://github.com/TryGhost/Ghost/issues/11794

- archiver has an undocumented dot option, that allows you to include dotfiles
- our existing tests had a dotfile, but we didn't check properly that everything exists
- Swapped to using folder-hash to compare if the original, and compressed-then-decompressed folders are identical
- Added an example of a dotfolder with nested dotfile
- Updated compress to use the dot option, make it optional but on by default
2020-05-08 16:21:20 +01:00
Renovate Bot
3497384003 Update dependency mocha to v7.1.2 2020-04-27 01:16:32 +00:00
Renovate Bot
1e393e56ef Update dependency archiver to v4 2020-04-22 15:43:45 +01:00
Daniel Lockyer
2ef0b76371 Pinned all dependencies
no issue
2020-04-22 12:21:42 +01:00
Fabien O'Carroll
2802e1eb03 Published new versions
- @tryghost/adapter-manager@0.1.3
 - @tryghost/errors@0.1.2
 - @tryghost/image-transform@0.2.1
 - @tryghost/moleculer-service-from-class@0.1.0
 - @tryghost/mw-session-from-token@0.1.1
 - @tryghost/pretty-cli@1.2.5
 - @tryghost/release-utils@0.6.1
 - @tryghost/session-service@0.1.1
 - @tryghost/vhost-middleware@1.0.3
 - @tryghost/zip@1.0.1
2020-04-16 15:15:35 +02:00
Renovate Bot
bcec46d0cf Update dependency sinon to v9.0.2 2020-04-08 12:16:19 +00:00
Hannah Wolfe
4626407970 Published new versions
- @tryghost/zip@1.0.0
2020-04-08 12:55:01 +01:00
Hannah Wolfe
adfb3fe499 Consistent interface and response
- Creating a better, more long-term API here
- compress and extract are opposite, neat terms
- Use new Promise to get rid of callback argument when using archiver to compress a folder
- Add options argument, and make a couple of key details configurable
- Make the response intelligable
- Ensure both functions are consistent
- Updated tests to match
2020-04-08 12:48:20 +01:00
Hannah Wolfe
62c2fce6cc Switch to OG extract-zip w/ promise based interface
- switch back from @tryghost/extract-zip to extract-zip now that it has been fixed (and is much better maintained)
- switch the internal interface to be fully promise-based and test promise-based too
2020-04-08 12:48:20 +01:00
Hannah Wolfe
1c57c8d34a Published new versions
- @tryghost/pretty-cli@1.2.4
 - @tryghost/release-utils@0.4.2
 - @tryghost/vhost-middleware@1.0.2
 - @tryghost/zip@0.1.0
2020-03-20 20:20:56 +00:00
Hannah Wolfe
3b6021a34e Swap extract-zip for @tryghost/extract-zip
- our version has some bug fixes
2020-03-20 20:03:40 +00:00
Hannah Wolfe
35ff6d1462 Expose extract, promisify + test cleanup
- Expose extract-zip as a utility
- Wrap extract and zipFolder in promisify
- Cleanup tests slightly
2020-03-20 19:59:15 +00:00
Hannah Wolfe
099a93d4a4 Updated paths & tests to work in new pkg structure
- added export to index.js
- fixed all paths to match the new structure
- replaced should with testUtils
- moved code from describe block into before
2020-03-20 17:02:36 +00:00
Hannah Wolfe
43d0629346 Merged zip-folder files & history from TryGhost/Ghost 2020-03-20 16:29:37 +00:00
Hannah Wolfe
9fdeb7d654 Prepared new zip package
- Ready to accept code and history from TryGhost/Ghost
2020-03-20 16:21:52 +00:00
Zlatan Vasović
0cb9685520 2020
refs 5e10faee8b
2020-01-06 10:51:18 +01:00
Naz Gargol
e1ec5aa405 🔥 Removed V1 code/references in frontend resources/routing layer (#11087)
no issue

- Removed v1 'author' leftover in include statement for preview controller
- Removed v1 'author' leftover in include statement for preview controller
- Removed v1 'author' leftover in include statement in entry lookup routing helper
- Migrated related test to use v2 API controller
- Removed v0.1 routing confif
- Removed v0.1 url config
- Fixed tests that had to do with url's in resources after removing v0.1 resources from URL cache
- Removed v1 'author' leftover in include statement in static routing helper
- Modified the test to use v2 API
- Removed v1 specific condition with 'page' in context helper
- Fixed dynamic routing spec after theme switch to v2. All tested users have to have at least one published post to be shown as an author
- Fixed URL Service spec to use theme engine v2
2019-09-10 11:41:42 +02:00
Sumedh Nimkarde
3e7a15b9ee 🐛 Ignored node_modules dir when archiving (#10969)
fixes #10929
2019-08-06 16:17:41 +08:00
Aileen Nowak
a54b40b9f8 Updated docs api links to be version-less 2019-07-25 15:17:23 +08:00
Aileen Nowak
30fda4eccd Updated links to docs (#10941)
no issue
2019-07-22 18:17:50 +08:00
Hannah Wolfe
c0b5d28a78 Updated docs links to best equivalents (#10386)
* Updated docs links to best equivalents
   - Our documentation has been overhauled, this updates the all the old links sprinkled through Ghost
* Update integrity hash
2019-01-17 06:57:37 +00:00
John O'Nolan
5e10faee8b 2019 2019-01-01 14:07:15 +00:00
kirrg001
1af0dbc717 Fixed tests
no issue

- replace test themes
  - otherwise they are all invalid with the new GScan version
- fix general tests because of Ghost 2.0 logic
2018-08-16 12:13:24 +02:00
kirrg001
a7a3c27a2e Updated docs links
refs #9742

- rebase against master updated some docs links again
- go over code base again and double check that all docs links are correct
- 2.0 will become the latest version on our readme pages
2018-08-16 12:13:24 +02:00
kirrg001
74d6e1681d Updated docs links
refs #9742

- Ghost 2.0 is coming
- all doc links in 1.0 must use concrete links e.g. docs.ghost.org/v1 or themes.ghost.org/v1.23.0/
- if we release Ghost 2.0, docs.ghost.org will show 2.0 docs
2018-07-20 23:49:16 +02:00
kirrg001
83933be526 Removed old jshint/jscs rules
refs bcf5a1bc34

- leftovers
2018-06-02 21:48:23 +02:00
kirrg001
f83ba3cbf1 🔥 Drop Node v4 Support
no issue

- support ends today
- see https://github.com/nodejs/Release
- removed `use strict`
2018-05-01 14:06:18 +02:00
juan-g
11e9904ff3 Theme translations and blog localisation (#8437)
refs #5345, refs #3801

- Blog localisation
  - default is `en` (English)
  - you can change the language code in the admin panel, see https://github.com/TryGhost/Ghost-Admin/pull/703
  - blog behaviour changes depending on the language e.g. date helper format
  - theme translation get's loaded if available depending on the language setting
  - falls back to english if not available

- Theme translation
  - complete automatic translation of Ghost's frontend for site visitors (themes, etc.), to quickly deploy a site in a non-English language
  - added {{t}} and {{lang}} helper
  - no backend or admin panel translations (!)
  - easily readable translation keys - very simple translation
  - server restart required when adding new language files or changing existing files in the theme
  - no language code validation for now (will be added soon)
  - a full theme translation requires to translate Ghost core templates (e.g. subscriber form)
  - when activating a different theme, theme translations are auto re-loaded
  - when switching language of blog, theme translations are auto re-loaded

- Bump gscan to version 1.3.0 to support more known helpers

**Documentation can be found at https://themes.ghost.org/v1.20.0/docs/i18n.**
2018-01-09 14:50:57 +01:00
John O'Nolan
eac6a2df3a 2018 2018-01-02 21:44:41 +00:00
kirrg001
4b168db2be Moved zip folder, read csv and package-json to lib/fs
refs #9178, refs 849e97640f

- i've reconsidered, these modules belong to lib
- prettify package-json module
2017-12-14 22:07:53 +01:00
Katharina Irrgang
1c5e9d9ed3 Tests: Sort out usage of content folder in tests (#9034)
no issue

- use latest casper in test fixtures
- never ever use the root content folder for tests
- if we start/fork Ghost for the tests, we use a tmp folder
- this change is required to for an upcoming PR (#9029)
- i've added a TODO to create a helper fn for stopping the ghost server, so we can cleanup the tmp folder

* Care about TODO's in our channels spec

- add the 1.4 compatible casper theme to fixtures
- so as soon as you start Ghost, the test env will provide the content folder in /tmp something with the activated latest default casper and the 1.4 compatible old casper
- there are tests which tests different logici e.g. pagination
- therefor we need a different theme, we are simply using our 1.4 casper
2017-09-21 15:05:35 +01:00
Katharina Irrgang
4afb9a691c feature: define redirects in a custom file (#7719) (#7945)
refs #7707

- be able to add a custom redirect file into the content folder
- define redirects as JSON format

The redirects feature is already present in the LTS branch.
I was not able to cherry-pick over, too many changes or conflicts.
Creating a PR to ensure 1. tests pass and 2. overview of code changes.
I had to add an example active theme to our test fixture utils, because otherwise Ghost will complain when forking Ghost.
2017-02-06 15:32:40 +01:00