Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Chore]: Technical: Isolate actions (#1948)
* Build fix Signed-off-by: Daria Terekhova <daria.terekhova@actionengine.com> * Actions isolation Signed-off-by: Daria Terekhova <daria.terekhova@actionengine.com> * Imports updated Signed-off-by: Daria Terekhova <daria.terekhova@actionengine.com> * Build fix Signed-off-by: Daria Terekhova <daria.terekhova@actionengine.com> * Package.json correction Signed-off-by: Daria Terekhova <daria.terekhova@actionengine.com> * Review corrections Signed-off-by: Daria Terekhova <daria.terekhova@actionengine.com> Signed-off-by: Daria Terekhova <daria.terekhova@actionengine.com>
- Loading branch information
1 parent
f828f69
commit 8ea93d4
Showing
78 changed files
with
317 additions
and
199 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
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,64 @@ | ||
// Copyright (c) 2022 Uber Technologies, Inc. | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the "Software"), to deal | ||
// in the Software without restriction, including without limitation the rights | ||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
// copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in | ||
// all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
// THE SOFTWARE. | ||
|
||
const KeplerPackage = require('./package'); | ||
|
||
const PRESETS = ['@babel/preset-env', '@babel/preset-react', '@babel/preset-typescript']; | ||
const PLUGINS = [ | ||
['@babel/plugin-transform-typescript', {isTSX: true, allowDeclareFields: true}], | ||
'@babel/plugin-transform-modules-commonjs', | ||
'@babel/plugin-proposal-optional-chaining', | ||
[ | ||
'@babel/transform-runtime', | ||
{ | ||
regenerator: true | ||
} | ||
], | ||
[ | ||
'search-and-replace', | ||
{ | ||
rules: [ | ||
{ | ||
search: '__PACKAGE_VERSION__', | ||
replace: KeplerPackage.version | ||
} | ||
] | ||
} | ||
] | ||
]; | ||
const ENV = { | ||
test: { | ||
plugins: ['istanbul'] | ||
}, | ||
debug: { | ||
sourceMaps: 'inline', | ||
retainLines: true | ||
} | ||
}; | ||
|
||
module.exports = function babel(api) { | ||
api.cache(true); | ||
|
||
return { | ||
presets: PRESETS, | ||
plugins: PLUGINS, | ||
env: ENV | ||
}; | ||
}; |
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,47 @@ | ||
{ | ||
"name": "@kepler.gl/actions", | ||
"author": "Shan He <shan@uber.com>", | ||
"version": "2.5.5", | ||
"description": "kepler.gl constants used by kepler.gl components, actions and reducers", | ||
"license": "MIT", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"keywords": [ | ||
"babel", | ||
"es6", | ||
"react", | ||
"webgl", | ||
"visualization", | ||
"deck.gl" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/keplergl/kepler.gl.git" | ||
}, | ||
"scripts": { | ||
"build": "rm -fr dist && babel src --out-dir dist --source-maps inline --extensions '.ts,.tsx,.js,.jsx' --ignore '**/*.d.ts'", | ||
"build:umd": "webpack --config ./webpack/umd.js --progress --env.prod", | ||
"build:types": "tsc --project ./tsconfig.production.json", | ||
"prepublish": "uber-licence && yarn build && yarn build:types", | ||
"stab": "mkdir -p dist && touch dist/index.js" | ||
}, | ||
"files": [ | ||
"dist", | ||
"umd" | ||
], | ||
"nyc": { | ||
"sourceMap": false, | ||
"instrument": false | ||
}, | ||
"engines": { | ||
"node": ">=12.0.0" | ||
}, | ||
"maintainers": [ | ||
"Shan He <heshan0131@gmail.com>", | ||
"Giuseppe Macri <gmacri@uber.com>" | ||
], | ||
"volta": { | ||
"node": "12.22.0", | ||
"yarn": "1.22.17" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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,33 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es2020", | ||
"allowJs": false, | ||
"checkJs": false, | ||
"jsx": "react", | ||
"module": "esnext", | ||
"moduleResolution": "node", | ||
"declaration":true, | ||
"emitDeclarationOnly":true, | ||
"noImplicitAny": false, | ||
"noImplicitReturns": true, | ||
"noImplicitThis": true, | ||
"noUnusedLocals": false, //TODO needs to be removed once all isolations are ready | ||
"outDir": "dist", | ||
"sourceMap": true, | ||
"strictNullChecks": true, | ||
"suppressImplicitAnyIndexErrors": false, | ||
"esModuleInterop": true, | ||
"allowSyntheticDefaultImports": true, | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"baseUrl": "../../src", //TODO change once all dependencies are isolated | ||
"paths": { | ||
"@kepler.gl/actions": ["actions/src"] //TODO change once all dependencies are isolated | ||
} | ||
}, | ||
"include": [ | ||
"src" | ||
] | ||
} |
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
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
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
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
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
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
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
Oops, something went wrong.