Skip to content
This repository was archived by the owner on Dec 12, 2020. It is now read-only.

Commit c0b2bb3

Browse files
authored
fix: add Example cli TypeScript project (#356)
- remove double plugin insert
1 parent 0a16be5 commit c0b2bb3

File tree

22 files changed

+267
-6
lines changed

22 files changed

+267
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ cypress/screenshots
88
.nyc_output
99
coverage
1010
*.tgz
11+
examples/*/cypress/videos/

examples/cli-ts/.browserslistrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not dead

examples/cli-ts/.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
# local env files
6+
.env.local
7+
.env.*.local
8+
9+
# Log files
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
pnpm-debug.log*
14+
15+
# Editor directories and files
16+
.idea
17+
.vscode
18+
*.suo
19+
*.ntvs*
20+
*.njsproj
21+
*.sln
22+
*.sw?

examples/cli-ts/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

examples/cli-ts/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# cli-ts
2+
3+
Application scaffolded with Vue CLI v3 and tested using `Cypress` + `cypress-vue-unit-test`
4+
5+
![Scaffold settings](images/scaffold.png)

examples/cli-ts/babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
]
5+
}

examples/cli-ts/cypress.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"experimentalComponentTesting": true,
3+
"componentFolder": "src",
4+
"testFiles": "**/*.spec.ts",
5+
"fixturesFolder": false
6+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
it('has placeholder e2e test', () => {})
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const preprocessor = require('cypress-vue-unit-test/dist/plugins/webpack')
2+
module.exports = (on, config) => {
3+
preprocessor(on, config)
4+
// IMPORTANT return the config object
5+
return config
6+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import 'cypress-vue-unit-test/dist/support'

0 commit comments

Comments
 (0)