Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Commit

Permalink
feat: add comment and user api
Browse files Browse the repository at this point in the history
  • Loading branch information
lizheming committed Apr 30, 2022
1 parent 49aa3f1 commit 6d70128
Show file tree
Hide file tree
Showing 10 changed files with 654 additions and 0 deletions.
308 changes: 308 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "@waline/api",
"version": "1.0.0",
"description": "api client for waline",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"devDependencies": {
"@rollup/plugin-typescript": "^8.3.2",
"rollup": "^2.71.0",
"typescript": "^4.6.3"
},
"scripts": {
"build": "rollup --config=rollup.config.js",
"prepublishOnly": "npm run build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/walinejs/api.git"
},
"keywords": [
"waline",
"api"
],
"author": "lizheming<[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/walinejs/api/issues"
},
"homepage": "https://github.com/walinejs/api#readme"
}
19 changes: 19 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import typescript from '@rollup/plugin-typescript';

export default {
input: 'src/index.ts',
output: [
{
file: 'dist/index.cjs',
format: 'cjs',
exports: 'default',
},
{
file: 'dist/index.mjs',
format: 'esm'
}
],
plugins: [
typescript({ tsconfig: './tsconfig.json' })
]
};
Loading

0 comments on commit 6d70128

Please sign in to comment.