This repository was archived by the owner on Aug 27, 2020. It is now read-only.
File tree 4 files changed +112
-0
lines changed
4 files changed +112
-0
lines changed Original file line number Diff line number Diff line change
1
+ set testname [lindex $argv 0];
2
+ spawn ../node_modules/.bin/vue init .. $testname
3
+
4
+ expect "Project name"
5
+ send "\n"
6
+ expect "Project description"
7
+ send "\n"
8
+ expect "Author"
9
+ send "\n"
10
+ expect "Project type"
11
+ send "\[B"
12
+ expect "Vue build"
13
+ send "\n"
14
+ expect "Install vue-router?"
15
+ send "\n"
16
+ expect "Which language do you want to use?"
17
+ send "\[B"
18
+ expect "Use ESLint to lint your JavaScript code?"
19
+ send "\n"
20
+ expect "Pick an ESLint preset"
21
+ send "\n"
22
+ expect "Use TSLint to lint your TypeScript code?"
23
+ send "\n"
24
+ expect "Pick a TSLint preset"
25
+ send "\n"
26
+ expect "Setup unit tests with Karma + Mocha?"
27
+ send "\n"
28
+ expect "Setup e2e tests with Nightwatch?"
29
+ send "\n"
30
+ expect eof
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ testname=$1
4
+
5
+ if [[ -z $testname ]]; then
6
+ echo " No test name given"
7
+ exit -1;
8
+ fi
9
+
10
+ if [[ " $testname " == * \/ * ]] || [[ " $testname " == * \\ * ]]; then
11
+ echo " Invalid test name"
12
+ exit -1;
13
+ fi
14
+
15
+ rm -Rf " $testname "
16
+
17
+ expect " $testname .expect" " $testname "
18
+
19
+ echo " Testing $testname "
20
+ cd $testname
21
+ npm install
22
+ npm run eslint
23
+ npm run tslint
24
+ npm test
25
+ npm run build
26
+ cd ..
Original file line number Diff line number Diff line change
1
+ set testname [lindex $argv 0];
2
+ spawn ../node_modules/.bin/vue init .. $testname
3
+
4
+ expect "Project name"
5
+ send "\n"
6
+ expect "Project description"
7
+ send "\n"
8
+ expect "Author"
9
+ send "\n"
10
+ expect "Project type"
11
+ send "\[B"
12
+ expect "Vue build"
13
+ send "\n"
14
+ expect "Install vue-router?"
15
+ send "\n"
16
+ expect "Which language do you want to use?"
17
+ send "\n"
18
+ expect "Use ESLint to lint your JavaScript code?"
19
+ send "\n"
20
+ expect "Pick an ESLint preset"
21
+ send "\n"
22
+ expect "Use TSLint to lint your TypeScript code?"
23
+ send "\n"
24
+ expect "Pick a TSLint preset"
25
+ send "\n"
26
+ expect "Setup unit tests with Karma + Mocha?"
27
+ send "\n"
28
+ expect "Setup e2e tests with Nightwatch?"
29
+ send "\n"
30
+ expect eof
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ testname=$1
4
+
5
+ if [[ -z $testname ]]; then
6
+ echo " No test name given"
7
+ exit -1;
8
+ fi
9
+
10
+ if [[ " $testname " == * \/ * ]] || [[ " $testname " == * \\ * ]]; then
11
+ echo " Invalid test name"
12
+ exit -1;
13
+ fi
14
+
15
+ rm -Rf " $testname "
16
+
17
+ expect " $testname .expect" " $testname "
18
+
19
+ echo " Testing $testname "
20
+ cd $testname
21
+ npm install
22
+ npm run eslint
23
+ npm run tslint
24
+ npm test
25
+ npm run build
26
+ cd ..
You can’t perform that action at this time.
0 commit comments