'use strict'; module.exports = { load () { // execute when package loaded // let fs = require('fs'); // let path = require('path'); // fs.mkdirSync(path.join(Editor.Project.path, '文件')); // Editor.success('文件夹创建成功!'); }, unload () { // execute when package unloaded }, // register your ipc messages here messages: { 'open' () { // open entry panel registered in package.json Editor.Panel.open('test-tools'); }, 'say-hello' () { Editor.log('Hello World!'); // send ipc message to panel Editor.Ipc.sendToPanel('test-tools', 'test-tools:hello'); }, 'clicked' () { Editor.log('Button clicked!'); } }, };