Skip to content

Commit

Permalink
Use node.js script for clean task, not rf which isn't cross platform (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Fannon authored Aug 27, 2024
1 parent 690b905 commit a4a9cc6
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 12 deletions.
3 changes: 3 additions & 0 deletions bin/clean.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import * as fs from 'fs-extra'

fs.emptyDirSync('./dist')
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default [
},
},
rules: {
'no-console': 'off',
'no-console': ['error', { allow: ['debug', 'warn', 'error'] }],
'semi': ['warn', 'never'],
'comma-dangle': ['warn', 'only-multiline'],
},
Expand Down
46 changes: 37 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
"cypress-fail-on-console-error": "^5.1.1",
"eslint": "^9.9.1",
"eslint-plugin-cypress": "^3.5.0",
"fs-extra": "^11.2.0",
"live-server": "^1.2.2"
},
"scripts": {
"clean": "rm -rf ./dist",
"clean": "node bin/clean.js",
"build": "npm run clean && npm run update-libs && npm run update-manifests && npm run create-dist && npm run size",
"update-libs": "sh bin/updateLibs.sh",
"create-dist": "sh bin/createDist.sh",
Expand Down Expand Up @@ -57,4 +58,4 @@
"url": "https://github.com/Fannon/search-tabs-bookmarks-and-history/issues"
},
"homepage": "https://github.com/Fannon/search-tabs-bookmarks-and-history#readme"
}
}
1 change: 1 addition & 0 deletions popup/css/style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a4a9cc6

Please sign in to comment.