2.0.7 • Published 3 years ago

generator_poc v2.0.7

Weekly downloads
1
License
ISC
Repository
-
Last release
3 years ago

Generator POC

Generate apps with no manual configurations It works on Windows, MacOS, and Linux

Note

Currently stable template is Webmd Client Template. Hence please select it as your templates choice. Below templates are still under development: React, Angular, Vue

Pre-requisites

Make sure you have below setup before using this plugin:

   1. Gitlab SSH-key setup on your machine
   2. Node JS command line tool installed on your machine
   3. Node JS version >=8.0.0 installed

Quick Overview

For better performance, it's is recommended to run the tool in NodeJS command prompt in Administrator mode

npm i -g generator_poc
cd <project-location>
generate

The generate command will ask a couple of questions and wil generate initial folder structure with all configurations required in your project.

? What project template would you like to generate `Webmd Client Template`
================================================
Setting up webmd-client-template application
================================================
? Name of Client : astra-zenca
? Please Enter SF# : 20203.9
? Please Enter Brand Name : farxiga
? Please Enter Program Name : edit-destination
? Please Enter Friendly url : diabetes heart-20        

It will create a directory called <client-name> inside the current folder. Inside that directory, it will generate the initial project structure and install the transitive dependencies:

<client-name>/
    └──<brand-name>/
        └──<program-name>/
            ├── README.md
            ├── node_modules/
            └── src/
                └── css/
                    └── overrides.scss
                    └── style.scss
                ├── img/
                └── js/
                    └── script.js
                ├── modules/
                └── <friendly-url>.html
            ├── .babelrc
            ├── .eslintrc
            ├── .gitignore
            ├── .npmignore
            ├── .stylelintrc
            ├── Gruntfile.js
            ├── package.json
            └── sponsor.config.js
            

Few more commands

You can use this command to generate any new js, scss or html file under your program. Just cd to you program path and run this command:

Note: If you have selected Webmd Client Template from your choices for template then you will have access to below commands:

generate-file-type <type> <fileName>

generate-file-type html <filename> //generate-file-type html demo
generate-file-type js <filename> //generate-file-type js demo
generate-file-type scss <filename> //generate-file-typr scss demo

generate-program

If you want to create a new program under the same brand name just cd to you project path (under client name or brand name) and run this command. This will ask a couple of questions and wil generate initial folder structure with all configurations required in your project.

D:\workspace\revenue\generate_test\astra-zeneca>generate-program
? Please Enter SF# 2020.18 
? Please Enter Program Name : <example-program-name>
? Please Enter Friendly url : <example-friendly-url>

generate-brand

If you want to create a new brand under the same client name just cd to your project's root folder and run this command. This will ask a couple of questions and wil generate initial folder structure with all configurations required under your brand.

D:\workspace\revenue\generate_test\astra-zeneca>generate-brand
? Please Enter SF# 2020.19 
? Please Enter Brand Name : <example-brand-name>
? Please Enter Program Name : <example-program-name>
? Please Enter Friendly url : <example-friendly-url>

HOW TO RUN GENERATOR LOCALLY


Directly run from code rather than installing(dev-mode)

  • Run npm link command on your local to set your binary commands(eg: generate, generate-program etc.), which will point to local folder
  • Start making changes in your generator code and try the commands again to run them with updated codes

Create local package instead of publishing it everytime to npmjs.com

npm pack //this will create a generator_poc-<version>.tgz file at current location
npm i -g generator_poc-2.0.3.tgz

Steps for package publishing

  • npm version patch => To set new version for the package. Click here to learn more about versioning
  • npm publish => To publish the package to npmjs.com
2.0.7

3 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.11.35

4 years ago

1.11.34

4 years ago

1.11.33

4 years ago

1.11.32

4 years ago

1.11.31

4 years ago

1.11.30

4 years ago

1.11.29

4 years ago

1.11.28

4 years ago

1.11.27

4 years ago

1.11.25

4 years ago

1.11.26

4 years ago

1.11.24

4 years ago

1.11.23

4 years ago

1.11.21

4 years ago

1.11.22

4 years ago

1.11.20

4 years ago

1.11.19

4 years ago

1.11.17

4 years ago

1.11.18

4 years ago

1.11.16

4 years ago

1.11.15

4 years ago

1.11.14

4 years ago

1.11.13

4 years ago

1.11.12

4 years ago

1.11.11

4 years ago

1.11.10

4 years ago

1.11.9

4 years ago

1.11.8

4 years ago

1.11.7

4 years ago

1.11.6

4 years ago

1.11.5

4 years ago

1.11.4

4 years ago

1.11.3

4 years ago

1.11.2

4 years ago

1.11.1

4 years ago

1.11.0-0

4 years ago

1.10.0-0

4 years ago

1.11.0

4 years ago

1.9.9

4 years ago

1.9.8

4 years ago

1.9.7

4 years ago

1.9.6

4 years ago

1.9.5

4 years ago

1.9.4

4 years ago

1.9.3

4 years ago

1.9.1

4 years ago

1.9.2

4 years ago

1.9.0

4 years ago

1.8.0

4 years ago

1.7.0

4 years ago

1.2.0

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.1.0

4 years ago

1.0.0-rc.3

4 years ago

1.0.0-rc.1

4 years ago

1.0.0-rc.2

4 years ago

1.0.0

4 years ago