Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules/
build/
test-results/
logos/
translations/
src/styles/
src/images/
src/_locales/
src/sound/

62 changes: 62 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"root": true,
"env": {
"browser": true,
"es2021": true
},
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "script"
},
"extends": ["eslint:recommended"],
"plugins": ["jquery"],
"globals": {
"browser": "readonly",
"chrome": "readonly",
"$": "readonly",
"jQuery": "readonly",
"Mustache": "readonly",
"DOMPurify": "readonly",
"timeago": "readonly",
"importScripts": "readonly"
},
"overrides": [
{
"files": ["src/scripts/background.js"],
"globals": {
"appGlobal": "readonly",
"getFeeds": "readonly",
"getSavedFeeds": "readonly",
"markAsRead": "readonly",
"toggleSavedFeed": "readonly",
"openFeedlyTab": "readonly",
"resetCounter": "readonly",
"getAccessToken": "readonly",
"readOptions": "readonly",
"initialize": "readonly"
}
},
{
"files": ["Gruntfile.js"],
"env": { "node": true }
},
{
"files": ["src/scripts/core.js", "src/scripts/options.js"],
"globals": { "FeedlyApiClient": "readonly" }
}
],
"rules": {
"indent": ["error", 4, { "SwitchCase": 1 }],
"quotes": ["error", "double", { "avoidEscape": true }],
"semi": ["error", "always"],
"curly": ["error", "all"],
"no-console": "off",
"no-unused-vars": ["warn", { "args": "none" }],
"no-var": "off",
// Warn on empty blocks (including catch)
"no-empty": ["warn", { "allowEmptyCatch": false }],

// jQuery deprecations and antipatterns
"jquery/no-ready": "warn"
}
}
7 changes: 4 additions & 3 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ jobs:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: "16.x"
cache: "yarn"
node-version: "20.x"
cache: "npm"

- run: yarn install
- run: npm install
- run: npm run lint
- run: npx grunt build --clientId=${{ secrets.FEEDLY_CLIENT_ID }} --clientSecret=${{ secrets.FEEDLY_CLIENT_SECRET }} --browser=${{ matrix.browser }}

automerge:
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ bower_components
*.orig
keys.json
.vscode

# Claude Code project instructions
CLAUDE.md
.claude/
AGENTS.md
26 changes: 13 additions & 13 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
pkg: grunt.file.readJSON("package.json"),
copy: {
main: {
files: [
{expand: true, cwd: '<%= pkg.sourcePath %>/', src: ['**'], dest: '<%= pkg.buildPath %>/'}
{expand: true, cwd: "<%= pkg.sourcePath %>/", src: ["**"], dest: "<%= pkg.buildPath %>/"}
]
},
bower: {
files: [
{src: '<%= pkg.libPath %>/jquery/dist/jquery.min.js', dest: '<%= pkg.buildPath %>/scripts/jquery.min.js'},
{src: "<%= pkg.libPath %>/jquery/dist/jquery.min.js", dest: "<%= pkg.buildPath %>/scripts/jquery.min.js"},

{src: '<%= pkg.libPath %>/webextension-polyfill/dist/browser-polyfill.min.js', dest: '<%= pkg.buildPath %>/scripts/browser-polyfill.min.js'},
{src: "<%= pkg.libPath %>/webextension-polyfill/dist/browser-polyfill.min.js", dest: "<%= pkg.buildPath %>/scripts/browser-polyfill.min.js"},

{src: '<%= pkg.libPath %>/mustache/mustache.min.js', dest: '<%= pkg.buildPath %>/scripts/mustache.min.js'},
{src: "<%= pkg.libPath %>/mustache/mustache.min.js", dest: "<%= pkg.buildPath %>/scripts/mustache.min.js"},

{src: '<%= pkg.libPath %>/dompurify/dist/purify.min.js', dest: '<%= pkg.buildPath %>/scripts/purify.min.js'},
{src: "<%= pkg.libPath %>/dompurify/dist/purify.min.js", dest: "<%= pkg.buildPath %>/scripts/purify.min.js"},

{src: '<%= pkg.libPath %>/timeago.js/dist/timeago.full.min.js', dest: '<%= pkg.buildPath %>/scripts/timeago.full.min.js'},
{src: "<%= pkg.libPath %>/timeago.js/dist/timeago.full.min.js", dest: "<%= pkg.buildPath %>/scripts/timeago.full.min.js"},
]
}
},
Expand Down Expand Up @@ -84,8 +84,8 @@ module.exports = function (grunt) {
build: {
cwd: "<%= pkg.buildPath %>/",
src: ["<%= pkg.buildPath %>/**"],
dest: '<%= pkg.buildPath %>/feedly-notifier-' + grunt.option('browser') + '.zip',
compression: 'DEFLATE'
dest: "<%= pkg.buildPath %>/feedly-notifier-" + grunt.option("browser") + ".zip",
compression: "DEFLATE"
}
},
clean: {
Expand Down Expand Up @@ -125,10 +125,10 @@ module.exports = function (grunt) {
});

grunt.loadNpmTasks("grunt-contrib-copy");
grunt.loadNpmTasks('grunt-string-replace');
grunt.loadNpmTasks('grunt-zip');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-preprocess');
grunt.loadNpmTasks("grunt-string-replace");
grunt.loadNpmTasks("grunt-zip");
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-preprocess");

grunt.registerTask("build", ["clean:pre-build", "copy", "string-replace:keys", "preprocess", "zip", "clean:build"]);
grunt.registerTask("sandbox", ["copy", "string-replace", "preprocess"]);
Expand Down
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,8 @@ Changelog can be found [here](https://github.com/olsh/Feedly-Notifier/releases).

## Build

1. `yarn`
1. `npm install`
2. `grunt sandbox --clientId=sandbox --clientSecret=R26NGS2Q9NAPSEJHCXM3 --browser=chrome`
You can find actual `clientId` and `clientSecret` [here](https://groups.google.com/g/feedly-cloud)
The browser parameter can be `chrome`, `opera` or `firefox`.
3. The result of the commands will be in `build` folder, now you can load the extension to browser.

## Acknowledgments

Made with

[![WebStorm](https://github.com/olsh/Feedly-Notifier/raw/master/logos/ws-logo.png)](https://www.jetbrains.com/webstorm/)
Loading
Loading