Yuki Takei 7 лет назад
Родитель
Сommit
e4c5388f42

+ 3 - 12
packages/growi-plugin-pukiwiki-like-linker/.babelrc

@@ -1,20 +1,11 @@
 {
+  "plugins": [
+  ],
   "presets": [
     ["env", {
       "targets": {
         "browsers": ["last 2 versions"]
       }
     }]
-  ],
-  "plugins": [
-    "add-module-exports",
-    "transform-class-properties"
-  ],
-  "env": {
-    "development": {
-      "presets": [
-        "power-assert"
-      ]
-    }
-  }
+  ]
 }

+ 5 - 15
packages/growi-plugin-pukiwiki-like-linker/package.json

@@ -6,16 +6,11 @@
     "growi",
     "growi-plugin"
   ],
-  "main": "lib/index.js",
+  "main": "src/index.js",
   "files": [
-    "lib"
+    "src"
   ],
   "scripts": {
-    "build": "babel src --out-dir lib --source-maps inline",
-    "clean": "npm run rimraf -- lib",
-    "prebuild": "npm run clean",
-    "watch": "babel src --out-dir lib --watch --source-maps inline",
-    "rimraf": "rimraf",
     "test": ""
   },
   "repository": {
@@ -31,15 +26,10 @@
   "dependencies": {
   },
   "devDependencies": {
-    "babel-cli": "^6.26.0",
-    "babel-plugin-add-module-exports": "^0.2.1",
-    "babel-plugin-transform-class-properties": "^6.24.0",
     "babel-preset-env": "^1.6.0",
-    "babel-preset-power-assert": "^2.0.0",
-    "babel-register": "^6.23.0",
-    "mocha": "^5.0.4",
-    "power-assert": "^1.4.2",
-    "rimraf": "^2.6.1"
+    "babel-preset-react": "^6.24.1",
+    "eslint": "^5.9.0",
+    "eslint-plugin-react": "^7.11.1"
   },
   "engines": {
     "node": ">=6.11 <9",

+ 1 - 1
packages/growi-plugin-pukiwiki-like-linker/src/client-entry.js

@@ -1,6 +1,6 @@
 import { PukiwikiLikeLinker } from './resource/js/util/PreProcessor/PukiwikiLikeLinker';
 
-export default (crowi, crowiRenderer) => {
+module.exports = (crowi, crowiRenderer) => {
   // add preprocessor to head of array
   crowiRenderer.preProcessors.unshift(new PukiwikiLikeLinker());
 }

+ 1 - 1
packages/growi-plugin-pukiwiki-like-linker/src/index.js

@@ -1 +1 @@
-export * from './meta';
+module.exports = require('./meta');

+ 1 - 1
packages/growi-plugin-pukiwiki-like-linker/src/meta.js

@@ -1,6 +1,6 @@
 const path = require('path');
 
-export default {
+module.exports = {
   pluginSchemaVersion: 2,
   serverEntries: [
   ],

Разница между файлами не показана из-за своего большого размера
+ 368 - 478
packages/growi-plugin-pukiwiki-like-linker/yarn.lock


Некоторые файлы не были показаны из-за большого количества измененных файлов