File tree 8 files changed +4345
-2
lines changed
8 files changed +4345
-2
lines changed Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ env : {
3
+ browser : true ,
4
+ es2021 : true ,
5
+ 'jest/globals' : true ,
6
+ } ,
7
+ extends : [
8
+ 'eslint:recommended' ,
9
+ 'standard' ,
10
+ 'prettier' ,
11
+ ] ,
12
+ overrides : [
13
+ ] ,
14
+ parserOptions : {
15
+ ecmaVersion : 'latest' ,
16
+ sourceType : 'module' ,
17
+ } ,
18
+ plugins : [
19
+ 'jest' ,
20
+ ] ,
21
+ rules : {
22
+ 'comma-dangle' : [ 'error' , {
23
+ arrays : 'always-multiline' ,
24
+ objects : 'always-multiline' ,
25
+ imports : 'never' ,
26
+ exports : 'never' ,
27
+ functions : 'never' ,
28
+ } ] ,
29
+ } ,
30
+ }
Original file line number Diff line number Diff line change
1
+ auto-install-peers = true
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Global prettier settings.
3
+ *
4
+ * See: https://prettier.io/docs/en/options.html
5
+ */
6
+ module . exports = {
7
+ arrowParens : 'always' ,
8
+ bracketSameLine : true ,
9
+ endOfLine : 'lf' ,
10
+ printWidth : 110 ,
11
+ semi : false ,
12
+ singleAttributePerLine : true ,
13
+ singleQuote : true ,
14
+ tabWidth : 2 ,
15
+ trailingComma : 'es5' ,
16
+ useTabs : false ,
17
+ }
Original file line number Diff line number Diff line change 1
- # td-test-data-generator
2
- Test data generator for the TD project
1
+ # TD Test Data Generator
2
+
3
+ Test data generator for the TD project.
4
+
5
+ ## Quick Start
6
+
7
+ 1 . Clone this repo
8
+ 2 . ` cd ` into the project directory and run ` npm install `
9
+ 3 . Run the code with ` npm run ` . Test data will be written to the `
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Main Module
3
+ *
4
+ * This is where the CLI tool is configured that calls all of the
5
+ * subordinate functions.
6
+ *
7
+ * @module
8
+ */
9
+
10
+ import inquirer from 'inquirer'
11
+
12
+ inquirer
13
+ . prompt ( [
14
+ {
15
+ type : 'confirm' ,
16
+ name : 'isWorking' ,
17
+ message : 'Does this thing work?' ,
18
+ default : true ,
19
+ } ,
20
+ ] )
21
+ . then ( answers => {
22
+ // do something with answers
23
+ console . log ( '\nOutput' )
24
+ console . log ( JSON . stringify ( answers ) )
25
+ } )
26
+ . catch ( error => {
27
+ if ( error . isTtyError ) {
28
+ // prompt could not be rendered in current environment
29
+ } else {
30
+ // something else went wrong
31
+ }
32
+ } )
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " td-test-data-generator" ,
3
+ "version" : " 1.0.0" ,
4
+ "description" : " " ,
5
+ "main" : " index.js" ,
6
+ "type" : " module" ,
7
+ "scripts" : {
8
+ "test" : " jest"
9
+ },
10
+ "keywords" : [],
11
+ "author" : " " ,
12
+ "license" : " ISC" ,
13
+ "dependencies" : {
14
+ "inquirer" : " ^9.1.4"
15
+ },
16
+ "devDependencies" : {
17
+ "cz-conventional-changelog" : " ^3.3.0" ,
18
+ "eslint" : " ^8.33.0" ,
19
+ "eslint-config-prettier" : " ^8.6.0" ,
20
+ "eslint-config-standard" : " ^17.0.0" ,
21
+ "eslint-plugin-import" : " ^2.27.5" ,
22
+ "eslint-plugin-jest" : " ^27.2.1" ,
23
+ "eslint-plugin-n" : " ^15.6.1" ,
24
+ "eslint-plugin-promise" : " ^6.1.1" ,
25
+ "jest" : " ^29.4.1" ,
26
+ "prettier" : " ^2.8.3"
27
+ },
28
+ "peerDependencies" : {
29
+ "typescript" : " ^4.9.5"
30
+ }
31
+ }
You can’t perform that action at this time.
0 commit comments