-
Notifications
You must be signed in to change notification settings - Fork 3
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 uptick/feature/esbuild
feature: replacing webpack with esbuild.
- Loading branch information
Showing
7 changed files
with
1,656 additions
and
2,702 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 |
---|---|---|
@@ -1,20 +1,46 @@ | ||
{ | ||
"plugins": [ | ||
"babel" | ||
"react", | ||
"@typescript-eslint" | ||
], | ||
"parser": "babel-eslint", | ||
"parser": "@typescript-eslint/parser", | ||
"rules": { | ||
"comma-dangle": [2, "always-multiline"], | ||
"space-before-function-paren": [2, "never"], | ||
|
||
// stops the 'React' was used before it was defined no-use-before-define error for .js files. | ||
"no-use-before-define": "off", | ||
"@typescript-eslint/no-use-before-define": ["error"], | ||
|
||
"react/prop-types": 1, | ||
"react/jsx-handler-names": "off", | ||
"react/jsx-uses-react": "error", | ||
"react/jsx-uses-vars": "error", | ||
|
||
"comma-dangle": [2, { | ||
"arrays": "always-multiline", | ||
"exports": "always-multiline", | ||
"functions": "never", | ||
"imports": "always-multiline", | ||
"objects": "always-multiline" | ||
}], | ||
|
||
"space-before-function-paren": [2, { | ||
"anonymous": "never", | ||
"named": "never", | ||
"asyncArrow": "always" | ||
}], | ||
|
||
"jsx-quotes": [2, "prefer-double"], | ||
"no-var": 2, | ||
|
||
"babel/no-invalid-this": 1, | ||
"babel/semi": [2, "never"], | ||
"react/prop-types": "warn" | ||
"semi": [2, "never"], | ||
"lines-between-class-members": "off" | ||
}, | ||
|
||
"extends": ["standard", "standard-react"], | ||
|
||
"env": { | ||
"browser": true, | ||
"jest": true, | ||
"jasmine": true | ||
} | ||
} |
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,17 @@ | ||
const { build } = require("esbuild"); | ||
const { nodeExternalsPlugin } = require("esbuild-node-externals"); | ||
|
||
build({ | ||
entryPoints: ["src/index.js"], | ||
outdir: "dist", | ||
bundle: true, | ||
sourcemap: true, | ||
minify: true, | ||
splitting: true, | ||
format: "esm", | ||
target: ["es2015"], | ||
loader: { | ||
".js": "jsx", | ||
}, | ||
plugins: [nodeExternalsPlugin({ allowList: ['jquery', 'classnames', 'clone'], })], | ||
}).catch(() => process.exit(1)); |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import ObjectTable, { ObjectCell, ObjectRow, BaseEditor, TextEditor, TextDrawer } from './object-table' | ||
|
||
export default ObjectTable | ||
export { ObjectCell, ObjectRow, BaseEditor, TextEditor, TextDrawer } |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.