1.7.2 • Published 8 years ago
@4geit/ngx-template v1.7.2
ngx-template 
Scaffold the code base of an angular reusable module, component or service.
Installation
- A recommended way to install @4geit/ngx-template is through git repository using the following command:
git clone git@gitlab.com:4geit/angular/ngx-template.git
alternatively you can use the HTTPS URL:
git clone https://gitlab.com/4geit/angular/ngx-template.git
ngx-template
requires you to set those environment variables:
ANGULAR_NAMESPACE_ID
: the namespace id of the group/subgroup where you want the new project to be created (e.g. if you have the right two create a new project with the subgroup 4geit/angular, you can set it's namespace ID1693681
)GITLAB_PRIVATE_TOKEN
: a gitlab token allowed to create an account in the namespace ID (4geit/angular)GITLAB_AUTH_TOKEN
: a gitlab token allowed to release tags on the created projectNPM_TOKEN
: a npm token allowed to publish a package in the@4geit
organizationRUNNER_ID
: the runner id that will run the CI build.
If you are a BASH user, you can add those variables in your ~/.bashrc
file:
export ANGULAR_NAMESPACE_ID=1693681
export GITLAB_PRIVATE_TOKEN=XXXX
export GITLAB_AUTH_TOKEN=XXXX
export NPM_TOKEN=XXXX
export RUNNER_ID=XXXX
Create a new repository
- The easiest way to generate a new repository with
ngx-template
is to use the following command line:
./ngx-template/create-new-repo.sh
The command will ask a set of values such as:
<NAME>
: the name of the repository the one used inngx-<NAME>-<TYPE>
<TYPE>
: the type of the repository the one used inngx-<NAME>-<TYPE>
it can contain the valuemodule
,component
orservice
<AUTHOR_NAME>
: the name of the author stored in thepackage.json
<AUTHOR_EMAIL>
: the name of the author stored in thepackage.json
<DESCRIPTION>
: the description of the project stored in thepackage.json
andREADME.md
- But you can also use the command argument by doing so:
./ngx-template/create-new-repo.sh <NAME> <TYPE> <AUTHOR_NAME> <AUTHOR_EMAIL>
You will still be asked to type the description though.
- You can also skip typing the author name and email each time by setting those environment variables:
export AUTHOR_NAME="Master Peace"
export AUTHOR_EMAIL="master.peace@provider.xyz"
1.7.2
8 years ago
1.7.1
8 years ago
1.7.0
8 years ago
1.6.4
8 years ago
1.6.3
8 years ago
1.6.2
8 years ago
1.6.1
8 years ago
1.6.0
8 years ago
1.5.6
8 years ago
1.5.5
8 years ago
1.5.4
8 years ago
1.5.3
8 years ago
1.5.2
8 years ago
1.5.1
8 years ago
1.5.0
8 years ago
1.4.0
8 years ago
1.3.0
8 years ago
1.2.1
8 years ago
1.2.0
8 years ago
1.1.3
8 years ago
1.1.2
8 years ago
1.1.1
8 years ago
1.1.0
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago