forked from googleads/google-publisher-tag-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsamples.11tydata.ts
More file actions
30 lines (26 loc) · 993 Bytes
/
Copy pathsamples.11tydata.ts
File metadata and controls
30 lines (26 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import {SampleCollectionData} from '../src/model/sample-data';
/**
* Base data object used for generating language-specific samples.
*
* These values may be overridden and/or supplimented by sample-specific
* data objects (`samples/<sample>/<sample>.json`).
*/
const data: SampleCollectionData = {
// Default authors.
authors: ['Google Publisher Tag Team'],
// Default package.json values for TS sample projects.
dependencies: [],
devDependencies: ['@types/google-publisher-tag', 'typescript', 'vite'],
scripts: {
dev: 'vite',
build: 'tsc && vite build',
preview: 'vite preview',
},
// Common pagination values.
// This controls which output formats will be generated for each sample.
mode: ['js', 'legacyjs', 'ts'],
pagination: {data: 'mode', size: 1, alias: 'mode'},
permalink:
'{{ page.fileSlug }}/{{mode}}/{% if mode != \'ts\' %}demo{% else %}index{% endif %}.{{ page.outputFileExtension }}'
};
export = data;