You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(compiler): allow ignore pattern for copy task (#5899)
* feat: allow ignore pattern for copy task
* add tests to pipeline
* fix code docs
* remove unnecessary files
* add workflow to pipeline
* add missing script
* fix end-to-end tests
* prettier
* revert some changes
* set absolute flag
* use rimraf for support in Windows
* chore(deps): install Jest dependencies via TypeScript and Node
* fix task for windows
* make it relative to source path
* tweak
This directory aims to test and validate the behavior for Stencils [Copy Task for Output Targets](https://stenciljs.com/docs/copy-tasks#copy-tasks-for-output-targets). It has a copy task defined in `test/copy-task/stencil.config.ts` and builds this starter projects to then validate if the right files where copies.
5
+
6
+
## Given
7
+
8
+
We have a copy task defined as part of an output target, e.g.
9
+
10
+
```ts
11
+
{
12
+
type: 'dist-custom-elements',
13
+
copy: [{
14
+
src: './utils',
15
+
dest: './dist/utilsExtra',
16
+
}]
17
+
}
18
+
```
19
+
20
+
I expect that a `utilsExtra` directory is created that does __not__ copy the following entries:
21
+
22
+
- files in `__fixtures__` and `__mocks__` directories
23
+
- as well as files named `desktop.ini`
24
+
25
+
Furthermore I expect that no JS files are copied over within the collection directory.
0 commit comments