mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-22 19:32:54 +03:00
Added webmentions package (#16133)
refs https://github.com/TryGhost/Team/issues/2408 - Added webmentions package - Setup basic folder structure, controllers, repositories & services to get started. - note package haven't been published yet
This commit is contained in:
parent
112ab23968
commit
e55405691a
6
ghost/webmentions/.eslintrc.js
Normal file
6
ghost/webmentions/.eslintrc.js
Normal file
@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
plugins: ['ghost'],
|
||||
extends: [
|
||||
'plugin:ghost/node'
|
||||
]
|
||||
};
|
21
ghost/webmentions/README.md
Normal file
21
ghost/webmentions/README.md
Normal file
@ -0,0 +1,21 @@
|
||||
# Webmentions
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
## Develop
|
||||
|
||||
This is a monorepo package.
|
||||
|
||||
Follow the instructions for the top-level repo.
|
||||
1. `git clone` this repo & `cd` into it as usual
|
||||
2. Run `yarn` to install top-level dependencies.
|
||||
|
||||
|
||||
|
||||
## Test
|
||||
|
||||
- `yarn lint` run just eslint
|
||||
- `yarn test` run lint and tests
|
||||
|
1
ghost/webmentions/index.js
Normal file
1
ghost/webmentions/index.js
Normal file
@ -0,0 +1 @@
|
||||
module.exports = require('./lib/webmentions');
|
1
ghost/webmentions/lib/webmentions.js
Normal file
1
ghost/webmentions/lib/webmentions.js
Normal file
@ -0,0 +1 @@
|
||||
// webmentions.js
|
26
ghost/webmentions/package.json
Normal file
26
ghost/webmentions/package.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "@tryghost/webmentions",
|
||||
"version": "0.0.0",
|
||||
"repository": "https://github.com/TryGhost/Ghost/tree/main/packages/webmentions",
|
||||
"author": "Ghost Foundation",
|
||||
"private": true,
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"dev": "echo \"Implement me!\"",
|
||||
"test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'",
|
||||
"test": "yarn test:unit",
|
||||
"lint:code": "eslint *.js lib/ --ext .js --cache",
|
||||
"lint": "yarn lint:code && yarn lint:test",
|
||||
"lint:test": "eslint -c test/.eslintrc.js test/ --ext .js --cache"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"lib"
|
||||
],
|
||||
"devDependencies": {
|
||||
"c8": "7.12.0",
|
||||
"mocha": "10.2.0",
|
||||
"sinon": "15.0.1"
|
||||
},
|
||||
"dependencies": {}
|
||||
}
|
6
ghost/webmentions/test/.eslintrc.js
Normal file
6
ghost/webmentions/test/.eslintrc.js
Normal file
@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
plugins: ['ghost'],
|
||||
extends: [
|
||||
'plugin:ghost/test'
|
||||
]
|
||||
};
|
8
ghost/webmentions/test/hello.test.js
Normal file
8
ghost/webmentions/test/hello.test.js
Normal file
@ -0,0 +1,8 @@
|
||||
const assert = require('assert');
|
||||
|
||||
describe('Hello world', function () {
|
||||
it('Runs a test', function () {
|
||||
// TODO: Write me!
|
||||
assert.ok(require('../index'));
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user