Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
feat: angular ui package
Browse files Browse the repository at this point in the history
  • Loading branch information
JamilOmar committed Feb 18, 2020
1 parent 9322c76 commit 358e33c
Show file tree
Hide file tree
Showing 231 changed files with 3,607 additions and 2,574 deletions.
36 changes: 3 additions & 33 deletions lib/commands/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const create = function () {
message: 'Which type of LabShare package do you want to create?',
type: 'list',
default: 'cli',
choices: ['cli', 'ui', 'api', 'angular', 'library']
choices: ['cli', 'api', 'ui']
},
{
name: 'appName',
Expand Down Expand Up @@ -56,27 +56,12 @@ export const create = function () {
answers.appTitle = startCase(answers.appName).split(' ').join('');
answers.appYear = year;

if (answers.projectType === 'library') {
gulp.src([
`${__dirname}/../../templates/${answers.projectType}-package/**`
])
.pipe(template(answers))
.pipe(rename(file => {
if (file.basename[0] === '_') {
file.basename = '.' + file.basename.slice(1);
}
}))
.pipe(gulp.dest('./'))
.on('end', () => {
this.log.info(`Successfully moved inmutable LabShare ${answers.projectType} package's files...`);
});
return;
}

gulp.src([
`${__dirname}/../../templates/common/**`,
`${__dirname}/../../templates/${answers.projectType}-package/**`
])
.pipe(template(answers))
.pipe(template(answers , {'interpolate' : /<%=([\s\S]+?)%>/g}))
.pipe(rename(file => {
if (file.basename[0] === '_') {
file.basename = '.' + file.basename.slice(1);
Expand All @@ -86,21 +71,6 @@ export const create = function () {
.on('end', () => {
this.log.info(`Successfully created LabShare ${answers.projectType} package...`);
});
if (answers.projectType === 'angular') {
gulp.src([
`${__dirname}/../../templates/inmutable/ui/**`
])
.pipe(rename(file => {
if (file.basename[0] === '_') {
file.basename = '.' + file.basename.slice(1);
}
}))
.pipe(gulp.dest('./'))
.on('end', () => {
this.log.info(`Successfully moved inmutable LabShare ${answers.projectType} package's files...`);
});

}
});
}

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@
"gulp": "^4.0.0",
"gulp-rename": "^1.2.3",
"gulp-template": "^5.0.0",
"i": "^0.3.6",
"inquirer": "^6.0.0",
"json-override": "^0.2.0",
"lodash": "^4.12.0",
"npm": "^6.13.7",
"request": "^2.88.0",
"resolve-pkg": "^1.0.0",
"semver": "^5.3.0",
Expand Down
115 changes: 0 additions & 115 deletions templates/angular-package/README.md

This file was deleted.

47 changes: 0 additions & 47 deletions templates/angular-package/_labsharerc

This file was deleted.

1 change: 0 additions & 1 deletion templates/angular-package/commitlint.config.js

This file was deleted.

4 changes: 0 additions & 4 deletions templates/angular-package/config/default.json

This file was deleted.

108 changes: 0 additions & 108 deletions templates/angular-package/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions templates/angular-package/test/README.md

This file was deleted.

Loading

0 comments on commit 358e33c

Please sign in to comment.