-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 1.4.0 * fix settings * Add viewer in all generated options app (#84) * add viewer in all the generated options * install folder instead to copy * how to update generator doc * fix links * copy try * update to 1.5.0 (#85) * update to 1.5.0 * remove increase size memory * fix license header and images dist * remove license header * change package metadata * 1.6.0 (#88) * 1.6.2 correct version charts * 1.6.2 (#90) * 1.6.2 * tsconfig.dev.json * 1.7.0 (#92) * 1.8.0 (#94) * 1.8.0 update * fix app config service * 10 elements in task service * replace alpha version with final version in package.json * Completely reworked generator (2.0.0) (#96) * regenerate package lock * rework generator from scratch * documentation cleanup * show description in blueprint selector * blank adf ng-cli template * acs template * aps template * modify choose project creation 3 project mix cs ps add test * fix all * code and template fixes * 1.9.0 (#98)
- Loading branch information
Showing
302 changed files
with
6,414 additions
and
13,930 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,186 @@ | ||
'use strict'; | ||
const path = require('path'); | ||
const assert = require('yeoman-assert'); | ||
const helpers = require('yeoman-test'); | ||
|
||
describe('Alfresco component generator', () => { | ||
|
||
describe('Content Service', () => { | ||
beforeEach(() => { | ||
return helpers.run(path.join(__dirname, '../app')) | ||
.withPrompts({ | ||
name: 'adf-cli-acs-template', | ||
blueprint: 'Content Service' | ||
}); | ||
}); | ||
|
||
it('created and CD into a folder named like the generator', () => { | ||
assert.equal(path.basename(process.cwd()), 'adf-cli-acs-template'); | ||
}); | ||
|
||
it('creates files', () => { | ||
const expected = [ | ||
'.editorconfig', | ||
'.angular-cli.json', | ||
'.gitignore', | ||
'.travis.yml', | ||
'LICENSE', | ||
'README.md', | ||
'karma.conf.js', | ||
'package.json', | ||
'protractor-ci.conf.js', | ||
'protractor.conf.js', | ||
'proxy.conf.json', | ||
'tsconfig.json', | ||
'tslint.json', | ||
'src/index.html', | ||
'src/app/home/home.component.ts', | ||
'src/app/home/home.component.css', | ||
'src/app/home/home.component.html', | ||
'src/app/home/home.component.spec.ts', | ||
'src/app/documentlist/documentlist.component.spec.ts', | ||
'src/app/documentlist/documentlist.component.html', | ||
'src/app/documentlist/documentlist.component.css', | ||
'src/app/documentlist/documentlist.component.ts', | ||
'e2e/app.e2e-spec.ts' | ||
]; | ||
|
||
assert.file(expected); | ||
}); | ||
|
||
it('fills package.json with correct information', () => { | ||
assert.JSONFileContent('package.json', { // eslint-disable-line new-cap | ||
name: 'adf-cli-acs-template' | ||
}); | ||
}); | ||
|
||
it('fills the README with project data', () => { | ||
assert.fileContent('README.md', 'ADF/ACS Application with Angular CLI'); | ||
}); | ||
|
||
}); | ||
|
||
describe('Process Service', () => { | ||
beforeEach(() => { | ||
return helpers.run(path.join(__dirname, '../app')) | ||
.withPrompts({ | ||
name: 'adf-cli-aps-template', | ||
blueprint: 'Process Service' | ||
}); | ||
}); | ||
|
||
it('created and CD into a folder named like the generator', () => { | ||
assert.equal(path.basename(process.cwd()), 'adf-cli-aps-template'); | ||
}); | ||
|
||
it('creates files', () => { | ||
const expected = [ | ||
'.editorconfig', | ||
'.angular-cli.json', | ||
'.gitignore', | ||
'.travis.yml', | ||
'LICENSE', | ||
'README.md', | ||
'karma.conf.js', | ||
'package.json', | ||
'protractor-ci.conf.js', | ||
'protractor.conf.js', | ||
'proxy.conf.json', | ||
'tsconfig.json', | ||
'tslint.json', | ||
'src/index.html', | ||
'src/app/home/home.component.ts', | ||
'src/app/home/home.component.css', | ||
'src/app/home/home.component.html', | ||
'src/app/home/home.component.spec.ts', | ||
'src/app/task-details/task-details.component.spec.ts', | ||
'src/app/task-details/task-details.component.html', | ||
'src/app/task-details/task-details.component.css', | ||
'src/app/task-details/task-details.component.ts', | ||
'src/app/tasks/tasks.component.spec.ts', | ||
'src/app/tasks/tasks.component.html', | ||
'src/app/tasks/tasks.component.css', | ||
'src/app/tasks/tasks.component.ts', | ||
'e2e/app.e2e-spec.ts' | ||
]; | ||
|
||
assert.file(expected); | ||
}); | ||
|
||
it('fills package.json with correct information', () => { | ||
assert.JSONFileContent('package.json', { // eslint-disable-line new-cap | ||
name: 'adf-cli-aps-template' | ||
}); | ||
}); | ||
|
||
it('fills the README with project data', () => { | ||
assert.fileContent('README.md', 'ADF/APS Application with Angular CLI'); | ||
}); | ||
|
||
}); | ||
|
||
describe('Process Service and Content Service', () => { | ||
beforeEach(() => { | ||
return helpers.run(path.join(__dirname, '../app')) | ||
.withPrompts({ | ||
name: 'adf-cli-acs-aps-template', | ||
blueprint: 'Process Service and Content Service' | ||
}); | ||
}); | ||
|
||
it('created and CD into a folder named like the generator', () => { | ||
assert.equal(path.basename(process.cwd()), 'adf-cli-acs-aps-template'); | ||
}); | ||
|
||
it('creates files', () => { | ||
const expected = [ | ||
'.editorconfig', | ||
'.angular-cli.json', | ||
'.gitignore', | ||
'.travis.yml', | ||
'LICENSE', | ||
'README.md', | ||
'karma.conf.js', | ||
'package.json', | ||
'protractor-ci.conf.js', | ||
'protractor.conf.js', | ||
'proxy.conf.json', | ||
'tsconfig.json', | ||
'tslint.json', | ||
'src/index.html', | ||
'src/app/home/home.component.ts', | ||
'src/app/home/home.component.css', | ||
'src/app/home/home.component.html', | ||
'src/app/home/home.component.spec.ts', | ||
'src/app/task-details/task-details.component.spec.ts', | ||
'src/app/task-details/task-details.component.html', | ||
'src/app/task-details/task-details.component.css', | ||
'src/app/task-details/task-details.component.ts', | ||
'src/app/tasks/tasks.component.spec.ts', | ||
'src/app/tasks/tasks.component.html', | ||
'src/app/tasks/tasks.component.css', | ||
'src/app/tasks/tasks.component.ts', | ||
'src/app/documentlist/documentlist.component.spec.ts', | ||
'src/app/documentlist/documentlist.component.html', | ||
'src/app/documentlist/documentlist.component.css', | ||
'src/app/documentlist/documentlist.component.ts', | ||
'e2e/app.e2e-spec.ts' | ||
]; | ||
|
||
assert.file(expected); | ||
}); | ||
|
||
it('fills package.json with correct information', () => { | ||
assert.JSONFileContent('package.json', { // eslint-disable-line new-cap | ||
name: 'adf-cli-acs-aps-template' | ||
}); | ||
}); | ||
|
||
it('fills the README with project data', () => { | ||
assert.fileContent('README.md', 'ADF/APS/ACS Application with Angular CLI'); | ||
}); | ||
|
||
}); | ||
|
||
|
||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.