Skip to content

Commit ae2d5c7

Browse files
Say how to generate separated snippets (firebase#210)
1 parent 74b104c commit ae2d5c7

File tree

306 files changed

+612
-306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

306 files changed

+612
-306
lines changed

scripts/separate-snippets.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ function processSnippet(
125125
`// This snippet file was generated by processing the source file:`,
126126
`// ${sourceFile}`,
127127
`//`,
128-
`// To make edits to the snippets in this file, please edit the source`,
128+
`// To update the snippets in this file, edit the source and then run`,
129+
`// 'npm run snippets'.`,
129130
``,
130131
];
131132
const content = [...preambleLines, ...outputLines].join("\n");

snippets/analytics-next/ecommerce/analytics_ecommerce_add_cart.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// This snippet file was generated by processing the source file:
22
// ./analytics-next/ecommerce.js
33
//
4-
// To make edits to the snippets in this file, please edit the source
4+
// To update the snippets in this file, edit the source and then run
5+
// 'npm run snippets'.
56

67
// [START analytics_ecommerce_add_cart_modular]
78
import { getAnalytics, logEvent } from "firebase/analytics";

snippets/analytics-next/ecommerce/analytics_ecommerce_checkout.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// This snippet file was generated by processing the source file:
22
// ./analytics-next/ecommerce.js
33
//
4-
// To make edits to the snippets in this file, please edit the source
4+
// To update the snippets in this file, edit the source and then run
5+
// 'npm run snippets'.
56

67
// [START analytics_ecommerce_checkout_modular]
78
import { getAnalytics, logEvent } from "firebase/analytics";

snippets/analytics-next/ecommerce/analytics_ecommerce_items.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// This snippet file was generated by processing the source file:
22
// ./analytics-next/ecommerce.js
33
//
4-
// To make edits to the snippets in this file, please edit the source
4+
// To update the snippets in this file, edit the source and then run
5+
// 'npm run snippets'.
56

67
// [START analytics_ecommerce_items_modular]
78
// A pair of jeggings

snippets/analytics-next/ecommerce/analytics_ecommerce_payment_info.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// This snippet file was generated by processing the source file:
22
// ./analytics-next/ecommerce.js
33
//
4-
// To make edits to the snippets in this file, please edit the source
4+
// To update the snippets in this file, edit the source and then run
5+
// 'npm run snippets'.
56

67
// [START analytics_ecommerce_payment_info_modular]
78
import { getAnalytics, logEvent } from "firebase/analytics";

snippets/analytics-next/ecommerce/analytics_ecommerce_promotions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// This snippet file was generated by processing the source file:
22
// ./analytics-next/ecommerce.js
33
//
4-
// To make edits to the snippets in this file, please edit the source
4+
// To update the snippets in this file, edit the source and then run
5+
// 'npm run snippets'.
56

67
// [START analytics_ecommerce_promotions_modular]
78
import { getAnalytics, logEvent } from "firebase/analytics";

snippets/analytics-next/ecommerce/analytics_ecommerce_purchase.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// This snippet file was generated by processing the source file:
22
// ./analytics-next/ecommerce.js
33
//
4-
// To make edits to the snippets in this file, please edit the source
4+
// To update the snippets in this file, edit the source and then run
5+
// 'npm run snippets'.
56

67
// [START analytics_ecommerce_purchase_modular]
78
import { getAnalytics, logEvent } from "firebase/analytics";

snippets/analytics-next/ecommerce/analytics_ecommerce_refund.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// This snippet file was generated by processing the source file:
22
// ./analytics-next/ecommerce.js
33
//
4-
// To make edits to the snippets in this file, please edit the source
4+
// To update the snippets in this file, edit the source and then run
5+
// 'npm run snippets'.
56

67
// [START analytics_ecommerce_refund_modular]
78
import { getAnalytics, logEvent } from "firebase/analytics";

snippets/analytics-next/ecommerce/analytics_ecommerce_remove_cart.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// This snippet file was generated by processing the source file:
22
// ./analytics-next/ecommerce.js
33
//
4-
// To make edits to the snippets in this file, please edit the source
4+
// To update the snippets in this file, edit the source and then run
5+
// 'npm run snippets'.
56

67
// [START analytics_ecommerce_remove_cart_modular]
78
import { getAnalytics, logEvent } from "firebase/analytics";

snippets/analytics-next/ecommerce/analytics_ecommerce_select_item.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// This snippet file was generated by processing the source file:
22
// ./analytics-next/ecommerce.js
33
//
4-
// To make edits to the snippets in this file, please edit the source
4+
// To update the snippets in this file, edit the source and then run
5+
// 'npm run snippets'.
56

67
// [START analytics_ecommerce_select_item_modular]
78
import { getAnalytics, logEvent } from "firebase/analytics";

0 commit comments

Comments
 (0)