From b7c3ce4f21df8419d3e1d4fbf8b3ee078e142a75 Mon Sep 17 00:00:00 2001 From: shenyu <448766534@qq.com> Date: Thu, 11 Mar 2021 14:48:59 +0800 Subject: [PATCH] :white_check_mark: update test --- .travis.yml | 2 +- package.json | 9 +++++---- source-src/css/style.styl | 6 +++--- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 67b4cbe..212c0d0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,4 +7,4 @@ cache: install: npm install -script: npm run build \ No newline at end of file +script: npm run test \ No newline at end of file diff --git a/package.json b/package.json index 7eb0cfd..543b467 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "scripts": { "dev": "parcel serve source-src/main.js -d source/dist", "build": "rimraf source/dist && parcel build source-src/main.js -d source/dist --no-source-maps", - "postinstall": "node ./move_config.js" + "postinstall": "node ./move_config.js", + "test": "stylint source-src/css/style.styl -c .stylintrc" }, "source": "source-src/main.js", "repository": { @@ -30,7 +31,7 @@ "cssnano": "^4.1.10", "parcel-bundler": "^1.12.4", "parcel-plugin-bundle-visualiser": "^1.2.0", - "postcss-modules": "^1.5.0" - }, - "dependencies": {} + "postcss-modules": "^1.5.0", + "stylint": "^2.0.0" + } } diff --git a/source-src/css/style.styl b/source-src/css/style.styl index 063a5f3..efabce3 100644 --- a/source-src/css/style.styl +++ b/source-src/css/style.styl @@ -30,7 +30,7 @@ body margin 0 overflow-x hidden text-size-adjust 100% - // Dark Mode + //Dark Mode &.darkmode darkmode() @@ -49,7 +49,7 @@ img max-width 100% button - outline: none + outline: 0 cursor pointer @import "_extend" @@ -77,7 +77,7 @@ button if sidebar @import "_partial/sidebar" -// Media Query +//Media Query @media (max-width: 768px) html font-size: 60% \ No newline at end of file