Просмотр исходного кода

add remark-presentation package

Yuki Takei 3 лет назад
Родитель
Сommit
7706b90aa9

+ 1 - 0
packages/app/docker/Dockerfile

@@ -102,6 +102,7 @@ COPY packages/hackmd packages/hackmd
 COPY packages/remark-drawio packages/remark-drawio
 COPY packages/remark-growi-directive packages/remark-growi-directive
 COPY packages/remark-lsx packages/remark-lsx
+COPY packages/remark-presentation packages/remark-presentation
 COPY packages/ui packages/ui
 COPY packages/core packages/core
 COPY packages/app packages/app

+ 1 - 0
packages/remark-presentation/.eslintignore

@@ -0,0 +1 @@
+/dist/**

+ 18 - 0
packages/remark-presentation/.eslintrc.js

@@ -0,0 +1,18 @@
+module.exports = {
+  extends: [
+    'weseek/react',
+    'weseek/typescript',
+  ],
+  env: {
+  },
+  globals: {
+  },
+  settings: {
+    // resolve path aliases by eslint-import-resolver-typescript
+    'import/resolver': {
+      typescript: {},
+    },
+  },
+  rules: {
+  },
+};

+ 1 - 0
packages/remark-presentation/.gitignore

@@ -0,0 +1 @@
+/dist

+ 4 - 0
packages/remark-presentation/README.md

@@ -0,0 +1,4 @@
+# remark-presentation
+
+[GROWI][growi] sub-package for presentation with [react-splide](https://github.com/Splidejs/react-splide)
+

+ 26 - 0
packages/remark-presentation/package.json

@@ -0,0 +1,26 @@
+{
+  "name": "@growi/remark-presentation",
+  "version": "6.0.6-RC.0",
+  "description": "GROWI plugin for presentation",
+  "license": "MIT",
+  "keywords": ["growi", "growi-plugin"],
+  "main": "dist/index.js",
+  "files": ["dist"],
+  "scripts": {
+    "build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
+    "clean": "npx -y shx rm -rf dist",
+    "lint:js": "eslint **/*.{js,jsx,ts,tsx}",
+    "lint:styles": "stylelint --allow-empty-input src/**/*.scss src/**/*.css",
+    "lint": "run-p lint:*",
+    "test": ""
+  },
+  "dependencies": {
+    "@growi/core": "^6.0.6-RC.0",
+    "swr": "^1.3.0"
+  },
+  "devDependencies": {
+    "eslint-plugin-regex": "^1.8.0",
+    "react": "^18.2.0",
+    "react-dom": "^18.2.0"
+  }
+}

+ 1 - 0
packages/remark-presentation/src/components/index.ts

@@ -0,0 +1 @@
+// export {  } from './Splide';

+ 2 - 0
packages/remark-presentation/src/index.ts

@@ -0,0 +1,2 @@
+export * from './components';
+export * from './services/renderer';

+ 1 - 0
packages/remark-presentation/src/services/renderer/index.ts

@@ -0,0 +1 @@
+export * from './presentation';

+ 0 - 0
packages/remark-presentation/src/services/renderer/presentation.ts


+ 12 - 0
packages/remark-presentation/tsconfig.base.json

@@ -0,0 +1,12 @@
+{
+  "extends": "../../tsconfig.base.json",
+  "compilerOptions": {
+    "jsx": "preserve",
+  },
+  "include": [
+    "src"
+  ],
+  "exclude": [
+    "src/test"
+  ]
+}

+ 16 - 0
packages/remark-presentation/tsconfig.build.json

@@ -0,0 +1,16 @@
+{
+  "extends": "./tsconfig.base.json",
+  "compilerOptions": {
+    "rootDir": "./src",
+    "outDir": "dist",
+    "declaration": true,
+    "noResolve": false,
+    "preserveConstEnums": true,
+    "sourceMap": false,
+    "noEmit": false,
+
+    "baseUrl": ".",
+    "paths": {
+    }
+  }
+}

+ 10 - 0
packages/remark-presentation/tsconfig.json

@@ -0,0 +1,10 @@
+{
+  "extends": "./tsconfig.base.json",
+  "compilerOptions": {
+    "baseUrl": ".",
+    "paths": {
+      "~/*": ["./src/*"],
+      "@growi/*": ["../*/src"]
+    }
+  }
+}