From bb584497bf98b3eab05368e51fc7915a28f58c05 Mon Sep 17 00:00:00 2001 From: Lionel Enkaoua Date: Fri, 1 Mar 2024 13:42:31 +0200 Subject: [PATCH] #86 Add Linux .vscode settings.json to support emeraldwalk.runonsave --- .vscode/settings-linux.json | 66 +++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .vscode/settings-linux.json diff --git a/.vscode/settings-linux.json b/.vscode/settings-linux.json new file mode 100644 index 0000000..d2e156b --- /dev/null +++ b/.vscode/settings-linux.json @@ -0,0 +1,66 @@ +{ + "workbench.colorTheme": "Tomorrow Night Blue", + "[javascript]": { + "editor.defaultFormatter": "vscode.typescript-language-features" + }, + "[html]": { + "editor.defaultFormatter": "vscode.html-language-features" + }, + "files.associations": { + "*.cshtml": "razor" + }, + "html.format.wrapLineLength": 0, + "liveServer.settings.donotShowInfoMsg": true, + "liveServer.settings.root": "/docs", + "liveServer.settings.CustomBrowser": "chrome", + "es6-css-minify.cssMinPath": "/dist/css", + "es6-css-minify.genCSSmap": true, + "es6-css-minify.genJSmap": true, + "es6-css-minify.jsMinPath": "/dist/js", + "es6-css-minify.minifyOnSave": "yes", + "es6-css-minify.enableAutoprefixer": true, + "es6-css-minify.enableAutoprefixerSelection": true, + "es6-css-minify.js": { + "mangle": true, + "compress": { + "unused": true + }, + "output": { + "quote_style": 0 + }, + "warnings": true + }, + "es6-css-minify.css": { + "rebase": false + }, + "emeraldwalk.runonsave": { + "commands": [ + { + "match": ".*", + "isAsync": true, + "cmd": "echo 'File saved: ${file} '" + }, + { + "match": "src/.*js$", + "isAsync": true, + "cmd": "sleep .1 && cp src/*.js dist/js/" + }, + { + "match": "src/.*css$", + "isAsync": true, + "cmd": "sleep .1 && cp src/*.css dist/css/" + }, + { + "match": ".css$", + "isAsync": true, + "cmd": "sleep .6 && cp dist/css/*.min.* docs/assets/css/" + }, + { + "match": ".js$", + "isAsync": true, + "cmd": "sleep .3 && cp dist/js/*.min.* docs/assets/js/" + }, + ] + }, + "liveServer.settings.port": 5501 +}