Skip to content

Commit

Permalink
Merge pull request #12 from spmonahan/wc/tensile-config
Browse files Browse the repository at this point in the history
chore: add tensile config for @fluentui/web-components
  • Loading branch information
chrisdholt authored Feb 14, 2024
2 parents d961b60 + c8d27a8 commit e4b71ae
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,6 @@ rush.json

# tsdoc
tsdoc-metadata.json

# benchmarking
.tensile/
2 changes: 1 addition & 1 deletion packages/web-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
"scripts": {
"tsc": "tsc",
"api-extractor": "api-extractor",
"benchmark": "tsc -p ./tsconfig.bench.json && npx tensile --file ./dist/esm/button/button.bench.js",
"benchmark": "tsc -p ./tsconfig.bench.json && tensile --file ./dist/esm/button/button.bench.js --config ./tensile.config.js",
"compile": "node ./scripts/compile",
"clean": "node ./scripts/clean dist",
"generate-api": "api-extractor run --local",
Expand Down
13 changes: 13 additions & 0 deletions packages/web-components/tensile.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const config = {
// Browsers to test against
browsers: ['chrome'],

// Importmaps for your test.
// See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap
imports: {
'@tensile-perf/web-components': '/node_modules/@tensile-perf/web-components/dist/index.js',
'@microsoft/fast-element': '/node_modules/@microsoft/fast-element/dist/fast-element.min.js',
},
};

export default config;

0 comments on commit e4b71ae

Please sign in to comment.