@gapi/cli
TypeScript icon, indicating that this package has built-in type declarations

1.8.151 • Public • Published

This is CLI project related with GAPI graphQL api with typescript Decorators

Gapi - Advanced graphql server with typescript decorators

Starter - Basic starter project

Starter-advanced - Advanced starter project

Gapi-angular-client - Gapi Apollo Angular client

To install gapi utility type following command:

npm i -g @gapi/cli

To create new basic project from scratch via CLI type:

gapi new my-project

To create new advanced project from scratch via CLI type:

gapi new my-project --advanced

To create new basic project with microservices from scratch via CLI type:

gapi new my-project --microservices

Available commands

Create new project
gapi new project-name
Start created project.
gapi start
(Uses internally on every restart to introspect api schema check "gapi schema introspect" command)
Can be disabled inside package.json > nodemonConfig > events > restart
With this configuration it will make request to localhost:9000 and will take current API schema then will generate graphql.d.ts based on introspection
  "nodemonConfig": {
    "events": {
      "restart": "sleep 1 && gapi schema introspect"
    }
  },
Start production (it will start pm2 and will use process.yml file inside working directory)
gapi start --prod --pm2
Start production inside Docker(it will start pm2-docker and will use process.yml file inside working directory)
gapi start --prod --docker

Start testing

Run single test iteration
Will take config > test > local configuration inside @gapi/cli.conf.yml
gapi test
Run tests in watch mode
gapi test --watch
Run tests with different environment
It will take configuration from @gapi/cli.conf.yml
You can extend configurations from APP when you write after environment "extends app/my-environment"

Custom testing environments

config:
  app:
    local: 
      API_PORT: 9000
      API_CERT: ./cert.key
      NODE_ENV: development
      AMQP_HOST: 182.10.0.5
      AMQP_PORT: 5672
      ENDPOINT_TESTING: http://localhost:9000/graphql
      TOKEN_TESTING: ''
    prod: 
      API_PORT: 9000
      API_CERT: ./cert.key
      NODE_ENV: production
      AMQP_HOST: 182.10.0.5
      AMQP_PORT: 5672
      ENDPOINT_TESTING: http://182.10.0.101:9000/graphql
      TOKEN_TESTING: ''
    my-environment: 
      API_PORT: 9000
      API_CERT: ./cert.key
      NODE_ENV: development
      AMQP_HOST: 182.10.0.5
      AMQP_PORT: 5672
      ENDPOINT_TESTING: http://localhost:9000/graphql
      TOKEN_TESTING: ''
  test:
    my-environment: extends app/my-environment
    local: extends app/local
    prod: extends app/prod
    worker:
      API_PORT: 9000
      API_CERT: ./cert.key
      NODE_ENV: production
      AMQP_HOST: 182.10.0.5
      AMQP_PORT: 5672
      ENDPOINT_TESTING: http://182.10.0.101:9000/graphql
      TOKEN_TESTING: ''
Running with Testing worker environment
gapi test --worker

Running with Production environment

gapi test --prod
Running with custom enviroment
gapi test --my-enviroment

Schema

Schema introspection
It will generate graphql.d.ts file based on given address and output folder
Uses @gapi/cli.conf.yml file
config:
  schema:
    introspectionEndpoint: http://localhost:9000/graphql
    introspectionOutputFolder: ./src/app/core/api-introspection
gapi schema introspect
Available shared commands are:
--verbose - Show better logging

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.8.15113latest

Version History

