mirror of
https://github.com/apache/superset.git
synced 2026-05-30 04:39:20 +00:00
fix(extensions): enforce correct naming conventions (#38167)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[project]
|
||||
name = "{{ id }}"
|
||||
name = "{{ backend_package }}"
|
||||
version = "{{ version }}"
|
||||
license = "{{ license }}"
|
||||
|
||||
@@ -1 +1 @@
|
||||
print("{{ name }} extension registered")
|
||||
print("{{ display_name }} extension registered")
|
||||
|
||||
@@ -11,14 +11,15 @@
|
||||
"menus": {}
|
||||
},
|
||||
"moduleFederation": {
|
||||
"name": "{{ mf_name }}",
|
||||
"exposes": ["./index"]
|
||||
}
|
||||
},
|
||||
{% endif -%}
|
||||
{% if include_backend -%}
|
||||
"backend": {
|
||||
"entryPoints": ["{{ id }}.entrypoint"],
|
||||
"files": ["backend/src/{{ id }}/**/*.py"]
|
||||
"entryPoints": ["{{ backend_entry }}"],
|
||||
"files": ["backend/src/superset_extensions/{{ backend_name }}/**/*.py"]
|
||||
},
|
||||
{% endif -%}
|
||||
"permissions": []
|
||||
|
||||
@@ -39,7 +39,7 @@ module.exports = (env, argv) => {
|
||||
},
|
||||
plugins: [
|
||||
new ModuleFederationPlugin({
|
||||
name: "{{ id }}",
|
||||
name: "{{ mf_name }}",
|
||||
filename: "remoteEntry.[contenthash].js",
|
||||
exposes: {
|
||||
"./index": "./src/index.tsx",
|
||||
|
||||
Reference in New Issue
Block a user