diff --git a/.gitignore b/.gitignore index 000c9fe..786b62e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,5 @@ # 忽略所有.DS_Store .DS_Store -# -# 忽略.vscode -.vscode # 忽略所有.default.html *.default.html # 忽略所有.scss @@ -10,9 +7,19 @@ # 忽略所有.js 僅保留.min.js *.js !*.min.js -# 忽略vscode 工作台 +# 忽略.ts +**/typescript/*.ts +# 忽略 vscode 工作台 *.code-workspace -# 忽略Folder Icon +# 忽略 Folder Icon Icon? # 忽略sh -clear.sh \ No newline at end of file +reset.sh +# 忽略 npm 套件 +**/node_modules/* +package-lock.json +package.json +terser.cache.json +terser.config.json + +**/js/*.md \ No newline at end of file diff --git a/package.json b/package.json deleted file mode 100644 index 0941fe4..0000000 --- a/package.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "markdown-editor", - "version": "1.0.0", - "description": "![](https://img.shields.io/github/repo-size/pardnchiu/markdown-editor?label=Size) ![](https://img.shields.io/github/license/pardnchiu/markdown-editor?label=License) ![](https://img.shields.io/badge/Creator-Pardn%20Chiu%20邱敬幃-A374BF)", - "main": "index.js", - "scripts": { - "minify": "npx terser js/PaneDesk/*.js -c -m -o js/PaneDesk.min.js --config-file terser.config.json --name-cache terser.cache.json", - "minify-watch": "chokidar 'js/PaneDesk/*.js' -c 'npm run minify'", - "minify-index": "npx terser js/index.js -c -m -o js/index.min.js --config-file terser.config.json --name-cache terser.cache.json", - "sass": "sass sass/:css/ -w --style compressed --no-source-map" - }, - "author": "", - "license": "ISC", - "devDependencies": { - } -} diff --git a/terser.cache.json b/terser.cache.json deleted file mode 100644 index 00107ab..0000000 --- a/terser.cache.json +++ /dev/null @@ -1 +0,0 @@ -{"vars":{"props":{"$MDEditor":"n","$MDViewer":"i","$onclickPreview":"t","$_PDMDEditor":"e","$_id":"r","$_nodeName":"o","$_parentNode":"l","$_selection":"s","$_getSelection":"a","$_empty":"d","$_clipboardData":"c","$_baseOffset":"h","$_focusOffset":"u","$_innerText":"p","$_innerHTML":"m","$_slice":"f","$_toLowerCase":"g","$_div":"w","$_inputFocus":"v","$_length":"_","$_removeClass":"y","$_addChild":"b","$_getChild":"$","$_body":"x","$_childNodes":"S","$_setStart":"C","$_setEnd":"k","$_removeAllRanges":"A","$_children":"E","$_firstElementChild":"T","$_scrollTop":"I","$history_timer":"R","$selection_body":"N","$selection_start":"D","$selection_end":"L","$selection_left":"z","$selection_right":"O","$cursor_check":"M","$cursor_is_multi_selection":"j","$cursor_is_single_selection":"P","$cursor_index":"H","$cursor_offset":"B","$cursor_left":"Y","$cursor_right":"F","$cursor_selection_body":"U","$cursor_selection_start":"K","$cursor_selection_end":"q","$cursor_selection_left":"V","$cursor_selection_right":"Z","$cursor_multi_start_index":"W","$cursor_multi_start_offset":"G","$cursor_multi_end_index":"Q","$cursor_multi_end_offset":"X","$cursor_multi_left":"J","$cursor_multi_right":"ee","$history_back":"te","$history_forward":"ie","$tagPath":"ne","$tagTarget":"re","$editor_timer":"oe","$copy_timer":"le","$listener":"se","$script":"de","$_getElementsByTagName":"ae","$_createTextNode":"ue","$_nodeValue":"ce","$_tagName":"he","$_mark":"me","$_code":"pe","$dragWindow":"tt","$moveX":"et","$moveY":"ot","$offsetX":"nt","$offsetY":"lt","$elementDrag":"it","$closeDragElement":"st","$bringTopest":"ct","$resetTopest":"ft","$draggedFile":"at","$dragOverFolder":"rt","$openFolder":"dt","$getFiles":"ut","$openLink":"_t","$PDWindow":"pt","$temp_folder":"ht","$temp_shortcut":"gt"}}} \ No newline at end of file diff --git a/terser.config.json b/terser.config.json deleted file mode 100644 index 120bb35..0000000 --- a/terser.config.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "ecma": 2022, - "enclose": false, - "keep_classnames": false, - "keep_fnames": false, - "ie8": false, - "module": false, - "nameCache": {}, - "safari10": false, - "toplevel": true, - "mangle": { - "properties": { - "regex": ".*" - } - }, - "compress": { - "sequences": true, - "properties": true, - "dead_code": true, - "drop_debugger": true, - "conditionals": true, - "comparisons": true, - "evaluate": true, - "booleans": true, - "loops": true, - "unused": true, - "hoist_funs": true, - "keep_fargs": false, - "if_return": true, - "join_vars": true, - "collapse_vars": true, - "reduce_vars": true, - "side_effects": true, - "pure_getters": true, - "pure_funcs": null, - "negate_iife": true, - "drop_console": false, - "passes": 2 - } -} \ No newline at end of file