kirrg001
a3091a3012
Moved utils constants to lib/constants
...
refs #9178
2017-12-14 14:13:40 +01:00
kirrg001
c5169e23c4
Moved unique identifier generation to lib/security
...
refs #9178
2017-12-14 13:52:20 +01:00
kirrg001
bb06a8426d
Moved tokens, url safe and safe string utility to lib/security
...
refs #9178
- we could now also move any crypto usages to lib/security, but no priority
- the main goal is to tidy up our utils folder
2017-12-14 13:38:00 +01:00
Katharina Irrgang
192ebb1739
Moved labs, auth, permissions, settings, mail, themes to services ( #9339 )
...
refs #9178
- move tests as well
2017-12-14 03:01:23 +01:00
kirrg001
7460076206
Moved request to lib/request
...
refs #9178
- next steps are to
A: test if global.Promise works with `got` (see https://github.com/TryGhost/Ghost/pull/8988#issuecomment-351532881 )
B: re-use request utility everywhere
C: request lib requires data/validator, which is dirty
2017-12-13 22:37:42 +01:00
kirrg001
f83cbf6117
Moved pipeline/sequence to lib/promise
...
refs #9178
- continue with killing our global utils folder
- i haven't found any better naming for lib/promise
- so, require single files for now
- instead of doing `promiseLib = require('../lib/promise')`
- we can optimise the requires later
2017-12-13 22:20:02 +01:00
kirrg001
d83f474ff8
Always require fs-extra - consistency change
...
no issue
2017-12-13 20:57:11 +01:00
kirrg001
6f6c8f4521
Import lib/common only
...
refs #9178
- avoid importing 4 modules (logging, errors, events and i18n)
- simply require common in each file
2017-12-12 10:28:13 +01:00
kirrg001
ac2578b419
Moved errors,logging,i18n and events to lib/common
...
refs #9178
2017-12-12 10:28:13 +01:00