-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
59 changed files
with
690 additions
and
539 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import type { IFatherConfig } from 'father'; | ||
import { defineConfig } from 'father'; | ||
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'; | ||
|
||
const isProduction = process.env.NODE_ENV === 'production'; | ||
|
||
const umdConfig: IFatherConfig['umd'] = { | ||
name: 'L7ExtensionMaps', | ||
output: { | ||
path: './dist', | ||
filename: 'l7-extension-maps.min.js', | ||
}, | ||
platform: 'browser', | ||
targets: { ie: 11 }, | ||
externals: { | ||
'mapbox-gl': { | ||
root: 'mapboxgl', | ||
commonjs: 'mapbox-gl', | ||
commonjs2: 'mapbox-gl', | ||
amd: 'mapbox-gl', | ||
}, | ||
'maplibre-gl': { | ||
root: 'maplibregl', | ||
commonjs: 'maplibre-gl', | ||
commonjs2: 'maplibre-gl', | ||
amd: 'maplibre-gl', | ||
}, | ||
}, | ||
chainWebpack(memo) { | ||
// 关闭压缩方便调试,默认开启 | ||
// memo.optimization.minimize(false); | ||
|
||
// 打包体积分析 | ||
memo | ||
.plugin('webpack-bundle-analyzer') | ||
.use(BundleAnalyzerPlugin, [{ analyzerMode: 'static', openAnalyzer: false }]); | ||
|
||
return memo; | ||
}, | ||
}; | ||
|
||
export default defineConfig({ | ||
extends: '../../.fatherrc.base.ts', | ||
// 使用 babel 编译 esm/cjs 产物,启用 transform-import-css-l7 插件完成 CSS 内联打包 | ||
esm: { transformer: 'babel' }, | ||
cjs: isProduction ? { transformer: 'babel' } : undefined, | ||
umd: isProduction ? umdConfig : undefined, | ||
}); |
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 @@ | ||
/lib | ||
/es | ||
/dist |
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 @@ | ||
# Change Log |
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,52 @@ | ||
{ | ||
"name": "@antv/l7-extension-maps", | ||
"version": "2.21.11-beta.2", | ||
"description": "Extension Maps for L7", | ||
"license": "MIT", | ||
"author": "https://github.com/orgs/antvis/people", | ||
"sideEffects": [ | ||
"**/*.css" | ||
], | ||
"main": "lib/index.js", | ||
"unpkg": "dist/l7-extension-maps.min.js", | ||
"module": "es/index.js", | ||
"types": "es/index.d.ts", | ||
"files": [ | ||
"dist", | ||
"lib", | ||
"es", | ||
"!dist/report.html" | ||
], | ||
"scripts": { | ||
"dev": "father dev", | ||
"build": "npm run clean && father build", | ||
"check-deps": "father doctor", | ||
"lint": "eslint src", | ||
"clean": "rimraf dist es lib" | ||
}, | ||
"dependencies": { | ||
"@amap/amap-jsapi-loader": "^1.0.1", | ||
"@antv/l7-core": "workspace:*", | ||
"@antv/l7-utils": "workspace:*", | ||
"@babel/runtime": "^7.7.7", | ||
"eventemitter3": "^4.0.0", | ||
"gl-matrix": "^3.1.0", | ||
"mapbox-gl": "^1.2.1", | ||
"maplibre-gl": "^3.5.2", | ||
"viewport-mercator-project": "^6.2.1" | ||
}, | ||
"devDependencies": { | ||
"@map-component/tmap-types": "^0.1.3", | ||
"@types/amap-js-api": "^1.4.6", | ||
"@types/bmapgl": "^0.0.7", | ||
"@types/gl-matrix": "^2.4.5", | ||
"@types/google.maps": "^3.54.10", | ||
"@types/mapbox-gl": "^1.11.2", | ||
"@types/viewport-mercator-project": "^6.1.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public", | ||
"registry": "https://registry.npmjs.org" | ||
}, | ||
"repository": "[email protected]:antvis/L7.git" | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/maps/src/amap-next/index.ts → packages/extension-maps/src/amap/index.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
File renamed without changes.
Oops, something went wrong.