Initial commit.
This commit is contained in:
commit
141ded8d85
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
.idea
|
||||
node_modules
|
||||
dist
|
16
.vscode/launch.json
vendored
Normal file
16
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"type": "pwa-node",
|
||||
"request": "launch",
|
||||
"name": "MakeMobiledoc",
|
||||
"skipFiles": ["<node_internals>/**"],
|
||||
"program": "${workspaceFolder}/dist/MakeMobiledoc.js",
|
||||
"outFiles": ["${workspaceFolder}/**/*.js"]
|
||||
}
|
||||
]
|
||||
}
|
201
LICENSE
Normal file
201
LICENSE
Normal file
@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2022 Laur Ivan
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
3
README.md
Normal file
3
README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# Readme
|
||||
|
||||
Please, visit [init-typescript-app](https://github.com/barinbritva/init-typescript-app) repository if you need any details about next steps.
|
898
package-lock.json
generated
Normal file
898
package-lock.json
generated
Normal file
@ -0,0 +1,898 @@
|
||||
{
|
||||
"name": "ghost-md",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "ghost-md",
|
||||
"version": "1.0.0",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@tryghost/admin-api": "^1.13.0",
|
||||
"@types/markdown-it": "^12.2.3",
|
||||
"axios": "^0.27.2",
|
||||
"fs": "^0.0.1-security",
|
||||
"jsonwebtoken": "^8.5.1",
|
||||
"markdown-it": "^13.0.1",
|
||||
"markdown-it-github-preamble": "^1.0.0",
|
||||
"markdown-it-multimd-table": "^4.1.3",
|
||||
"markdown-yaml-metadata-parser": "^3.0.0",
|
||||
"mobiledoc-kit": "^0.14.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^14.14.31",
|
||||
"ts-node": "^9.1.1",
|
||||
"typescript": "^4.3.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@tryghost/admin-api": {
|
||||
"version": "1.13.0",
|
||||
"resolved": "https://registry.npmjs.org/@tryghost/admin-api/-/admin-api-1.13.0.tgz",
|
||||
"integrity": "sha512-/vAS7o04evvxfEQwI2gWR7kjhzPLoZKUanSEQaE8Ur8EaPaPdhz9tA4R9pjmLf63hoyaBgKMcv0G5UIPQ9M9CA==",
|
||||
"dependencies": {
|
||||
"axios": "^0.27.0",
|
||||
"form-data": "^4.0.0",
|
||||
"jsonwebtoken": "^8.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/linkify-it": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-3.0.2.tgz",
|
||||
"integrity": "sha512-HZQYqbiFVWufzCwexrvh694SOim8z2d+xJl5UNamcvQFejLY/2YUtzXHYi3cHdI7PMlS8ejH2slRAOJQ32aNbA=="
|
||||
},
|
||||
"node_modules/@types/markdown-it": {
|
||||
"version": "12.2.3",
|
||||
"resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-12.2.3.tgz",
|
||||
"integrity": "sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ==",
|
||||
"dependencies": {
|
||||
"@types/linkify-it": "*",
|
||||
"@types/mdurl": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/mdurl": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-1.0.2.tgz",
|
||||
"integrity": "sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA=="
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "14.18.21",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.21.tgz",
|
||||
"integrity": "sha512-x5W9s+8P4XteaxT/jKF0PSb7XEvo5VmqEWgsMlyeY4ZlLK8I6aH6g5TPPyDlLAep+GYf4kefb7HFyc7PAO3m+Q==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/arg": {
|
||||
"version": "4.1.3",
|
||||
"resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz",
|
||||
"integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/argparse": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
|
||||
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="
|
||||
},
|
||||
"node_modules/asynckit": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
||||
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
|
||||
},
|
||||
"node_modules/axios": {
|
||||
"version": "0.27.2",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz",
|
||||
"integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==",
|
||||
"dependencies": {
|
||||
"follow-redirects": "^1.14.9",
|
||||
"form-data": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/buffer-equal-constant-time": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
|
||||
"integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA=="
|
||||
},
|
||||
"node_modules/buffer-from": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
|
||||
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/combined-stream": {
|
||||
"version": "1.0.8",
|
||||
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
|
||||
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
|
||||
"dependencies": {
|
||||
"delayed-stream": "~1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/create-require": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",
|
||||
"integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/delayed-stream": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
||||
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
|
||||
"engines": {
|
||||
"node": ">=0.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/detect-newline": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz",
|
||||
"integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==",
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/diff": {
|
||||
"version": "4.0.2",
|
||||
"resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",
|
||||
"integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=0.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/ecdsa-sig-formatter": {
|
||||
"version": "1.0.11",
|
||||
"resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",
|
||||
"integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==",
|
||||
"dependencies": {
|
||||
"safe-buffer": "^5.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/entities": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/entities/-/entities-3.0.1.tgz",
|
||||
"integrity": "sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q==",
|
||||
"engines": {
|
||||
"node": ">=0.12"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/fb55/entities?sponsor=1"
|
||||
}
|
||||
},
|
||||
"node_modules/esprima": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
|
||||
"integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
|
||||
"bin": {
|
||||
"esparse": "bin/esparse.js",
|
||||
"esvalidate": "bin/esvalidate.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
}
|
||||
},
|
||||
"node_modules/follow-redirects": {
|
||||
"version": "1.15.1",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.1.tgz",
|
||||
"integrity": "sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "individual",
|
||||
"url": "https://github.com/sponsors/RubenVerborgh"
|
||||
}
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=4.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"debug": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/form-data": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
|
||||
"integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
|
||||
"dependencies": {
|
||||
"asynckit": "^0.4.0",
|
||||
"combined-stream": "^1.0.8",
|
||||
"mime-types": "^2.1.12"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
}
|
||||
},
|
||||
"node_modules/fs": {
|
||||
"version": "0.0.1-security",
|
||||
"resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz",
|
||||
"integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w=="
|
||||
},
|
||||
"node_modules/js-yaml": {
|
||||
"version": "3.14.1",
|
||||
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
|
||||
"integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
|
||||
"dependencies": {
|
||||
"argparse": "^1.0.7",
|
||||
"esprima": "^4.0.0"
|
||||
},
|
||||
"bin": {
|
||||
"js-yaml": "bin/js-yaml.js"
|
||||
}
|
||||
},
|
||||
"node_modules/js-yaml/node_modules/argparse": {
|
||||
"version": "1.0.10",
|
||||
"resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
|
||||
"integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
|
||||
"dependencies": {
|
||||
"sprintf-js": "~1.0.2"
|
||||
}
|
||||
},
|
||||
"node_modules/jsonwebtoken": {
|
||||
"version": "8.5.1",
|
||||
"resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz",
|
||||
"integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==",
|
||||
"dependencies": {
|
||||
"jws": "^3.2.2",
|
||||
"lodash.includes": "^4.3.0",
|
||||
"lodash.isboolean": "^3.0.3",
|
||||
"lodash.isinteger": "^4.0.4",
|
||||
"lodash.isnumber": "^3.0.3",
|
||||
"lodash.isplainobject": "^4.0.6",
|
||||
"lodash.isstring": "^4.0.1",
|
||||
"lodash.once": "^4.0.0",
|
||||
"ms": "^2.1.1",
|
||||
"semver": "^5.6.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4",
|
||||
"npm": ">=1.4.28"
|
||||
}
|
||||
},
|
||||
"node_modules/jwa": {
|
||||
"version": "1.4.1",
|
||||
"resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz",
|
||||
"integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==",
|
||||
"dependencies": {
|
||||
"buffer-equal-constant-time": "1.0.1",
|
||||
"ecdsa-sig-formatter": "1.0.11",
|
||||
"safe-buffer": "^5.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/jws": {
|
||||
"version": "3.2.2",
|
||||
"resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz",
|
||||
"integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==",
|
||||
"dependencies": {
|
||||
"jwa": "^1.4.1",
|
||||
"safe-buffer": "^5.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/linkify-it": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-4.0.1.tgz",
|
||||
"integrity": "sha512-C7bfi1UZmoj8+PQx22XyeXCuBlokoyWQL5pWSP+EI6nzRylyThouddufc2c1NDIcP9k5agmN9fLpA7VNJfIiqw==",
|
||||
"dependencies": {
|
||||
"uc.micro": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/lodash.includes": {
|
||||
"version": "4.3.0",
|
||||
"resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz",
|
||||
"integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w=="
|
||||
},
|
||||
"node_modules/lodash.isboolean": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz",
|
||||
"integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg=="
|
||||
},
|
||||
"node_modules/lodash.isinteger": {
|
||||
"version": "4.0.4",
|
||||
"resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz",
|
||||
"integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA=="
|
||||
},
|
||||
"node_modules/lodash.isnumber": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz",
|
||||
"integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw=="
|
||||
},
|
||||
"node_modules/lodash.isplainobject": {
|
||||
"version": "4.0.6",
|
||||
"resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",
|
||||
"integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA=="
|
||||
},
|
||||
"node_modules/lodash.isstring": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz",
|
||||
"integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw=="
|
||||
},
|
||||
"node_modules/lodash.once": {
|
||||
"version": "4.1.1",
|
||||
"resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz",
|
||||
"integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg=="
|
||||
},
|
||||
"node_modules/make-error": {
|
||||
"version": "1.3.6",
|
||||
"resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
|
||||
"integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/markdown-it": {
|
||||
"version": "13.0.1",
|
||||
"resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-13.0.1.tgz",
|
||||
"integrity": "sha512-lTlxriVoy2criHP0JKRhO2VDG9c2ypWCsT237eDiLqi09rmbKoUetyGHq2uOIRoRS//kfoJckS0eUzzkDR+k2Q==",
|
||||
"dependencies": {
|
||||
"argparse": "^2.0.1",
|
||||
"entities": "~3.0.1",
|
||||
"linkify-it": "^4.0.1",
|
||||
"mdurl": "^1.0.1",
|
||||
"uc.micro": "^1.0.5"
|
||||
},
|
||||
"bin": {
|
||||
"markdown-it": "bin/markdown-it.js"
|
||||
}
|
||||
},
|
||||
"node_modules/markdown-it-github-preamble": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/markdown-it-github-preamble/-/markdown-it-github-preamble-1.0.0.tgz",
|
||||
"integrity": "sha512-zm5rxyvyezO/HfdYuR/NxQI8tC5oT4kvwkKMiei9SzjFSAIoBV63+ZGAT3ToU3ksQNuxovZeNCJtIfvS7BPerg==",
|
||||
"dependencies": {
|
||||
"js-yaml": "^3.9.0"
|
||||
}
|
||||
},
|
||||
"node_modules/markdown-it-multimd-table": {
|
||||
"version": "4.1.3",
|
||||
"resolved": "https://registry.npmjs.org/markdown-it-multimd-table/-/markdown-it-multimd-table-4.1.3.tgz",
|
||||
"integrity": "sha512-cXvJ+l8dMRmUZLrn34W/8tfLYjC40R7S0wRwcb95emuvQ3uiWNf9vB/IyeRh6XqEq95eXh70+UDNZ29qcOI+Dg=="
|
||||
},
|
||||
"node_modules/markdown-yaml-metadata-parser": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/markdown-yaml-metadata-parser/-/markdown-yaml-metadata-parser-3.0.0.tgz",
|
||||
"integrity": "sha512-gRxEfuGIpb9pS1nQyASx3+l99e1hyTaK/+zDuvGcZJvr+OlksZ5O+q7opPcQP25j/z7NoOYEp17Lxgq5Sn4vDg==",
|
||||
"dependencies": {
|
||||
"detect-newline": "^3.1.0",
|
||||
"js-yaml": "^3.14.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/mdurl": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz",
|
||||
"integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g=="
|
||||
},
|
||||
"node_modules/mime-db": {
|
||||
"version": "1.52.0",
|
||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
||||
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/mime-types": {
|
||||
"version": "2.1.35",
|
||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
|
||||
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
||||
"dependencies": {
|
||||
"mime-db": "1.52.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/mobiledoc-dom-renderer": {
|
||||
"version": "0.7.0",
|
||||
"resolved": "https://registry.npmjs.org/mobiledoc-dom-renderer/-/mobiledoc-dom-renderer-0.7.0.tgz",
|
||||
"integrity": "sha512-A+gT6D4Ru3DKY7ZYOBRORmwhRJ7rDj2vy75D2dWuZS5NgX0mCmGs0yN7qs48YlxvfCif8RFpYsaaPg6Kc3MdJg=="
|
||||
},
|
||||
"node_modules/mobiledoc-kit": {
|
||||
"version": "0.14.0",
|
||||
"resolved": "https://registry.npmjs.org/mobiledoc-kit/-/mobiledoc-kit-0.14.0.tgz",
|
||||
"integrity": "sha512-D/wsJmbFs8vMr1FXlTpzc7FnyFCpNcTTrT1BQNcVg2zfDVZsywXKA9det2zf5C9MkuohHhoO94RUUIT9rIZMMQ==",
|
||||
"dependencies": {
|
||||
"mobiledoc-dom-renderer": "0.7.0",
|
||||
"mobiledoc-text-renderer": "0.4.1"
|
||||
}
|
||||
},
|
||||
"node_modules/mobiledoc-text-renderer": {
|
||||
"version": "0.4.1",
|
||||
"resolved": "https://registry.npmjs.org/mobiledoc-text-renderer/-/mobiledoc-text-renderer-0.4.1.tgz",
|
||||
"integrity": "sha512-lTu8zCjcBJPRMaHeqoS1vECw3hczxQQjdmqtGSKa3yGHIuozmcWqOGPGrrIcsc4W018dAG/nPdsJiUp+9UkWGw=="
|
||||
},
|
||||
"node_modules/ms": {
|
||||
"version": "2.1.3",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
||||
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
|
||||
},
|
||||
"node_modules/safe-buffer": {
|
||||
"version": "5.2.1",
|
||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
||||
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/feross"
|
||||
},
|
||||
{
|
||||
"type": "patreon",
|
||||
"url": "https://www.patreon.com/feross"
|
||||
},
|
||||
{
|
||||
"type": "consulting",
|
||||
"url": "https://feross.org/support"
|
||||
}
|
||||
]
|
||||
},
|
||||
"node_modules/semver": {
|
||||
"version": "5.7.1",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
|
||||
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
|
||||
"bin": {
|
||||
"semver": "bin/semver"
|
||||
}
|
||||
},
|
||||
"node_modules/source-map": {
|
||||
"version": "0.6.1",
|
||||
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
||||
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/source-map-support": {
|
||||
"version": "0.5.21",
|
||||
"resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",
|
||||
"integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"buffer-from": "^1.0.0",
|
||||
"source-map": "^0.6.0"
|
||||
}
|
||||
},
|
||||
"node_modules/sprintf-js": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
|
||||
"integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g=="
|
||||
},
|
||||
"node_modules/ts-node": {
|
||||
"version": "9.1.1",
|
||||
"resolved": "https://registry.npmjs.org/ts-node/-/ts-node-9.1.1.tgz",
|
||||
"integrity": "sha512-hPlt7ZACERQGf03M253ytLY3dHbGNGrAq9qIHWUY9XHYl1z7wYngSr3OQ5xmui8o2AaxsONxIzjafLUiWBo1Fg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"arg": "^4.1.0",
|
||||
"create-require": "^1.1.0",
|
||||
"diff": "^4.0.1",
|
||||
"make-error": "^1.1.1",
|
||||
"source-map-support": "^0.5.17",
|
||||
"yn": "3.1.1"
|
||||
},
|
||||
"bin": {
|
||||
"ts-node": "dist/bin.js",
|
||||
"ts-node-script": "dist/bin-script.js",
|
||||
"ts-node-transpile-only": "dist/bin-transpile.js",
|
||||
"ts-script": "dist/bin-script-deprecated.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": ">=2.7"
|
||||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "4.7.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.3.tgz",
|
||||
"integrity": "sha512-WOkT3XYvrpXx4vMMqlD+8R8R37fZkjyLGlxavMc4iB8lrl8L0DeTcHbYgw/v0N/z9wAFsgBhcsF0ruoySS22mA==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/uc.micro": {
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz",
|
||||
"integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA=="
|
||||
},
|
||||
"node_modules/yn": {
|
||||
"version": "3.1.1",
|
||||
"resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",
|
||||
"integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@tryghost/admin-api": {
|
||||
"version": "1.13.0",
|
||||
"resolved": "https://registry.npmjs.org/@tryghost/admin-api/-/admin-api-1.13.0.tgz",
|
||||
"integrity": "sha512-/vAS7o04evvxfEQwI2gWR7kjhzPLoZKUanSEQaE8Ur8EaPaPdhz9tA4R9pjmLf63hoyaBgKMcv0G5UIPQ9M9CA==",
|
||||
"requires": {
|
||||
"axios": "^0.27.0",
|
||||
"form-data": "^4.0.0",
|
||||
"jsonwebtoken": "^8.4.0"
|
||||
}
|
||||
},
|
||||
"@types/linkify-it": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-3.0.2.tgz",
|
||||
"integrity": "sha512-HZQYqbiFVWufzCwexrvh694SOim8z2d+xJl5UNamcvQFejLY/2YUtzXHYi3cHdI7PMlS8ejH2slRAOJQ32aNbA=="
|
||||
},
|
||||
"@types/markdown-it": {
|
||||
"version": "12.2.3",
|
||||
"resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-12.2.3.tgz",
|
||||
"integrity": "sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ==",
|
||||
"requires": {
|
||||
"@types/linkify-it": "*",
|
||||
"@types/mdurl": "*"
|
||||
}
|
||||
},
|
||||
"@types/mdurl": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-1.0.2.tgz",
|
||||
"integrity": "sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA=="
|
||||
},
|
||||
"@types/node": {
|
||||
"version": "14.18.21",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.21.tgz",
|
||||
"integrity": "sha512-x5W9s+8P4XteaxT/jKF0PSb7XEvo5VmqEWgsMlyeY4ZlLK8I6aH6g5TPPyDlLAep+GYf4kefb7HFyc7PAO3m+Q==",
|
||||
"dev": true
|
||||
},
|
||||
"arg": {
|
||||
"version": "4.1.3",
|
||||
"resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz",
|
||||
"integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==",
|
||||
"dev": true
|
||||
},
|
||||
"argparse": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
|
||||
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="
|
||||
},
|
||||
"asynckit": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
||||
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
|
||||
},
|
||||
"axios": {
|
||||
"version": "0.27.2",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz",
|
||||
"integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==",
|
||||
"requires": {
|
||||
"follow-redirects": "^1.14.9",
|
||||
"form-data": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"buffer-equal-constant-time": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
|
||||
"integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA=="
|
||||
},
|
||||
"buffer-from": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
|
||||
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
|
||||
"dev": true
|
||||
},
|
||||
"combined-stream": {
|
||||
"version": "1.0.8",
|
||||
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
|
||||
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
|
||||
"requires": {
|
||||
"delayed-stream": "~1.0.0"
|
||||
}
|
||||
},
|
||||
"create-require": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",
|
||||
"integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==",
|
||||
"dev": true
|
||||
},
|
||||
"delayed-stream": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
||||
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="
|
||||
},
|
||||
"detect-newline": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz",
|
||||
"integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA=="
|
||||
},
|
||||
"diff": {
|
||||
"version": "4.0.2",
|
||||
"resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",
|
||||
"integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==",
|
||||
"dev": true
|
||||
},
|
||||
"ecdsa-sig-formatter": {
|
||||
"version": "1.0.11",
|
||||
"resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",
|
||||
"integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==",
|
||||
"requires": {
|
||||
"safe-buffer": "^5.0.1"
|
||||
}
|
||||
},
|
||||
"entities": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/entities/-/entities-3.0.1.tgz",
|
||||
"integrity": "sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q=="
|
||||
},
|
||||
"esprima": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
|
||||
"integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A=="
|
||||
},
|
||||
"follow-redirects": {
|
||||
"version": "1.15.1",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.1.tgz",
|
||||
"integrity": "sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA=="
|
||||
},
|
||||
"form-data": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
|
||||
"integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
|
||||
"requires": {
|
||||
"asynckit": "^0.4.0",
|
||||
"combined-stream": "^1.0.8",
|
||||
"mime-types": "^2.1.12"
|
||||
}
|
||||
},
|
||||
"fs": {
|
||||
"version": "0.0.1-security",
|
||||
"resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz",
|
||||
"integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w=="
|
||||
},
|
||||
"js-yaml": {
|
||||
"version": "3.14.1",
|
||||
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
|
||||
"integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
|
||||
"requires": {
|
||||
"argparse": "^1.0.7",
|
||||
"esprima": "^4.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"argparse": {
|
||||
"version": "1.0.10",
|
||||
"resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
|
||||
"integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
|
||||
"requires": {
|
||||
"sprintf-js": "~1.0.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"jsonwebtoken": {
|
||||
"version": "8.5.1",
|
||||
"resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz",
|
||||
"integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==",
|
||||
"requires": {
|
||||
"jws": "^3.2.2",
|
||||
"lodash.includes": "^4.3.0",
|
||||
"lodash.isboolean": "^3.0.3",
|
||||
"lodash.isinteger": "^4.0.4",
|
||||
"lodash.isnumber": "^3.0.3",
|
||||
"lodash.isplainobject": "^4.0.6",
|
||||
"lodash.isstring": "^4.0.1",
|
||||
"lodash.once": "^4.0.0",
|
||||
"ms": "^2.1.1",
|
||||
"semver": "^5.6.0"
|
||||
}
|
||||
},
|
||||
"jwa": {
|
||||
"version": "1.4.1",
|
||||
"resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz",
|
||||
"integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==",
|
||||
"requires": {
|
||||
"buffer-equal-constant-time": "1.0.1",
|
||||
"ecdsa-sig-formatter": "1.0.11",
|
||||
"safe-buffer": "^5.0.1"
|
||||
}
|
||||
},
|
||||
"jws": {
|
||||
"version": "3.2.2",
|
||||
"resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz",
|
||||
"integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==",
|
||||
"requires": {
|
||||
"jwa": "^1.4.1",
|
||||
"safe-buffer": "^5.0.1"
|
||||
}
|
||||
},
|
||||
"linkify-it": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-4.0.1.tgz",
|
||||
"integrity": "sha512-C7bfi1UZmoj8+PQx22XyeXCuBlokoyWQL5pWSP+EI6nzRylyThouddufc2c1NDIcP9k5agmN9fLpA7VNJfIiqw==",
|
||||
"requires": {
|
||||
"uc.micro": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"lodash.includes": {
|
||||
"version": "4.3.0",
|
||||
"resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz",
|
||||
"integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w=="
|
||||
},
|
||||
"lodash.isboolean": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz",
|
||||
"integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg=="
|
||||
},
|
||||
"lodash.isinteger": {
|
||||
"version": "4.0.4",
|
||||
"resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz",
|
||||
"integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA=="
|
||||
},
|
||||
"lodash.isnumber": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz",
|
||||
"integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw=="
|
||||
},
|
||||
"lodash.isplainobject": {
|
||||
"version": "4.0.6",
|
||||
"resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",
|
||||
"integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA=="
|
||||
},
|
||||
"lodash.isstring": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz",
|
||||
"integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw=="
|
||||
},
|
||||
"lodash.once": {
|
||||
"version": "4.1.1",
|
||||
"resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz",
|
||||
"integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg=="
|
||||
},
|
||||
"make-error": {
|
||||
"version": "1.3.6",
|
||||
"resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
|
||||
"integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",
|
||||
"dev": true
|
||||
},
|
||||
"markdown-it": {
|
||||
"version": "13.0.1",
|
||||
"resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-13.0.1.tgz",
|
||||
"integrity": "sha512-lTlxriVoy2criHP0JKRhO2VDG9c2ypWCsT237eDiLqi09rmbKoUetyGHq2uOIRoRS//kfoJckS0eUzzkDR+k2Q==",
|
||||
"requires": {
|
||||
"argparse": "^2.0.1",
|
||||
"entities": "~3.0.1",
|
||||
"linkify-it": "^4.0.1",
|
||||
"mdurl": "^1.0.1",
|
||||
"uc.micro": "^1.0.5"
|
||||
}
|
||||
},
|
||||
"markdown-it-github-preamble": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/markdown-it-github-preamble/-/markdown-it-github-preamble-1.0.0.tgz",
|
||||
"integrity": "sha512-zm5rxyvyezO/HfdYuR/NxQI8tC5oT4kvwkKMiei9SzjFSAIoBV63+ZGAT3ToU3ksQNuxovZeNCJtIfvS7BPerg==",
|
||||
"requires": {
|
||||
"js-yaml": "^3.9.0"
|
||||
}
|
||||
},
|
||||
"markdown-it-multimd-table": {
|
||||
"version": "4.1.3",
|
||||
"resolved": "https://registry.npmjs.org/markdown-it-multimd-table/-/markdown-it-multimd-table-4.1.3.tgz",
|
||||
"integrity": "sha512-cXvJ+l8dMRmUZLrn34W/8tfLYjC40R7S0wRwcb95emuvQ3uiWNf9vB/IyeRh6XqEq95eXh70+UDNZ29qcOI+Dg=="
|
||||
},
|
||||
"markdown-yaml-metadata-parser": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/markdown-yaml-metadata-parser/-/markdown-yaml-metadata-parser-3.0.0.tgz",
|
||||
"integrity": "sha512-gRxEfuGIpb9pS1nQyASx3+l99e1hyTaK/+zDuvGcZJvr+OlksZ5O+q7opPcQP25j/z7NoOYEp17Lxgq5Sn4vDg==",
|
||||
"requires": {
|
||||
"detect-newline": "^3.1.0",
|
||||
"js-yaml": "^3.14.1"
|
||||
}
|
||||
},
|
||||
"mdurl": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz",
|
||||
"integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g=="
|
||||
},
|
||||
"mime-db": {
|
||||
"version": "1.52.0",
|
||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
||||
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="
|
||||
},
|
||||
"mime-types": {
|
||||
"version": "2.1.35",
|
||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
|
||||
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
||||
"requires": {
|
||||
"mime-db": "1.52.0"
|
||||
}
|
||||
},
|
||||
"mobiledoc-dom-renderer": {
|
||||
"version": "0.7.0",
|
||||
"resolved": "https://registry.npmjs.org/mobiledoc-dom-renderer/-/mobiledoc-dom-renderer-0.7.0.tgz",
|
||||
"integrity": "sha512-A+gT6D4Ru3DKY7ZYOBRORmwhRJ7rDj2vy75D2dWuZS5NgX0mCmGs0yN7qs48YlxvfCif8RFpYsaaPg6Kc3MdJg=="
|
||||
},
|
||||
"mobiledoc-kit": {
|
||||
"version": "0.14.0",
|
||||
"resolved": "https://registry.npmjs.org/mobiledoc-kit/-/mobiledoc-kit-0.14.0.tgz",
|
||||
"integrity": "sha512-D/wsJmbFs8vMr1FXlTpzc7FnyFCpNcTTrT1BQNcVg2zfDVZsywXKA9det2zf5C9MkuohHhoO94RUUIT9rIZMMQ==",
|
||||
"requires": {
|
||||
"mobiledoc-dom-renderer": "0.7.0",
|
||||
"mobiledoc-text-renderer": "0.4.1"
|
||||
}
|
||||
},
|
||||
"mobiledoc-text-renderer": {
|
||||
"version": "0.4.1",
|
||||
"resolved": "https://registry.npmjs.org/mobiledoc-text-renderer/-/mobiledoc-text-renderer-0.4.1.tgz",
|
||||
"integrity": "sha512-lTu8zCjcBJPRMaHeqoS1vECw3hczxQQjdmqtGSKa3yGHIuozmcWqOGPGrrIcsc4W018dAG/nPdsJiUp+9UkWGw=="
|
||||
},
|
||||
"ms": {
|
||||
"version": "2.1.3",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
||||
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
|
||||
},
|
||||
"safe-buffer": {
|
||||
"version": "5.2.1",
|
||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
||||
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
|
||||
},
|
||||
"semver": {
|
||||
"version": "5.7.1",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
|
||||
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ=="
|
||||
},
|
||||
"source-map": {
|
||||
"version": "0.6.1",
|
||||
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
||||
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
||||
"dev": true
|
||||
},
|
||||
"source-map-support": {
|
||||
"version": "0.5.21",
|
||||
"resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",
|
||||
"integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"buffer-from": "^1.0.0",
|
||||
"source-map": "^0.6.0"
|
||||
}
|
||||
},
|
||||
"sprintf-js": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
|
||||
"integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g=="
|
||||
},
|
||||
"ts-node": {
|
||||
"version": "9.1.1",
|
||||
"resolved": "https://registry.npmjs.org/ts-node/-/ts-node-9.1.1.tgz",
|
||||
"integrity": "sha512-hPlt7ZACERQGf03M253ytLY3dHbGNGrAq9qIHWUY9XHYl1z7wYngSr3OQ5xmui8o2AaxsONxIzjafLUiWBo1Fg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"arg": "^4.1.0",
|
||||
"create-require": "^1.1.0",
|
||||
"diff": "^4.0.1",
|
||||
"make-error": "^1.1.1",
|
||||
"source-map-support": "^0.5.17",
|
||||
"yn": "3.1.1"
|
||||
}
|
||||
},
|
||||
"typescript": {
|
||||
"version": "4.7.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.3.tgz",
|
||||
"integrity": "sha512-WOkT3XYvrpXx4vMMqlD+8R8R37fZkjyLGlxavMc4iB8lrl8L0DeTcHbYgw/v0N/z9wAFsgBhcsF0ruoySS22mA==",
|
||||
"dev": true
|
||||
},
|
||||
"uc.micro": {
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz",
|
||||
"integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA=="
|
||||
},
|
||||
"yn": {
|
||||
"version": "3.1.1",
|
||||
"resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",
|
||||
"integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
}
|
43
package.json
Normal file
43
package.json
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
"name": "ghost-md",
|
||||
"version": "1.0.0",
|
||||
"main": "./dist/index.js",
|
||||
"files": [
|
||||
"/dist"
|
||||
],
|
||||
"types": "./dist/__types__",
|
||||
"engines": {
|
||||
"node": ">=12.10.0"
|
||||
},
|
||||
"engineStrict": true,
|
||||
"scripts": {
|
||||
"build": "ts-node ./tasks/run-build.ts",
|
||||
"build:dev": "ts-node --project ./tsconfig-dev.json ./tasks/run-build.ts -d",
|
||||
"start": "node ./dist/index.js",
|
||||
"sg": "npm run build && node ./dist/GhostAPI.js",
|
||||
"mm": "npm run build && node ./dist/MakeMobiledoc.js",
|
||||
"md": "npm run build && node ./dist/Markdown.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": {
|
||||
"name": "Laur Ivan"
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
"devDependencies": {
|
||||
"@types/node": "^14.14.31",
|
||||
"ts-node": "^9.1.1",
|
||||
"typescript": "^4.3.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tryghost/admin-api": "^1.13.0",
|
||||
"@types/markdown-it": "^12.2.3",
|
||||
"axios": "^0.27.2",
|
||||
"fs": "^0.0.1-security",
|
||||
"jsonwebtoken": "^8.5.1",
|
||||
"markdown-it": "^13.0.1",
|
||||
"markdown-it-github-preamble": "^1.0.0",
|
||||
"markdown-it-multimd-table": "^4.1.3",
|
||||
"markdown-yaml-metadata-parser": "^3.0.0",
|
||||
"mobiledoc-kit": "^0.14.0"
|
||||
}
|
||||
}
|
33
src/GhostAPI.ts
Normal file
33
src/GhostAPI.ts
Normal file
@ -0,0 +1,33 @@
|
||||
// The admin API client is the easiest way to use the API
|
||||
const GhostAdminAPI = require("@tryghost/admin-api");
|
||||
import fs from "fs";
|
||||
|
||||
// Configure the client
|
||||
const api = new GhostAdminAPI({
|
||||
url: "http://localhost:3001",
|
||||
// Admin API key goes here
|
||||
key: "62ac6f5ab1479d0001082bd4:73341f843a5be78647c6f7e47d43d6cb09ec323df6d5706915df4685b3d46ce7",
|
||||
version: "v4.0",
|
||||
});
|
||||
|
||||
const command: number = 1; // create
|
||||
|
||||
// List posts
|
||||
switch (command) {
|
||||
case 0:
|
||||
api.posts
|
||||
.browse()
|
||||
.then((response: any) => console.log(JSON.stringify(response)))
|
||||
.catch((error: any) => console.error(error));
|
||||
break;
|
||||
case 1:
|
||||
const post = fs.readFileSync("./src/data/draftpost.json", {
|
||||
encoding: "utf8",
|
||||
flag: "r",
|
||||
});
|
||||
api.posts
|
||||
.add(JSON.parse(post))
|
||||
.then((response: any) => console.log(JSON.stringify(response)))
|
||||
.catch((error: any) => console.error(error));
|
||||
break;
|
||||
}
|
15
src/Greeter.ts
Normal file
15
src/Greeter.ts
Normal file
@ -0,0 +1,15 @@
|
||||
class Greeter {
|
||||
private readonly userName: string;
|
||||
private readonly projectName: string;
|
||||
|
||||
constructor (userName: string, projectName: string) {
|
||||
this.userName = userName
|
||||
this.projectName = projectName
|
||||
}
|
||||
|
||||
sayHello (): void {
|
||||
console.log(`Hi ${this.userName},\nYour project ${this.projectName} is ready to develop.\nHave a nice coding!`)
|
||||
}
|
||||
}
|
||||
|
||||
export default Greeter
|
53
src/MakeMobiledoc.ts
Normal file
53
src/MakeMobiledoc.ts
Normal file
@ -0,0 +1,53 @@
|
||||
import { PostNodeBuilder, Renderer } from "mobiledoc-kit";
|
||||
|
||||
const getMethods = (obj: any) => {
|
||||
let properties = new Set();
|
||||
let currentObj = obj;
|
||||
do {
|
||||
Object.getOwnPropertyNames(currentObj).map((item) => properties.add(item));
|
||||
} while ((currentObj = Object.getPrototypeOf(currentObj)));
|
||||
return [...properties.keys()].filter(
|
||||
(item: any) => typeof obj[item] === "function"
|
||||
);
|
||||
};
|
||||
|
||||
const builder = new PostNodeBuilder();
|
||||
const renderer = Renderer;
|
||||
|
||||
const post = builder.createPost([]);
|
||||
console.log(getMethods(post));
|
||||
console.log(post);
|
||||
console.log(post.valueOf());
|
||||
|
||||
function buildFromText() {
|
||||
//let renderElement = new HTMLElement();
|
||||
|
||||
//let beforeRender = function () {};
|
||||
const builder = new PostNodeBuilder();
|
||||
let strong = builder.createMarkup("strong");
|
||||
let marker1 = builder.createMarker("Hi ", [strong]);
|
||||
let marker2 = builder.createMarker(" Bye", [strong]);
|
||||
let cardSection = builder.createCardSection("markdown", {
|
||||
markdown: "```js\nlet value = 0\n```",
|
||||
});
|
||||
//let atom = builder.createAtom("mention", "@bob", { id: 42 }, [strong]);
|
||||
//let section = builder.createMarkupSection("p", [marker1, atom, marker2]);
|
||||
let section = builder.createMarkupSection("p", [marker1, marker2]);
|
||||
let post = builder.createPost([section, cardSection]);
|
||||
//post.sections.append(section);
|
||||
let mobiledoc = renderer.render(post, "0.3.1");
|
||||
let editorOptions: any = {};
|
||||
editorOptions.mobiledoc = mobiledoc;
|
||||
console.log("------------------------------------");
|
||||
console.log(
|
||||
JSON.stringify({
|
||||
title: "A post",
|
||||
mobiledoc: `${JSON.stringify(mobiledoc)}`,
|
||||
status: "draft",
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
//const m1 = builder.createMarkup("strong");
|
||||
|
||||
buildFromText();
|
110
src/Markdown.ts
Normal file
110
src/Markdown.ts
Normal file
@ -0,0 +1,110 @@
|
||||
/**
|
||||
* Load a file, parse it through markdonw-it and display its components
|
||||
*/
|
||||
|
||||
import fs from "fs";
|
||||
import MarkdownIt from "markdown-it";
|
||||
import Token from "markdown-it/lib/token";
|
||||
import metadataParser from "markdown-yaml-metadata-parser";
|
||||
|
||||
//const tabler = require("markdown-it-multimd-table");
|
||||
|
||||
interface Stack {
|
||||
tag: string;
|
||||
meta: any;
|
||||
}
|
||||
|
||||
interface Process {
|
||||
content: string;
|
||||
token: Token;
|
||||
}
|
||||
|
||||
function processBlock(buffer: string[], t: Token): Process {
|
||||
let tbuf: string[] = [];
|
||||
if (t.map != null)
|
||||
for (let i = t.map[0]; i < t.map[1]; i++) tbuf.push(buffer[i]);
|
||||
|
||||
return {
|
||||
content: tbuf.join("\n"),
|
||||
token: t,
|
||||
};
|
||||
}
|
||||
|
||||
let v: string = fs.readFileSync("./src/data/markdown-it-example.md", {
|
||||
encoding: "utf8",
|
||||
flag: "r",
|
||||
});
|
||||
|
||||
const parsed_md = metadataParser(v);
|
||||
|
||||
var src = MarkdownIt();
|
||||
//src.use(tabler);
|
||||
|
||||
//import markdownItGithubPreamble from "markdown-it-github-preamble";
|
||||
//src.use(markdownItGithubPreamble);
|
||||
let lines: string[] = parsed_md.content.split("\n");
|
||||
let tokens: Token[] = src.parse(parsed_md.content, { references: {} });
|
||||
let stack: Stack[] = [];
|
||||
|
||||
//let tableBuffer: string[] = [];
|
||||
let isTable = false;
|
||||
|
||||
//console.log(v);
|
||||
tokens.forEach((value: Token) => {
|
||||
let components: string[] = value.type.split("_");
|
||||
let action: string | undefined = components.pop();
|
||||
let name = components.join("_");
|
||||
switch (action) {
|
||||
case "open":
|
||||
if (name === "table") isTable = true;
|
||||
stack.push({ tag: value.tag, meta: value.meta } as never);
|
||||
if (isTable) {
|
||||
processBlock(lines, value);
|
||||
}
|
||||
break;
|
||||
case "close":
|
||||
if (name === "table") isTable = false;
|
||||
stack.pop();
|
||||
break;
|
||||
case "fence":
|
||||
processBlock(lines, value);
|
||||
break;
|
||||
case "inline":
|
||||
let t: string = "";
|
||||
let m: string = "";
|
||||
|
||||
stack.forEach((value) => {
|
||||
t += "-" + value.tag;
|
||||
m += ">" + JSON.stringify(value.meta);
|
||||
});
|
||||
if (isTable) {
|
||||
console.log("++++", JSON.stringify(value));
|
||||
} else {
|
||||
console.log(t, m, value.content);
|
||||
}
|
||||
break;
|
||||
// TODO: Make the 'FENCE' tag too!
|
||||
default:
|
||||
console.log("ERROR", components, action);
|
||||
//throw new Error("Con't know tag" + action);
|
||||
}
|
||||
/*
|
||||
console.log(
|
||||
value.level,
|
||||
"".padEnd(value.level, " "),
|
||||
JSON.stringify({
|
||||
type: value.type,
|
||||
//level: value.level,
|
||||
markup: value.markup,
|
||||
//meta: value.meta,
|
||||
content: value.content,
|
||||
block: value.block,
|
||||
//map: value.map,
|
||||
//tag: value.tag,
|
||||
//nesting: value.nesting,
|
||||
info: value.info,
|
||||
//children: value.children,
|
||||
})
|
||||
);
|
||||
*/
|
||||
});
|
37
src/data/basic.md
Normal file
37
src/data/basic.md
Normal file
@ -0,0 +1,37 @@
|
||||
---
|
||||
title: Basic markdown file
|
||||
author: Laur IVAN
|
||||
version: 1.0
|
||||
date: "2022-06-24"
|
||||
license: "[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)"
|
||||
---
|
||||
|
||||
# H1 header
|
||||
|
||||
## H2 header
|
||||
|
||||
### H3 header
|
||||
|
||||
This is a paragraph
|
||||
|
||||
This is another paragraph.
|
||||
With multipine.
|
||||
|
||||
- Bullet
|
||||
- Bullet
|
||||
- Bullet
|
||||
|
||||
1. Ordered list
|
||||
1. Ordered list
|
||||
1. Ordered list
|
||||
|
||||
```json
|
||||
{
|
||||
"code": "if(true) then true else false"
|
||||
}
|
||||
```
|
||||
|
||||
| Table | Table |
|
||||
+---+---+
|
||||
| one | two |
|
||||
| three | four |
|
6
src/data/draftpost.json
Normal file
6
src/data/draftpost.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"title": "A post",
|
||||
"mobiledoc": "{\"version\":\"0.3.1\",\"atoms\":[],\"cards\":[[\"markdown\",{\"markdown\":\"```js\\nlet value = 0\\n```\"}]],\"markups\":[[\"strong\"]],\"sections\":[[1,\"p\",[[0,[0],0,\"Hi \"],[0,[],1,\" Bye\"]]],[10,0]]}",
|
||||
"status": "draft",
|
||||
"authors": ["laur.ivan@gmail.com"]
|
||||
}
|
6
src/data/draftpost_example.json
Normal file
6
src/data/draftpost_example.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"title": "A post",
|
||||
"slug": "a-post",
|
||||
"mobiledoc": "{\"version\":\"0.3.1\",\"atoms\":[],\"cards\":[],\"markups\":[],\"sections\":[[1,\"p\",[[0,[],0,\"👋 Welcome, it's great to have you here.\"]]]]}",
|
||||
"status": "published"
|
||||
}
|
3
src/data/drafttitlepost.json
Normal file
3
src/data/drafttitlepost.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"title": "A post"
|
||||
}
|
450
src/data/ghost-1.json
Normal file
450
src/data/ghost-1.json
Normal file
@ -0,0 +1,450 @@
|
||||
[
|
||||
{
|
||||
"id": "62b72926609faa00017b7f44",
|
||||
"uuid": "948abc50-4233-4c29-8429-3fa75eba6610",
|
||||
"title": "This is the title",
|
||||
"slug": "this-is-the-title",
|
||||
"mobiledoc": "{\"version\":\"0.3.1\",\"atoms\":[],\"cards\":[],\"markups\":[[\"strong\"],[\"em\"]],\"sections\":[[1,\"p\",[[0,[],0,\"I am \"],[0,[0],1,\"writing \"],[0,[],0,\"my \"],[0,[1],1,\"post @laur\"]]]],\"ghostVersion\":\"4.0\"}",
|
||||
"comment_id": "62b72926609faa00017b7f44",
|
||||
"feature_image": null,
|
||||
"featured": false,
|
||||
"status": "published",
|
||||
"visibility": "public",
|
||||
"created_at": "2022-06-25T15:26:30.000Z",
|
||||
"updated_at": "2022-06-25T15:27:08.000Z",
|
||||
"published_at": "2022-06-25T15:27:08.000Z",
|
||||
"custom_excerpt": null,
|
||||
"codeinjection_head": null,
|
||||
"codeinjection_foot": null,
|
||||
"custom_template": null,
|
||||
"canonical_url": null,
|
||||
"tags": [],
|
||||
"authors": [
|
||||
{
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-25T15:27:07.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-25T15:27:07.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
}
|
||||
],
|
||||
"tiers": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29c",
|
||||
"name": "Free",
|
||||
"slug": "free",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "free",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
},
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29d",
|
||||
"name": "Laur's blog",
|
||||
"slug": "default-product",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "paid",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:29:05.000Z"
|
||||
}
|
||||
],
|
||||
"primary_author": {
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-25T15:27:07.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-25T15:27:07.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
},
|
||||
"primary_tag": null,
|
||||
"email_segment": "all",
|
||||
"url": "http://localhost:2368/this-is-the-title/",
|
||||
"excerpt": "I am writing my post @laur",
|
||||
"og_image": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"twitter_image": null,
|
||||
"twitter_title": null,
|
||||
"twitter_description": null,
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"email_subject": null,
|
||||
"frontmatter": null,
|
||||
"feature_image_alt": null,
|
||||
"feature_image_caption": null,
|
||||
"email_only": false,
|
||||
"email": null,
|
||||
"newsletter": null
|
||||
},
|
||||
{
|
||||
"id": "62960a928b281d00012eb478",
|
||||
"uuid": "e50c8ca6-055d-483e-ba27-bbb3bc2f854a",
|
||||
"title": "I really want this",
|
||||
"slug": "i-really-want-this",
|
||||
"mobiledoc": "{\"version\":\"0.3.1\",\"atoms\":[],\"cards\":[[\"markdown\",{\"markdown\":\"## I am very markdowny\"}],[\"markdown\",{\"markdown\":\"```json\\n{\\n \\\"a\\\": true\\n}\\n```\\n\\n| one | two | three | four | five |\\n|---|---|---|---|---|\\n| row | | | | |\\n| row | | | | |\\n| row | | | | row |\"}]],\"markups\":[],\"sections\":[[1,\"p\",[[0,[],0,\"Some markdown to be put here\"]]],[10,0],[10,1],[1,\"p\",[]]],\"ghostVersion\":\"4.0\"}",
|
||||
"comment_id": "62960a928b281d00012eb478",
|
||||
"feature_image": null,
|
||||
"featured": false,
|
||||
"status": "published",
|
||||
"visibility": "public",
|
||||
"created_at": "2022-05-31T12:31:14.000Z",
|
||||
"updated_at": "2022-06-15T18:15:52.000Z",
|
||||
"published_at": "2022-06-15T18:13:26.000Z",
|
||||
"custom_excerpt": null,
|
||||
"codeinjection_head": null,
|
||||
"codeinjection_foot": null,
|
||||
"custom_template": null,
|
||||
"canonical_url": null,
|
||||
"tags": [],
|
||||
"authors": [
|
||||
{
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-25T15:27:07.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-25T15:27:07.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
}
|
||||
],
|
||||
"tiers": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29c",
|
||||
"name": "Free",
|
||||
"slug": "free",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "free",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
},
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29d",
|
||||
"name": "Laur's blog",
|
||||
"slug": "default-product",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "paid",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:29:05.000Z"
|
||||
}
|
||||
],
|
||||
"primary_author": {
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-25T15:27:07.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-25T15:27:07.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
},
|
||||
"primary_tag": null,
|
||||
"email_segment": "all",
|
||||
"url": "http://localhost:2368/i-really-want-this/",
|
||||
"excerpt": "Some markdown to be put here\n\n\nI am very markdowny\n\n\n{\n \"a\": true\n}\n\n\n\n\n\n\none\ntwo\nthree\nfour\nfive\n\n\n\n\nrow\n\n\n\n\n\n\nrow\n\n\n\n\n\n\nrow\n\n\n\nrow\n\n\n\n",
|
||||
"og_image": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"twitter_image": null,
|
||||
"twitter_title": null,
|
||||
"twitter_description": null,
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"email_subject": null,
|
||||
"frontmatter": null,
|
||||
"feature_image_alt": null,
|
||||
"feature_image_caption": null,
|
||||
"email_only": false,
|
||||
"email": null,
|
||||
"newsletter": null
|
||||
},
|
||||
{
|
||||
"id": "629609ae8b281d00012eb300",
|
||||
"uuid": "49d5c2d3-2aa8-4ea9-9682-47da5c4b73fd",
|
||||
"title": "Coming really soon",
|
||||
"slug": "coming-soon",
|
||||
"mobiledoc": "{\"version\":\"0.3.1\",\"atoms\":[],\"cards\":[],\"markups\":[[\"a\",[\"href\",\"#/portal/\"]]],\"sections\":[[1,\"p\",[[0,[],0,\"This is Laur's blog, a brand new site by Laur Ivan that's just getting started. Things will be up and running here shortly, but you can \"],[0,[0],1,\"subscribe\"],[0,[],0,\" in the meantime if you'd like to stay up to date and receive emails when new content is published!\"]]]],\"ghostVersion\":\"4.0\"}",
|
||||
"comment_id": "629609ae8b281d00012eb300",
|
||||
"feature_image": "https://static.ghost.org/v4.0.0/images/feature-image.jpg",
|
||||
"featured": false,
|
||||
"status": "published",
|
||||
"visibility": "public",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:30:09.000Z",
|
||||
"published_at": "2022-05-31T12:27:26.000Z",
|
||||
"custom_excerpt": null,
|
||||
"codeinjection_head": null,
|
||||
"codeinjection_foot": null,
|
||||
"custom_template": null,
|
||||
"canonical_url": null,
|
||||
"tags": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29f",
|
||||
"name": "News",
|
||||
"slug": "news",
|
||||
"description": null,
|
||||
"feature_image": null,
|
||||
"visibility": "public",
|
||||
"og_image": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"twitter_image": null,
|
||||
"twitter_title": null,
|
||||
"twitter_description": null,
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"codeinjection_head": null,
|
||||
"codeinjection_foot": null,
|
||||
"canonical_url": null,
|
||||
"accent_color": null,
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:30:09.000Z",
|
||||
"url": "http://localhost:2368/tag/news/"
|
||||
}
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-25T15:27:07.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-25T15:27:07.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
}
|
||||
],
|
||||
"tiers": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29c",
|
||||
"name": "Free",
|
||||
"slug": "free",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "free",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
},
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29d",
|
||||
"name": "Laur's blog",
|
||||
"slug": "default-product",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "paid",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:29:05.000Z"
|
||||
}
|
||||
],
|
||||
"primary_author": {
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-25T15:27:07.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-25T15:27:07.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
},
|
||||
"primary_tag": {
|
||||
"id": "629609ae8b281d00012eb29f",
|
||||
"name": "News",
|
||||
"slug": "news",
|
||||
"description": null,
|
||||
"feature_image": null,
|
||||
"visibility": "public",
|
||||
"og_image": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"twitter_image": null,
|
||||
"twitter_title": null,
|
||||
"twitter_description": null,
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"codeinjection_head": null,
|
||||
"codeinjection_foot": null,
|
||||
"canonical_url": null,
|
||||
"accent_color": null,
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:30:09.000Z",
|
||||
"url": "http://localhost:2368/tag/news/"
|
||||
},
|
||||
"email_segment": "all",
|
||||
"url": "http://localhost:2368/coming-soon/",
|
||||
"excerpt": "This is Laur's blog, a brand new site by Laur Ivan that's just getting started. Things will be up and running here shortly, but you can subscribe in the meantime if you'd like to stay up to date and receive emails when new content is published!",
|
||||
"og_image": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"twitter_image": null,
|
||||
"twitter_title": null,
|
||||
"twitter_description": null,
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"email_subject": null,
|
||||
"frontmatter": null,
|
||||
"feature_image_alt": null,
|
||||
"feature_image_caption": null,
|
||||
"email_only": false,
|
||||
"email": null,
|
||||
"newsletter": null
|
||||
}
|
||||
]
|
718
src/data/ghost-2.json
Normal file
718
src/data/ghost-2.json
Normal file
@ -0,0 +1,718 @@
|
||||
[
|
||||
{
|
||||
"id": "62b80d5a5fb4ca000119c888",
|
||||
"uuid": "0ab9c273-cd04-4d44-952a-fa1fc82b7fea",
|
||||
"title": "A post",
|
||||
"slug": "a-post-2",
|
||||
"mobiledoc": "{\"version\":\"0.3.1\",\"atoms\":[],\"cards\":[],\"markups\":[[\"strong\"]],\"sections\":[[1,\"p\",[[0,[0],0,\"Hi \"],[0,[],1,\" Bye\"]]]]}",
|
||||
"comment_id": "62b80d5a5fb4ca000119c888",
|
||||
"feature_image": null,
|
||||
"featured": false,
|
||||
"status": "draft",
|
||||
"visibility": "public",
|
||||
"created_at": "2022-06-26T07:40:10.000Z",
|
||||
"updated_at": "2022-06-26T07:40:10.000Z",
|
||||
"published_at": null,
|
||||
"custom_excerpt": null,
|
||||
"codeinjection_head": null,
|
||||
"codeinjection_foot": null,
|
||||
"custom_template": null,
|
||||
"canonical_url": null,
|
||||
"tags": [],
|
||||
"authors": [
|
||||
{
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-26T07:38:14.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-26T07:38:14.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
}
|
||||
],
|
||||
"tiers": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29c",
|
||||
"name": "Free",
|
||||
"slug": "free",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "free",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
},
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29d",
|
||||
"name": "Laur's blog",
|
||||
"slug": "default-product",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "paid",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:29:05.000Z"
|
||||
}
|
||||
],
|
||||
"primary_author": {
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-26T07:38:14.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-26T07:38:14.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
},
|
||||
"primary_tag": null,
|
||||
"email_segment": "all",
|
||||
"url": "http://localhost:2368/p/0ab9c273-cd04-4d44-952a-fa1fc82b7fea/",
|
||||
"excerpt": "Hi Bye",
|
||||
"og_image": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"twitter_image": null,
|
||||
"twitter_title": null,
|
||||
"twitter_description": null,
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"email_subject": null,
|
||||
"frontmatter": null,
|
||||
"feature_image_alt": null,
|
||||
"feature_image_caption": null,
|
||||
"email_only": false,
|
||||
"email": null,
|
||||
"newsletter": null
|
||||
},
|
||||
{
|
||||
"id": "62b72a81609faa00017b7f4f",
|
||||
"uuid": "2bf754c6-ab73-42ee-8ceb-cccd43a9f49a",
|
||||
"title": "A post",
|
||||
"slug": "a-post",
|
||||
"mobiledoc": "{\"version\":\"0.3.1\",\"atoms\":[],\"cards\":[[\"markdown\",{\"markdown\":\"```js\\nlet value = 0\\n```\"}]],\"markups\":[[\"strong\"]],\"sections\":[[1,\"p\",[[0,[0],1,\"Hi Bye\"]]],[1,\"h3\",[[0,[],0,\"Something better comes this way\"]]],[10,0],[1,\"p\",[]]],\"ghostVersion\":\"4.0\"}",
|
||||
"comment_id": "62b72a81609faa00017b7f4f",
|
||||
"feature_image": null,
|
||||
"featured": false,
|
||||
"status": "published",
|
||||
"visibility": "public",
|
||||
"created_at": "2022-06-25T15:32:17.000Z",
|
||||
"updated_at": "2022-06-26T08:22:08.000Z",
|
||||
"published_at": "2022-06-26T07:39:46.000Z",
|
||||
"custom_excerpt": null,
|
||||
"codeinjection_head": null,
|
||||
"codeinjection_foot": null,
|
||||
"custom_template": null,
|
||||
"canonical_url": null,
|
||||
"tags": [],
|
||||
"authors": [
|
||||
{
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-26T07:38:14.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-26T07:38:14.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
}
|
||||
],
|
||||
"tiers": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29c",
|
||||
"name": "Free",
|
||||
"slug": "free",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "free",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
},
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29d",
|
||||
"name": "Laur's blog",
|
||||
"slug": "default-product",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "paid",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:29:05.000Z"
|
||||
}
|
||||
],
|
||||
"primary_author": {
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-26T07:38:14.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-26T07:38:14.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
},
|
||||
"primary_tag": null,
|
||||
"email_segment": "all",
|
||||
"url": "http://localhost:2368/a-post/",
|
||||
"excerpt": "Hi Bye\n\n\nSomething better comes this way\n\nlet value = 0\n\n",
|
||||
"og_image": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"twitter_image": null,
|
||||
"twitter_title": null,
|
||||
"twitter_description": null,
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"email_subject": null,
|
||||
"frontmatter": null,
|
||||
"feature_image_alt": null,
|
||||
"feature_image_caption": null,
|
||||
"email_only": false,
|
||||
"email": null,
|
||||
"newsletter": null
|
||||
},
|
||||
{
|
||||
"id": "62b72926609faa00017b7f44",
|
||||
"uuid": "948abc50-4233-4c29-8429-3fa75eba6610",
|
||||
"title": "This is the title",
|
||||
"slug": "this-is-the-title",
|
||||
"mobiledoc": "{\"version\":\"0.3.1\",\"atoms\":[],\"cards\":[],\"markups\":[[\"strong\"],[\"em\"]],\"sections\":[[1,\"p\",[[0,[],0,\"I am \"],[0,[0],1,\"writing \"],[0,[],0,\"my \"],[0,[1],1,\"post @laur\"]]]],\"ghostVersion\":\"4.0\"}",
|
||||
"comment_id": "62b72926609faa00017b7f44",
|
||||
"feature_image": null,
|
||||
"featured": false,
|
||||
"status": "published",
|
||||
"visibility": "public",
|
||||
"created_at": "2022-06-25T15:26:30.000Z",
|
||||
"updated_at": "2022-06-25T15:27:08.000Z",
|
||||
"published_at": "2022-06-25T15:27:08.000Z",
|
||||
"custom_excerpt": null,
|
||||
"codeinjection_head": null,
|
||||
"codeinjection_foot": null,
|
||||
"custom_template": null,
|
||||
"canonical_url": null,
|
||||
"tags": [],
|
||||
"authors": [
|
||||
{
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-26T07:38:14.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-26T07:38:14.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
}
|
||||
],
|
||||
"tiers": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29c",
|
||||
"name": "Free",
|
||||
"slug": "free",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "free",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
},
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29d",
|
||||
"name": "Laur's blog",
|
||||
"slug": "default-product",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "paid",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:29:05.000Z"
|
||||
}
|
||||
],
|
||||
"primary_author": {
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-26T07:38:14.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-26T07:38:14.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
},
|
||||
"primary_tag": null,
|
||||
"email_segment": "all",
|
||||
"url": "http://localhost:2368/this-is-the-title/",
|
||||
"excerpt": "I am writing my post @laur",
|
||||
"og_image": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"twitter_image": null,
|
||||
"twitter_title": null,
|
||||
"twitter_description": null,
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"email_subject": null,
|
||||
"frontmatter": null,
|
||||
"feature_image_alt": null,
|
||||
"feature_image_caption": null,
|
||||
"email_only": false,
|
||||
"email": null,
|
||||
"newsletter": null
|
||||
},
|
||||
{
|
||||
"id": "62960a928b281d00012eb478",
|
||||
"uuid": "e50c8ca6-055d-483e-ba27-bbb3bc2f854a",
|
||||
"title": "I really want this",
|
||||
"slug": "i-really-want-this",
|
||||
"mobiledoc": "{\"version\":\"0.3.1\",\"atoms\":[],\"cards\":[[\"markdown\",{\"markdown\":\"## I am very markdowny\"}],[\"markdown\",{\"markdown\":\"```json\\n{\\n \\\"a\\\": true\\n}\\n```\\n\\n| one | two | three | four | five |\\n|---|---|---|---|---|\\n| row | | | | |\\n| row | | | | |\\n| row | | | | row |\"}]],\"markups\":[],\"sections\":[[1,\"p\",[[0,[],0,\"Some markdown to be put here\"]]],[10,0],[10,1],[1,\"p\",[]]],\"ghostVersion\":\"4.0\"}",
|
||||
"comment_id": "62960a928b281d00012eb478",
|
||||
"feature_image": null,
|
||||
"featured": false,
|
||||
"status": "published",
|
||||
"visibility": "public",
|
||||
"created_at": "2022-05-31T12:31:14.000Z",
|
||||
"updated_at": "2022-06-15T18:15:52.000Z",
|
||||
"published_at": "2022-06-15T18:13:26.000Z",
|
||||
"custom_excerpt": null,
|
||||
"codeinjection_head": null,
|
||||
"codeinjection_foot": null,
|
||||
"custom_template": null,
|
||||
"canonical_url": null,
|
||||
"tags": [],
|
||||
"authors": [
|
||||
{
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-26T07:38:14.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-26T07:38:14.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
}
|
||||
],
|
||||
"tiers": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29c",
|
||||
"name": "Free",
|
||||
"slug": "free",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "free",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
},
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29d",
|
||||
"name": "Laur's blog",
|
||||
"slug": "default-product",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "paid",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:29:05.000Z"
|
||||
}
|
||||
],
|
||||
"primary_author": {
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-26T07:38:14.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-26T07:38:14.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
},
|
||||
"primary_tag": null,
|
||||
"email_segment": "all",
|
||||
"url": "http://localhost:2368/i-really-want-this/",
|
||||
"excerpt": "Some markdown to be put here\n\n\nI am very markdowny\n\n\n{\n \"a\": true\n}\n\n\n\n\n\n\none\ntwo\nthree\nfour\nfive\n\n\n\n\nrow\n\n\n\n\n\n\nrow\n\n\n\n\n\n\nrow\n\n\n\nrow\n\n\n\n",
|
||||
"og_image": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"twitter_image": null,
|
||||
"twitter_title": null,
|
||||
"twitter_description": null,
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"email_subject": null,
|
||||
"frontmatter": null,
|
||||
"feature_image_alt": null,
|
||||
"feature_image_caption": null,
|
||||
"email_only": false,
|
||||
"email": null,
|
||||
"newsletter": null
|
||||
},
|
||||
{
|
||||
"id": "629609ae8b281d00012eb300",
|
||||
"uuid": "49d5c2d3-2aa8-4ea9-9682-47da5c4b73fd",
|
||||
"title": "Coming really soon",
|
||||
"slug": "coming-soon",
|
||||
"mobiledoc": "{\"version\":\"0.3.1\",\"atoms\":[],\"cards\":[],\"markups\":[[\"a\",[\"href\",\"#/portal/\"]]],\"sections\":[[1,\"p\",[[0,[],0,\"This is Laur's blog, a brand new site by Laur Ivan that's just getting started. Things will be up and running here shortly, but you can \"],[0,[0],1,\"subscribe\"],[0,[],0,\" in the meantime if you'd like to stay up to date and receive emails when new content is published!\"]]]],\"ghostVersion\":\"4.0\"}",
|
||||
"comment_id": "629609ae8b281d00012eb300",
|
||||
"feature_image": "https://static.ghost.org/v4.0.0/images/feature-image.jpg",
|
||||
"featured": false,
|
||||
"status": "published",
|
||||
"visibility": "public",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:30:09.000Z",
|
||||
"published_at": "2022-05-31T12:27:26.000Z",
|
||||
"custom_excerpt": null,
|
||||
"codeinjection_head": null,
|
||||
"codeinjection_foot": null,
|
||||
"custom_template": null,
|
||||
"canonical_url": null,
|
||||
"tags": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29f",
|
||||
"name": "News",
|
||||
"slug": "news",
|
||||
"description": null,
|
||||
"feature_image": null,
|
||||
"visibility": "public",
|
||||
"og_image": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"twitter_image": null,
|
||||
"twitter_title": null,
|
||||
"twitter_description": null,
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"codeinjection_head": null,
|
||||
"codeinjection_foot": null,
|
||||
"canonical_url": null,
|
||||
"accent_color": null,
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:30:09.000Z",
|
||||
"url": "http://localhost:2368/tag/news/"
|
||||
}
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-26T07:38:14.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-26T07:38:14.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
}
|
||||
],
|
||||
"tiers": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29c",
|
||||
"name": "Free",
|
||||
"slug": "free",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "free",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
},
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29d",
|
||||
"name": "Laur's blog",
|
||||
"slug": "default-product",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "paid",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:29:05.000Z"
|
||||
}
|
||||
],
|
||||
"primary_author": {
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-26T07:38:14.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-26T07:38:14.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
},
|
||||
"primary_tag": {
|
||||
"id": "629609ae8b281d00012eb29f",
|
||||
"name": "News",
|
||||
"slug": "news",
|
||||
"description": null,
|
||||
"feature_image": null,
|
||||
"visibility": "public",
|
||||
"og_image": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"twitter_image": null,
|
||||
"twitter_title": null,
|
||||
"twitter_description": null,
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"codeinjection_head": null,
|
||||
"codeinjection_foot": null,
|
||||
"canonical_url": null,
|
||||
"accent_color": null,
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:30:09.000Z",
|
||||
"url": "http://localhost:2368/tag/news/"
|
||||
},
|
||||
"email_segment": "all",
|
||||
"url": "http://localhost:2368/coming-soon/",
|
||||
"excerpt": "This is Laur's blog, a brand new site by Laur Ivan that's just getting started. Things will be up and running here shortly, but you can subscribe in the meantime if you'd like to stay up to date and receive emails when new content is published!",
|
||||
"og_image": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"twitter_image": null,
|
||||
"twitter_title": null,
|
||||
"twitter_description": null,
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"email_subject": null,
|
||||
"frontmatter": null,
|
||||
"feature_image_alt": null,
|
||||
"feature_image_caption": null,
|
||||
"email_only": false,
|
||||
"email": null,
|
||||
"newsletter": null
|
||||
}
|
||||
]
|
450
src/data/ghost.json
Normal file
450
src/data/ghost.json
Normal file
@ -0,0 +1,450 @@
|
||||
[
|
||||
{
|
||||
"id": "62af12d78bab0400019822ae",
|
||||
"uuid": "98737bca-331d-4812-9b19-e6737ece9aa7",
|
||||
"title": "Hello world",
|
||||
"slug": "hello-world",
|
||||
"mobiledoc": "{\"version\":\"0.3.1\",\"ghostVersion\":\"4.0\",\"markups\":[],\"atoms\":[],\"cards\":[],\"sections\":[[1,\"p\",[[0,[],0,\"\"]]]]}",
|
||||
"comment_id": "62af12d78bab0400019822ae",
|
||||
"feature_image": null,
|
||||
"featured": false,
|
||||
"status": "draft",
|
||||
"visibility": "public",
|
||||
"created_at": "2022-06-19T12:13:11.000Z",
|
||||
"updated_at": "2022-06-19T12:13:11.000Z",
|
||||
"published_at": null,
|
||||
"custom_excerpt": null,
|
||||
"codeinjection_head": null,
|
||||
"codeinjection_foot": null,
|
||||
"custom_template": null,
|
||||
"canonical_url": null,
|
||||
"tags": [],
|
||||
"authors": [
|
||||
{
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-19T12:07:51.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-19T12:07:51.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
}
|
||||
],
|
||||
"tiers": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29c",
|
||||
"name": "Free",
|
||||
"slug": "free",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "free",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
},
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29d",
|
||||
"name": "Laur's blog",
|
||||
"slug": "default-product",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "paid",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:29:05.000Z"
|
||||
}
|
||||
],
|
||||
"primary_author": {
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-19T12:07:51.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-19T12:07:51.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
},
|
||||
"primary_tag": null,
|
||||
"email_segment": "all",
|
||||
"url": "http://localhost:2368/p/98737bca-331d-4812-9b19-e6737ece9aa7/",
|
||||
"excerpt": null,
|
||||
"og_image": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"twitter_image": null,
|
||||
"twitter_title": null,
|
||||
"twitter_description": null,
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"email_subject": null,
|
||||
"frontmatter": null,
|
||||
"feature_image_alt": null,
|
||||
"feature_image_caption": null,
|
||||
"email_only": false,
|
||||
"email": null,
|
||||
"newsletter": null
|
||||
},
|
||||
{
|
||||
"id": "62960a928b281d00012eb478",
|
||||
"uuid": "e50c8ca6-055d-483e-ba27-bbb3bc2f854a",
|
||||
"title": "I really want this",
|
||||
"slug": "i-really-want-this",
|
||||
"mobiledoc": "{\"version\":\"0.3.1\",\"atoms\":[],\"cards\":[[\"markdown\",{\"markdown\":\"## I am very markdowny\"}],[\"markdown\",{\"markdown\":\"```json\\n{\\n \\\"a\\\": true\\n}\\n```\\n\\n| one | two | three | four | five |\\n|---|---|---|---|---|\\n| row | | | | |\\n| row | | | | |\\n| row | | | | row |\"}]],\"markups\":[],\"sections\":[[1,\"p\",[[0,[],0,\"Some markdown to be put here\"]]],[10,0],[10,1],[1,\"p\",[]]],\"ghostVersion\":\"4.0\"}",
|
||||
"comment_id": "62960a928b281d00012eb478",
|
||||
"feature_image": null,
|
||||
"featured": false,
|
||||
"status": "published",
|
||||
"visibility": "public",
|
||||
"created_at": "2022-05-31T12:31:14.000Z",
|
||||
"updated_at": "2022-06-15T18:15:52.000Z",
|
||||
"published_at": "2022-06-15T18:13:26.000Z",
|
||||
"custom_excerpt": null,
|
||||
"codeinjection_head": null,
|
||||
"codeinjection_foot": null,
|
||||
"custom_template": null,
|
||||
"canonical_url": null,
|
||||
"tags": [],
|
||||
"authors": [
|
||||
{
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-19T12:07:51.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-19T12:07:51.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
}
|
||||
],
|
||||
"tiers": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29c",
|
||||
"name": "Free",
|
||||
"slug": "free",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "free",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
},
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29d",
|
||||
"name": "Laur's blog",
|
||||
"slug": "default-product",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "paid",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:29:05.000Z"
|
||||
}
|
||||
],
|
||||
"primary_author": {
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-19T12:07:51.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-19T12:07:51.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
},
|
||||
"primary_tag": null,
|
||||
"email_segment": "all",
|
||||
"url": "http://localhost:2368/i-really-want-this/",
|
||||
"excerpt": "Some markdown to be put here\n\n\nI am very markdowny\n\n\n{\n \"a\": true\n}\n\n\n\n\n\n\none\ntwo\nthree\nfour\nfive\n\n\n\n\nrow\n\n\n\n\n\n\nrow\n\n\n\n\n\n\nrow\n\n\n\nrow\n\n\n\n",
|
||||
"og_image": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"twitter_image": null,
|
||||
"twitter_title": null,
|
||||
"twitter_description": null,
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"email_subject": null,
|
||||
"frontmatter": null,
|
||||
"feature_image_alt": null,
|
||||
"feature_image_caption": null,
|
||||
"email_only": false,
|
||||
"email": null,
|
||||
"newsletter": null
|
||||
},
|
||||
{
|
||||
"id": "629609ae8b281d00012eb300",
|
||||
"uuid": "49d5c2d3-2aa8-4ea9-9682-47da5c4b73fd",
|
||||
"title": "Coming really soon",
|
||||
"slug": "coming-soon",
|
||||
"mobiledoc": "{\"version\":\"0.3.1\",\"atoms\":[],\"cards\":[],\"markups\":[[\"a\",[\"href\",\"#/portal/\"]]],\"sections\":[[1,\"p\",[[0,[],0,\"This is Laur's blog, a brand new site by Laur Ivan that's just getting started. Things will be up and running here shortly, but you can \"],[0,[0],1,\"subscribe\"],[0,[],0,\" in the meantime if you'd like to stay up to date and receive emails when new content is published!\"]]]],\"ghostVersion\":\"4.0\"}",
|
||||
"comment_id": "629609ae8b281d00012eb300",
|
||||
"feature_image": "https://static.ghost.org/v4.0.0/images/feature-image.jpg",
|
||||
"featured": false,
|
||||
"status": "published",
|
||||
"visibility": "public",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:30:09.000Z",
|
||||
"published_at": "2022-05-31T12:27:26.000Z",
|
||||
"custom_excerpt": null,
|
||||
"codeinjection_head": null,
|
||||
"codeinjection_foot": null,
|
||||
"custom_template": null,
|
||||
"canonical_url": null,
|
||||
"tags": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29f",
|
||||
"name": "News",
|
||||
"slug": "news",
|
||||
"description": null,
|
||||
"feature_image": null,
|
||||
"visibility": "public",
|
||||
"og_image": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"twitter_image": null,
|
||||
"twitter_title": null,
|
||||
"twitter_description": null,
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"codeinjection_head": null,
|
||||
"codeinjection_foot": null,
|
||||
"canonical_url": null,
|
||||
"accent_color": null,
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:30:09.000Z",
|
||||
"url": "http://localhost:2368/tag/news/"
|
||||
}
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-19T12:07:51.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-19T12:07:51.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
}
|
||||
],
|
||||
"tiers": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29c",
|
||||
"name": "Free",
|
||||
"slug": "free",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "free",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
},
|
||||
{
|
||||
"id": "629609ae8b281d00012eb29d",
|
||||
"name": "Laur's blog",
|
||||
"slug": "default-product",
|
||||
"active": true,
|
||||
"welcome_page_url": null,
|
||||
"visibility": "public",
|
||||
"monthly_price_id": null,
|
||||
"yearly_price_id": null,
|
||||
"description": null,
|
||||
"type": "paid",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:29:05.000Z"
|
||||
}
|
||||
],
|
||||
"primary_author": {
|
||||
"id": "1",
|
||||
"name": "Laur Ivan",
|
||||
"slug": "laur",
|
||||
"email": "laur.ivan@gmail.com",
|
||||
"profile_image": "https://www.gravatar.com/avatar/1abe88862a65973704f7c9b028cf7afe?s=250&r=x&d=mp",
|
||||
"cover_image": null,
|
||||
"bio": null,
|
||||
"website": null,
|
||||
"location": null,
|
||||
"facebook": null,
|
||||
"twitter": null,
|
||||
"accessibility": "{\"nightShift\":true}",
|
||||
"status": "active",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"tour": null,
|
||||
"last_seen": "2022-06-19T12:07:51.000Z",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-06-19T12:07:51.000Z",
|
||||
"roles": [
|
||||
{
|
||||
"id": "629609ae8b281d00012eb297",
|
||||
"name": "Owner",
|
||||
"description": "Blog Owner",
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:27:26.000Z"
|
||||
}
|
||||
],
|
||||
"url": "http://localhost:2368/author/laur/"
|
||||
},
|
||||
"primary_tag": {
|
||||
"id": "629609ae8b281d00012eb29f",
|
||||
"name": "News",
|
||||
"slug": "news",
|
||||
"description": null,
|
||||
"feature_image": null,
|
||||
"visibility": "public",
|
||||
"og_image": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"twitter_image": null,
|
||||
"twitter_title": null,
|
||||
"twitter_description": null,
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"codeinjection_head": null,
|
||||
"codeinjection_foot": null,
|
||||
"canonical_url": null,
|
||||
"accent_color": null,
|
||||
"created_at": "2022-05-31T12:27:26.000Z",
|
||||
"updated_at": "2022-05-31T12:30:09.000Z",
|
||||
"url": "http://localhost:2368/tag/news/"
|
||||
},
|
||||
"email_segment": "all",
|
||||
"url": "http://localhost:2368/coming-soon/",
|
||||
"excerpt": "This is Laur's blog, a brand new site by Laur Ivan that's just getting started. Things will be up and running here shortly, but you can subscribe in the meantime if you'd like to stay up to date and receive emails when new content is published!",
|
||||
"og_image": null,
|
||||
"og_title": null,
|
||||
"og_description": null,
|
||||
"twitter_image": null,
|
||||
"twitter_title": null,
|
||||
"twitter_description": null,
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"email_subject": null,
|
||||
"frontmatter": null,
|
||||
"feature_image_alt": null,
|
||||
"feature_image_caption": null,
|
||||
"email_only": false,
|
||||
"email": null,
|
||||
"newsletter": null
|
||||
}
|
||||
]
|
240
src/data/markdown-it-example.md
Normal file
240
src/data/markdown-it-example.md
Normal file
@ -0,0 +1,240 @@
|
||||
---
|
||||
title: Basic markdown file (markdown.it example)
|
||||
author: Laur IVAN
|
||||
version: 1.0
|
||||
date: "2022-06-24"
|
||||
license: "[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)"
|
||||
---
|
||||
|
||||
**Advertisement :)**
|
||||
|
||||
- **[pica](https://nodeca.github.io/pica/demo/)** - high quality and fast image
|
||||
resize in browser.
|
||||
- **[babelfish](https://github.com/nodeca/babelfish/)** - developer friendly
|
||||
i18n with plurals support and easy syntax.
|
||||
|
||||
You will like those projects!
|
||||
|
||||
---
|
||||
|
||||
# h1 Heading 8-)
|
||||
|
||||
## h2 Heading
|
||||
|
||||
### h3 Heading
|
||||
|
||||
#### h4 Heading
|
||||
|
||||
##### h5 Heading
|
||||
|
||||
###### h6 Heading
|
||||
|
||||
## Horizontal Rules
|
||||
|
||||
---
|
||||
|
||||
---
|
||||
|
||||
---
|
||||
|
||||
## Typographic replacements
|
||||
|
||||
Enable typographer option to see result.
|
||||
|
||||
(c) (C) (r) (R) (tm) (TM) (p) (P) +-
|
||||
|
||||
test.. test... test..... test?..... test!....
|
||||
|
||||
!!!!!! ???? ,, -- ---
|
||||
|
||||
"Smartypants, double quotes" and 'single quotes'
|
||||
|
||||
## Emphasis
|
||||
|
||||
**This is bold text**
|
||||
|
||||
**This is bold text**
|
||||
|
||||
_This is italic text_
|
||||
|
||||
_This is italic text_
|
||||
|
||||
~~Strikethrough~~
|
||||
|
||||
## Blockquotes
|
||||
|
||||
> Blockquotes can also be nested...
|
||||
>
|
||||
> > ...by using additional greater-than signs right next to each other...
|
||||
> >
|
||||
> > > ...or with spaces between arrows.
|
||||
|
||||
## Lists
|
||||
|
||||
Unordered
|
||||
|
||||
- Create a list by starting a line with `+`, `-`, or `*`
|
||||
- Sub-lists are made by indenting 2 spaces:
|
||||
- Marker character change forces new list start:
|
||||
- Ac tristique libero volutpat at
|
||||
* Facilisis in pretium nisl aliquet
|
||||
- Nulla volutpat aliquam velit
|
||||
- Very easy!
|
||||
|
||||
Ordered
|
||||
|
||||
1. Lorem ipsum dolor sit amet
|
||||
2. Consectetur adipiscing elit
|
||||
3. Integer molestie lorem at massa
|
||||
|
||||
4. You can use sequential numbers...
|
||||
5. ...or keep all the numbers as `1.`
|
||||
|
||||
Start numbering with offset:
|
||||
|
||||
57. foo
|
||||
1. bar
|
||||
|
||||
## Code
|
||||
|
||||
Inline `code`
|
||||
|
||||
Indented code
|
||||
|
||||
// Some comments
|
||||
line 1 of code
|
||||
line 2 of code
|
||||
line 3 of code
|
||||
|
||||
Block code "fences"
|
||||
|
||||
```
|
||||
Sample text here...
|
||||
```
|
||||
|
||||
Syntax highlighting
|
||||
|
||||
```js
|
||||
var foo = function (bar) {
|
||||
return bar++;
|
||||
};
|
||||
|
||||
console.log(foo(5));
|
||||
```
|
||||
|
||||
## Tables
|
||||
|
||||
| Option | Description |
|
||||
| ------ | ------------------------------------------------------------------------- |
|
||||
| data | path to data files to supply the data that will be passed into templates. |
|
||||
| engine | engine to be used for processing templates. Handlebars is the default. |
|
||||
| ext | extension to be used for dest files. |
|
||||
|
||||
Right aligned columns
|
||||
|
||||
| Option | Description |
|
||||
| -----: | ------------------------------------------------------------------------: |
|
||||
| data | path to data files to supply the data that will be passed into templates. |
|
||||
| engine | engine to be used for processing templates. Handlebars is the default. |
|
||||
| ext | extension to be used for dest files. |
|
||||
|
||||
## Links
|
||||
|
||||
[link text](http://dev.nodeca.com)
|
||||
|
||||
[link with title](http://nodeca.github.io/pica/demo/ "title text!")
|
||||
|
||||
Autoconverted link https://github.com/nodeca/pica (enable linkify to see)
|
||||
|
||||
## Images
|
||||
|
||||
![Minion](https://octodex.github.com/images/minion.png)
|
||||
![Stormtroopocat](https://octodex.github.com/images/stormtroopocat.jpg "The Stormtroopocat")
|
||||
|
||||
Like links, Images also have a footnote style syntax
|
||||
|
||||
![Alt text][id]
|
||||
|
||||
With a reference later in the document defining the URL location:
|
||||
|
||||
[id]: https://octodex.github.com/images/dojocat.jpg "The Dojocat"
|
||||
|
||||
## Plugins
|
||||
|
||||
The killer feature of `markdown-it` is very effective support of
|
||||
[syntax plugins](https://www.npmjs.org/browse/keyword/markdown-it-plugin).
|
||||
|
||||
### [Emojies](https://github.com/markdown-it/markdown-it-emoji)
|
||||
|
||||
> Classic markup: :wink: :crush: :cry: :tear: :laughing: :yum:
|
||||
>
|
||||
> Shortcuts (emoticons): :-) :-( 8-) ;)
|
||||
|
||||
see [how to change output](https://github.com/markdown-it/markdown-it-emoji#change-output) with twemoji.
|
||||
|
||||
### [Subscript](https://github.com/markdown-it/markdown-it-sub) / [Superscript](https://github.com/markdown-it/markdown-it-sup)
|
||||
|
||||
- 19^th^
|
||||
- H~2~O
|
||||
|
||||
### [\<ins>](https://github.com/markdown-it/markdown-it-ins)
|
||||
|
||||
++Inserted text++
|
||||
|
||||
### [\<mark>](https://github.com/markdown-it/markdown-it-mark)
|
||||
|
||||
==Marked text==
|
||||
|
||||
### [Footnotes](https://github.com/markdown-it/markdown-it-footnote)
|
||||
|
||||
Footnote 1 link[^first].
|
||||
|
||||
Footnote 2 link[^second].
|
||||
|
||||
Inline footnote^[Text of inline footnote] definition.
|
||||
|
||||
Duplicated footnote reference[^second].
|
||||
|
||||
[^first]: Footnote **can have markup**
|
||||
|
||||
and multiple paragraphs.
|
||||
|
||||
[^second]: Footnote text.
|
||||
|
||||
### [Definition lists](https://github.com/markdown-it/markdown-it-deflist)
|
||||
|
||||
Term 1
|
||||
|
||||
: Definition 1
|
||||
with lazy continuation.
|
||||
|
||||
Term 2 with _inline markup_
|
||||
|
||||
: Definition 2
|
||||
|
||||
{ some code, part of Definition 2 }
|
||||
|
||||
Third paragraph of definition 2.
|
||||
|
||||
_Compact style:_
|
||||
|
||||
Term 1
|
||||
~ Definition 1
|
||||
|
||||
Term 2
|
||||
~ Definition 2a
|
||||
~ Definition 2b
|
||||
|
||||
### [Abbreviations](https://github.com/markdown-it/markdown-it-abbr)
|
||||
|
||||
This is HTML abbreviation example.
|
||||
|
||||
It converts "HTML", but keep intact partial entries like "xxxHTMLyyy" and so on.
|
||||
|
||||
\*[HTML]: Hyper Text Markup Language
|
||||
|
||||
### [Custom containers](https://github.com/markdown-it/markdown-it-container)
|
||||
|
||||
::: warning
|
||||
_here be dragons_
|
||||
:::
|
9141
src/data/spec.md
Normal file
9141
src/data/spec.md
Normal file
File diff suppressed because it is too large
Load Diff
4
src/global.d.ts
vendored
Normal file
4
src/global.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
declare module "mobiledoc-kit";
|
||||
declare module "mobiledoc-kit/renderers/mobiledoc";
|
||||
declare module "markdown-it-github-preamble";
|
||||
declare module "markdown-yaml-metadata-parser";
|
4
src/index.ts
Normal file
4
src/index.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import Greeter from './Greeter'
|
||||
|
||||
const greeter = new Greeter('Laur Ivan', 'ghost-md')
|
||||
greeter.sayHello()
|
36
tasks/build.ts
Normal file
36
tasks/build.ts
Normal file
@ -0,0 +1,36 @@
|
||||
import fs from 'fs'
|
||||
import { run } from './process'
|
||||
|
||||
function readOutDirNameFromConfig (): string | null {
|
||||
const outDirRegExp = new RegExp(/["|']outDir["|']:\s?["|'](.*)["|']/)
|
||||
const configData = fs.readFileSync('./tsconfig.json', 'utf8')
|
||||
const matchResult = configData.match(outDirRegExp)
|
||||
|
||||
if (matchResult == null) {
|
||||
return null
|
||||
} else {
|
||||
return matchResult[1]
|
||||
}
|
||||
}
|
||||
|
||||
export async function build (mode: 'production' | 'development'): Promise<string> {
|
||||
const distPath = readOutDirNameFromConfig()
|
||||
if (distPath == null) {
|
||||
throw new Error('Option "compilerOptions.outDir" must be specified in tsconfig.json.')
|
||||
}
|
||||
|
||||
let buildCommand = 'tsc'
|
||||
if (mode === 'development') {
|
||||
buildCommand += ' --project ./tsconfig-dev.json'
|
||||
}
|
||||
|
||||
console.info('Build mode: ' + mode + '.')
|
||||
|
||||
if (fs.existsSync(distPath)) {
|
||||
console.info('Removing previous build...')
|
||||
fs.rmdirSync(distPath, { recursive: true })
|
||||
}
|
||||
|
||||
console.info('Running command: ' + buildCommand)
|
||||
return await run(buildCommand)
|
||||
}
|
53
tasks/process.ts
Normal file
53
tasks/process.ts
Normal file
@ -0,0 +1,53 @@
|
||||
import { exec } from 'child_process'
|
||||
|
||||
export function finishWithFail (error: Error): void {
|
||||
console.error(error)
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
export function finishWithSuccess (message?: string): void {
|
||||
if (message != null) {
|
||||
console.info(message)
|
||||
}
|
||||
process.exit(0)
|
||||
}
|
||||
|
||||
export async function run (command: string): Promise<string> {
|
||||
return await new Promise(function (resolve, reject) {
|
||||
const output: string[] = []
|
||||
|
||||
const child = exec(command, {
|
||||
cwd: process.cwd(),
|
||||
env: process.env
|
||||
})
|
||||
|
||||
if (child.stdout != null) {
|
||||
child.stdout.on('data', function (data) {
|
||||
console.log(data)
|
||||
output.push(data.toString())
|
||||
})
|
||||
}
|
||||
|
||||
if (child.stderr != null) {
|
||||
child.stderr.on('data', function (data) {
|
||||
console.log(data)
|
||||
output.push(data.toString())
|
||||
})
|
||||
}
|
||||
|
||||
child.on('exit', function (code) {
|
||||
const outputString = output.join('\n')
|
||||
|
||||
if (code === 0) {
|
||||
resolve(outputString)
|
||||
} else {
|
||||
const errorMessage = {
|
||||
code: code,
|
||||
message: outputString
|
||||
}
|
||||
reject(new Error(JSON.stringify(errorMessage)))
|
||||
}
|
||||
})
|
||||
child.on('error', reject)
|
||||
})
|
||||
}
|
13
tasks/run-build.ts
Normal file
13
tasks/run-build.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { build } from './build'
|
||||
import { finishWithFail, finishWithSuccess } from './process'
|
||||
|
||||
try {
|
||||
const args = process.argv.slice(2)
|
||||
const mode = args.includes('-d') ? 'development' : 'production'
|
||||
|
||||
build(mode)
|
||||
.then(finishWithSuccess.bind(null, 'Successfully built.'))
|
||||
.catch(finishWithFail)
|
||||
} catch (error) {
|
||||
finishWithFail(error)
|
||||
}
|
12
tsconfig-dev.json
Normal file
12
tsconfig-dev.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
// Development specific
|
||||
"removeComments": false,
|
||||
"sourceMap": true,
|
||||
"watch": true,
|
||||
// Checks
|
||||
"noUnusedLocals": false,
|
||||
"allowUnreachableCode": true
|
||||
}
|
||||
}
|
37
tsconfig.json
Normal file
37
tsconfig.json
Normal file
@ -0,0 +1,37 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"alwaysStrict": true,
|
||||
"downlevelIteration": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"esModuleInterop": true,
|
||||
"experimentalDecorators": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"module": "CommonJS",
|
||||
"moduleResolution": "Node",
|
||||
"target": "ES2015",
|
||||
"outDir": "./dist",
|
||||
"declaration": true,
|
||||
"declarationDir": "./dist/__types__",
|
||||
"resolveJsonModule": true,
|
||||
// Production specific
|
||||
"removeComments": true,
|
||||
"sourceMap": false,
|
||||
"watch": false,
|
||||
// Checks
|
||||
"allowUnreachableCode": false,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noImplicitReturns": true,
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"strictBindCallApply": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"strictPropertyInitialization": true
|
||||
},
|
||||
"include": [
|
||||
"./src"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user