-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from oe/feat/broadcast
Feat/broadcast
- Loading branch information
Showing
73 changed files
with
10,403 additions
and
12,469 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ node_modules | |
dist | ||
# don't lint nyc coverage output | ||
coverage | ||
demo | ||
test | ||
|
||
rollup.config.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,38 @@ | ||
/** @type {import('eslint').Linter.Config} */ | ||
module.exports = { | ||
root: true, | ||
parser: "@typescript-eslint/parser", | ||
plugins: ["@typescript-eslint"], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint'], | ||
// extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"], | ||
extends: ["airbnb-typescript"], | ||
extends: ['airbnb-typescript'], | ||
parserOptions: { | ||
project: "./tsconfig.json", | ||
project: './tsconfig.json', | ||
}, | ||
rules: { | ||
"no-underscore-dangle": ["off"], | ||
"no-nested-ternary": ["off"], | ||
"no-console": ["off"], | ||
"import/prefer-default-export": ["off"], | ||
"prefer-promise-reject-errors": ["off"], | ||
"@typescript-eslint/no-throw-literal": ["off"], | ||
"@typescript-eslint/no-unused-expressions": ["off"], | ||
semi: "off", | ||
"@typescript-eslint/semi": ["error", "never"], | ||
'no-underscore-dangle': ['off'], | ||
'no-nested-ternary': ['off'], | ||
'no-console': ['off'], | ||
'import/no-extraneous-dependencies': [ | ||
'error', | ||
{ | ||
devDependencies: [ | ||
'**/vite.config.ts', | ||
'**/build.config.ts', | ||
'**/vitest.workspace.ts', | ||
'jest.config.ts', | ||
'**/*.test.ts', | ||
'**/*.tn.ts', | ||
'**/*.tb.ts', | ||
], | ||
}, | ||
], | ||
'@typescript-eslint/comma-dangle': ['off'], | ||
'no-trailing-spaces': ['error', { ignoreComments: true }], | ||
'import/prefer-default-export': ['off'], | ||
'prefer-promise-reject-errors': ['off'], | ||
'@typescript-eslint/no-throw-literal': ['off'], | ||
'@typescript-eslint/no-unused-expressions': ['off'], | ||
semi: 'off', | ||
'@typescript-eslint/semi': ['error', 'never'], | ||
}, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,4 +70,5 @@ typings/ | |
cache | ||
test-cache | ||
test/cache | ||
**/dist | ||
**/dist | ||
__screenshots__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# sass_binary_site="https://npm.taobao.org/mirrors/node-sass" | ||
# ELECTRON_MIRROR="http://npm.taobao.org/mirrors/electron/" | ||
# ELECTRON_BUILDER_BINARIES_MIRROR="http://npm.taobao.org/mirrors/electron-builder-binaries/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,50 +3,38 @@ | |
"version": "1.0.0", | ||
"description": "makes one way message responsive, enhance postMessage/storageEvent/electron IPC/chrome extension scripts", | ||
"scripts": { | ||
"postinstall": "lerna bootstrap", | ||
"clean": "lerna run clean", | ||
"build": "lerna run build", | ||
"prepublish": "yarn build", | ||
"publish": "lerna publish", | ||
"build": "pnpm -r build", | ||
"test": "pnpm -r test -- run", | ||
"prepublish": "pnpm build", | ||
"publish": "pnpm -r publish", | ||
"lint": "eslint . --ext .ts" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "yarn lint" | ||
"pre-commit": "pnpm lint" | ||
} | ||
}, | ||
"repository": "https://[email protected]/oe/duplex-message.git", | ||
"author": "Saiya", | ||
"license": "MIT", | ||
"homepage": "https://github.com/oe/duplex-message", | ||
"private": true, | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"devDependencies": { | ||
"@babel/core": "^7.14.0", | ||
"@babel/plugin-transform-runtime": "^7.1.0", | ||
"@babel/preset-env": "^7.1.0", | ||
"@babel/runtime-corejs2": "^7.1.2", | ||
"@typescript-eslint/eslint-plugin": "^4.22.1", | ||
"@typescript-eslint/parser": "^4.22.1", | ||
"cross-env": "^5.2.0", | ||
"electron": "^12.0.1", | ||
"eslint": "^7.25.0", | ||
"eslint-config-airbnb-typescript": "^12.3.1", | ||
"eslint-plugin-import": "^2.22.0", | ||
"eslint-plugin-jsx-a11y": "^6.3.1", | ||
"eslint-plugin-react": "^7.20.3", | ||
"eslint-plugin-react-hooks": "^4.0.8", | ||
"husky": "^1.1.3", | ||
"lerna": "^4.0.0", | ||
"parcel-bundler": "^1.10.2", | ||
"rimraf": "^2.6.2", | ||
"rollup": "^2.36.2", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-size-snapshot": "^0.12.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"rollup-plugin-typescript2": "^0.29.0", | ||
"typescript": "4.1.3" | ||
} | ||
"husky": "^1.1.3" | ||
}, | ||
"pnpm": { | ||
"overrides": { | ||
"typescript": "5.5.3" | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
Oops, something went wrong.