More standard installation method/instructions.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
@@ -13,4 +13,6 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export { analyticsModuleGA } from './plugin';
|
||||
export { GoogleAnalytics } from './apis/implementations/AnalyticsApi';
|
||||
|
||||
@@ -13,21 +13,8 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import {
|
||||
analyticsApiRef,
|
||||
configApiRef,
|
||||
createApiFactory,
|
||||
createPlugin,
|
||||
} from '@backstage/core-plugin-api';
|
||||
import { GoogleAnalytics } from './apis/implementations/AnalyticsApi';
|
||||
import { createPlugin } from '@backstage/core-plugin-api';
|
||||
|
||||
export const analyticsModuleGA = createPlugin({
|
||||
id: 'analytics-provider-ga',
|
||||
apis: [
|
||||
createApiFactory({
|
||||
api: analyticsApiRef,
|
||||
deps: { config: configApiRef },
|
||||
factory: ({ config }) => GoogleAnalytics.fromConfig(config),
|
||||
}),
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user