diff --git a/docs/dev/BUILD.md b/docs/dev/BUILD.md index 23a1367a..26ca89e1 100644 --- a/docs/dev/BUILD.md +++ b/docs/dev/BUILD.md @@ -10,7 +10,7 @@ git clone https://github.com/marktext/marktext.git Before you can get started developing, you need set up your build environment: -- Node.js `>=v10.16.0`, npm and yarn +- Node.js `>=v12.0.0`, npm and yarn - Python `v2.7.x` for node-gyp - C++ compiler and development tools diff --git a/docs/dev/DEBUGGING.md b/docs/dev/DEBUGGING.md index ea87c06f..878389bd 100755 --- a/docs/dev/DEBUGGING.md +++ b/docs/dev/DEBUGGING.md @@ -10,4 +10,4 @@ The most simplest way is to debug using the `Debug Mark Text` configuration. You ## Using Chrome Developer Tools -You can use the built-in developer tools via `View -> Toggle Developer Tools` in debug mode or connect via `chrome://inspect` using port `5861` for the main process and `8315` for the renderer process (`npm run dev`). +You can use the built-in developer tools via `View -> Toggle Developer Tools` in debug mode or connect via `chrome://inspect` using port `5861` for the main process and `8315` for the renderer process (`yarn run dev`). diff --git a/package.json b/package.json index c994cf1b..ed5649e4 100644 --- a/package.json +++ b/package.json @@ -15,19 +15,19 @@ "build:clean": "cross-env BUILD_TARGET=clean node .electron-vue/build.js", "build:dev": "node .electron-vue/build.js", "dev": "node .electron-vue/dev-runner.js", - "e2e": "npm run pack && cross-env MARKTEXT_EXIT_ON_ERROR=1 mocha --timeout 10000 test/e2e", + "e2e": "yarn run pack && cross-env MARKTEXT_EXIT_ON_ERROR=1 mocha --timeout 10000 test/e2e", "lint": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter src test", "lint:fix": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter --fix src test", - "pack": "npm run pack:main && npm run pack:renderer", + "pack": "yarn run pack:main && yarn run pack:renderer", "pack:main": "cross-env NODE_ENV=production webpack --progress --colors --config .electron-vue/webpack.main.config.js", "pack:renderer": "cross-env NODE_ENV=production webpack --progress --colors --config .electron-vue/webpack.renderer.config.js", - "postinstall": "npm run rebuild && npm run lint:fix", - "test": "npm run unit && npm run e2e", + "postinstall": "yarn run rebuild && yarn run lint:fix", + "test": "yarn run unit && yarn run e2e", "test:specs": "node -r esm test/specs/commonMark/run.spec.js && node -r esm test/specs/gfm/run.spec.js", "unit": "cross-env NODE_ENV=test ELECTRON_DISABLE_SECURITY_WARNINGS=true karma start test/unit/karma.conf.js", "preinstall": "node .electron-vue/preinstall.js", "build:muya": "cd src/muya && webpack --progress --colors --config webpack.config.js", - "release:muya": "npm run build:muya && cd src/muya && npm publish", + "release:muya": "yarn run build:muya && cd src/muya && yarn publish", "rebuild": "electron-rebuild -f -o fontmanager-redux,keytar,keyboard-layout,vscode-windows-registry", "gen-third-party": "node tools/generateThirdPartyLicense.js", "validate-licenses": "node tools/validateLicenses.js" diff --git a/resources/linux/marktext.appdata.xml b/resources/linux/marktext.appdata.xml index 64185091..473f2dc7 100644 --- a/resources/linux/marktext.appdata.xml +++ b/resources/linux/marktext.appdata.xml @@ -81,6 +81,7 @@ none +