VersionDownloads (Last 7 Days)Published
1.8.15113
1.8.1500
1.8.1490
1.8.1480
1.8.1470
1.8.1460
1.8.1450
1.8.1440
1.8.1430
1.8.1420
1.8.1410
1.8.1400
1.8.1390
1.8.1380
1.8.1370
1.8.1360
1.8.1350
1.8.1340
1.8.1330
1.8.1320
1.8.1310
1.8.1300
1.8.1290
1.8.1280
1.8.1270
1.8.1260
1.8.1250
1.8.1240
1.8.1230
1.8.1220
1.8.1210
1.8.1200
1.8.1190
1.8.1180
1.8.1170
1.8.1160
1.8.1150
1.8.1140
1.8.1130
1.8.1120
1.8.1110
1.8.1100
1.8.1090
1.8.1081
1.8.1070
1.8.1060
1.8.1050
1.8.1041
1.8.1031
1.8.1020
1.8.1010
1.8.1000
1.8.990
1.8.980
1.8.970
1.8.960
1.8.950
1.8.940
1.8.930
1.8.920
1.8.910
1.8.900
1.8.890
1.8.880
1.8.870
1.8.860
1.8.850
1.8.840
1.8.830
1.8.820
1.8.810
1.8.800
1.8.790
1.8.780
1.8.770
1.8.760
1.8.750
1.8.740
1.8.730
1.8.720
1.8.710
1.8.700
1.8.690
1.8.680
1.8.670
1.8.660
1.8.650
1.8.640
1.8.630
1.8.620
1.8.610
1.8.600
1.8.590
1.8.580
1.8.570
1.8.560
1.8.550
1.8.540
1.8.530
1.8.520
1.8.510
1.8.500
1.8.490
1.8.480
1.8.470
1.8.460
1.8.450
1.8.440
1.8.430
1.8.420
1.8.410
1.8.400
1.8.390
1.8.380
1.8.370
1.8.360
1.8.350
1.8.340
1.8.330
1.8.320
1.8.310
1.8.300
1.8.290
1.8.230
1.8.220
1.8.210
1.8.200
1.8.190
1.8.180
1.8.170
1.8.160
1.8.150
1.8.140
1.8.130
1.8.120
1.8.110
1.8.100
1.8.90
1.8.80
1.8.70
1.8.60
1.8.50
1.8.40
1.8.30
1.8.20
1.8.10
1.8.00
1.7.80
1.7.70
1.7.60
1.7.50
1.7.40
1.7.30
1.7.20
1.7.10
1.7.00
1.6.330
1.6.320
1.6.310
1.6.300
1.6.290
1.6.280
1.6.270
1.6.260
1.6.250
1.6.240
1.6.230
1.6.220
1.6.210
1.6.200
1.6.190
1.6.180
1.6.170
1.6.160
1.6.150
1.6.140
1.6.130
1.6.120
1.6.110
1.6.100
1.6.90
1.6.80
1.6.70
1.6.60
1.6.50
1.6.40
1.6.30
1.5.410
1.5.400
1.6.10
1.6.00
1.5.390
1.5.380
1.5.370
1.5.360
1.5.350
1.5.340
1.5.330
1.5.320
1.5.310
1.5.300
1.5.290
1.5.280
1.5.270
1.5.260
1.5.250
1.5.210
1.5.200
1.5.190
1.5.180
1.5.170
1.5.160
1.5.150
1.5.140
1.5.130
1.5.120
1.5.110
1.5.100
1.5.90
1.5.80
1.5.70
1.5.60
1.5.50
1.5.40
1.5.30
1.5.20
1.5.10
1.5.00
1.4.940
1.4.930
1.4.920
1.4.910
1.4.900
1.4.890
1.4.880
1.4.870
1.4.860
1.4.850
1.4.840
1.4.830
1.4.820
1.4.810
1.4.800
1.4.790
1.4.780
1.4.770
1.4.760
1.4.750
1.4.740
1.4.730
1.4.720
1.4.710
1.4.700
1.4.690
1.4.680
1.4.670
1.4.660
1.4.650
1.4.640
1.4.630
1.4.620
1.4.610
1.4.600
1.4.590
1.4.580
1.4.570
1.4.560
1.4.550
1.4.540
1.4.530
1.4.520
1.4.510
1.4.500
1.4.490
1.4.480
1.4.470
1.4.460
1.4.450
1.4.440
1.4.430
1.4.410
1.4.400
1.4.390
1.4.380
1.4.330
1.4.320
1.4.310
1.4.300
1.4.290
1.4.280
1.4.270
1.4.260
1.4.250
1.4.240
1.4.230
1.4.220
1.4.210
1.4.200
1.4.190
1.4.180
1.4.170
1.4.160
1.4.150
1.4.140
1.4.130
1.4.120
1.4.110
1.4.100
1.4.90
1.4.80
1.4.70
1.4.60
1.4.50
1.4.40
1.4.30
1.4.20
1.4.10
1.4.00
1.3.30
1.3.20
1.3.10
1.3.00
1.2.580
1.2.570
1.2.560
1.2.550
1.2.540
1.2.530
1.2.520
1.2.510
1.2.500
1.2.490
1.2.480
1.2.470
1.2.450
1.2.440
1.2.430
1.2.420
1.2.410
1.2.400
1.2.390
1.2.380
1.2.370
1.2.360
1.2.350
1.2.340
1.2.330
1.2.321
1.2.310
1.2.300
1.2.290
1.2.281
1.2.270
1.2.260
1.2.251
1.2.240
1.2.230
1.2.220
1.2.210
1.2.190
1.2.180
1.2.170
1.2.160
1.2.150
1.2.140
1.2.130
1.2.120
1.2.110
1.2.100
1.2.90
1.2.80
1.2.70
1.2.50
1.2.40
1.2.30
1.2.20
1.2.10
1.2.00
1.1.00
1.0.360
1.0.350
1.0.340
1.0.330
1.0.320
1.0.310
1.0.300
1.0.290
1.0.280
1.0.270
1.0.260
1.0.250
1.0.240
1.0.230
1.0.220
1.0.210
1.0.200
1.0.190
1.0.180
1.0.170
1.0.160
1.0.150
1.0.140
1.0.130
1.0.120
1.0.110
1.0.100
1.0.90
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00
0.7.2970
0.7.2960
0.7.2940
0.7.2930
0.7.2920
0.7.2901
0.7.2890
0.7.2881
0.7.2870
0.7.2860
0.7.2850
0.7.2840
0.7.2830
0.7.2820
0.7.2810
0.7.2800
0.7.2790
0.7.2780
0.7.2770
0.7.2760
0.7.2750
0.7.2740
0.7.2730
0.7.2720
0.7.2710
0.7.2700
0.7.2690
0.7.2680
0.7.2670
0.7.2660
0.7.2650
0.7.2640
0.7.2630
0.7.2620
0.7.2610
0.7.2600
0.7.2590
0.7.2580
0.7.2570
0.7.2560
0.7.2550
0.7.2540
0.7.2530
0.7.2520
0.7.2510
0.7.2500
0.7.2490
0.7.2480
0.7.2470
0.7.2460
0.7.2450
0.7.2440
0.7.2430
0.7.2420
0.7.2410
0.7.2400
0.7.2390
0.7.2380
0.7.2370
0.7.2360
0.7.2350
0.7.2340
0.7.2330
0.7.2320
0.7.2310
0.7.2300
0.7.2290
0.7.2280
0.7.2270
0.7.2260
0.7.2250
0.7.2240
0.7.2230
0.7.2220
0.7.2210
0.7.2200
0.7.2190
0.7.2180
0.7.2170
0.7.2160
0.7.2150
0.7.2140
0.7.2130
0.7.2120
0.7.2110
0.7.2100
0.7.2090
0.7.2080
0.7.2070
0.7.2060
0.7.2050
0.7.2040
0.7.2030
0.7.2020
0.7.2010
0.7.2000
0.7.1990
0.7.1980
0.7.1970
0.7.1960
0.7.1950
0.7.1940
0.7.1930
0.7.1920
0.7.1910
0.7.1900
0.7.1890
0.7.1880
0.7.1870
0.7.1860
0.7.1850
0.7.1840
0.7.1830
0.7.1820
0.7.1810
0.7.1800
0.7.1790
0.7.1780
0.7.1770
0.7.1760
0.7.1750
0.7.1740
0.7.1730
0.7.1720
0.7.1710
0.7.1700
0.7.1690
0.7.1680
0.7.1670
0.7.1660
0.7.1650
0.7.1640
0.7.1630
0.7.1620
0.7.1610
0.7.1600
0.7.1590
0.7.1580
0.7.1570
0.7.1560
0.7.1550
0.7.1540
0.7.1530
0.7.1520
0.7.1510
0.7.1500
0.7.1490
0.7.1480
0.7.1470
0.7.1460
0.7.1450
0.7.1440
0.7.1430
0.7.1420
0.7.1410
0.7.1400
0.7.1390
0.7.1380
0.7.1370
0.7.1360
0.7.1350
0.7.1340
0.7.1330
0.7.1320
0.7.1310
0.7.1300
0.7.1290
0.7.1280
0.7.1270
0.7.1260
0.7.1250
0.7.1240
0.7.1230
0.7.1220
0.7.1210
0.7.1200
0.7.1190
0.7.1180
0.7.1170
0.7.1160
0.7.1150
0.7.1140
0.7.1130
0.7.1120
0.7.1110
0.7.1100
0.7.1090
0.7.1080
0.7.1070
0.7.1060
0.7.1050
0.7.1040
0.7.1030
0.7.1020
0.7.1010
0.7.1000
0.7.980
0.7.970
0.7.960
0.7.950
0.7.940
0.7.930
0.7.920
0.7.910
0.7.860
0.7.850
0.7.840
0.7.830
0.7.820
0.7.810
0.7.720
0.7.710
0.7.680
0.7.670
0.7.660
0.7.650
0.7.640
0.7.630
0.7.620
0.7.610
0.7.520
0.7.510
0.7.440
0.7.430
0.7.420
0.7.410
0.7.340
0.7.330
0.7.310
0.7.300
0.7.290
0.7.280
0.7.270
0.7.260
0.7.250
0.7.230
0.7.210
0.7.200
0.7.190
0.7.180
0.7.170
0.7.160
0.7.150
0.7.140
0.7.130
0.7.120
0.7.90
0.7.80
0.7.70
0.7.60
0.7.50
0.7.40
0.7.20
0.7.10
0.7.00
0.6.90
0.6.80
0.6.70

Package Sidebar

Install

npm i @gapi/cli

Weekly Downloads

21

Version

1.8.151

License

MIT

Unpacked Size

193 kB

Total Files

92

Last publish

Collaborators

  • kristian.tachev
  • gapi