Skip to content

Commit

Permalink
Merge pull request #90 from andrewconnell/issue/86-addtsconfig
Browse files Browse the repository at this point in the history
Added `tsconfig.json` to root of all gen'd projects, closing #86
  • Loading branch information
andrewconnell committed Nov 8, 2015
2 parents c2eb363 + e0e4f02 commit 6b8e46e
Show file tree
Hide file tree
Showing 24 changed files with 99 additions and 0 deletions.
12 changes: 12 additions & 0 deletions generators/content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,10 @@ module.exports = generators.Base.extend({
this.fs.copy(this.templatePath('common/_jsconfig.json'),
this.destinationPath('jsconfig.json'));

// copy tsconfig files
this.fs.copy(this.templatePath('common/_tsconfig.json'),
this.destinationPath('tsconfig.json'));

// create the manifest file
this.fs.copyTpl(this.templatePath('common/manifest.xml'),
this.destinationPath(manifestFilename),
Expand Down Expand Up @@ -587,6 +591,10 @@ module.exports = generators.Base.extend({
this.fs.copy(this.templatePath('common/_jsconfig.json'),
this.destinationPath('jsconfig.json'));

// copy tsconfig files
this.fs.copy(this.templatePath('common/_tsconfig.json'),
this.destinationPath('tsconfig.json'));

// create the manifest file
this.fs.copyTpl(this.templatePath('common/manifest.xml'),
this.destinationPath(manifestFilename),
Expand Down Expand Up @@ -617,6 +625,10 @@ module.exports = generators.Base.extend({
this.fs.copy(this.templatePath('common/_jsconfig.json'),
this.destinationPath('jsconfig.json'));

// copy tsconfig files
this.fs.copy(this.templatePath('common/_tsconfig.json'),
this.destinationPath('tsconfig.json'));

// create the manifest file
this.fs.copyTpl(this.templatePath('ng-adal/manifest.xml'),
this.destinationPath(manifestFilename),
Expand Down
11 changes: 11 additions & 0 deletions generators/content/templates/common/_tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"removeComments": true,
"inlineSourceMap": true
},
"exclude": [
"node_modules"
]
}
12 changes: 12 additions & 0 deletions generators/mail/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,10 @@ module.exports = generators.Base.extend({
this.fs.copy(this.templatePath('common/_jsconfig.json'),
this.destinationPath('jsconfig.json'));

// copy tsconfig files
this.fs.copy(this.templatePath('common/_tsconfig.json'),
this.destinationPath('tsconfig.json'));

// create the manifest file
this.fs.copyTpl(this.templatePath('common/manifest.xml'),
this.destinationPath(manifestFilename),
Expand Down Expand Up @@ -609,6 +613,10 @@ module.exports = generators.Base.extend({
this.fs.copy(this.templatePath('common/_jsconfig.json'),
this.destinationPath('jsconfig.json'));

// copy tsconfig files
this.fs.copy(this.templatePath('common/_tsconfig.json'),
this.destinationPath('tsconfig.json'));

// create the manifest file
this.fs.copyTpl(this.templatePath('common/manifest.xml'),
this.destinationPath(manifestFilename),
Expand Down Expand Up @@ -661,6 +669,10 @@ module.exports = generators.Base.extend({
this.fs.copy(this.templatePath('common/_jsconfig.json'),
this.destinationPath('jsconfig.json'));

// copy tsconfig files
this.fs.copy(this.templatePath('common/_tsconfig.json'),
this.destinationPath('tsconfig.json'));

// create the manifest file
this.fs.copyTpl(this.templatePath('ng-adal/manifest.xml'),
this.destinationPath(manifestFilename),
Expand Down
11 changes: 11 additions & 0 deletions generators/mail/templates/common/_tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"removeComments": true,
"inlineSourceMap": true
},
"exclude": [
"node_modules"
]
}
12 changes: 12 additions & 0 deletions generators/taskpane/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,10 @@ module.exports = generators.Base.extend({
this.fs.copy(this.templatePath('common/_jsconfig.json'),
this.destinationPath('jsconfig.json'));

// copy tsconfig files
this.fs.copy(this.templatePath('common/_tsconfig.json'),
this.destinationPath('tsconfig.json'));

// create the manifest file
this.fs.copyTpl(this.templatePath('common/manifest.xml'),
this.destinationPath(manifestFilename),
Expand Down Expand Up @@ -585,6 +589,10 @@ module.exports = generators.Base.extend({
this.fs.copy(this.templatePath('common/_jsconfig.json'),
this.destinationPath('jsconfig.json'));

// copy tsconfig files
this.fs.copy(this.templatePath('common/_tsconfig.json'),
this.destinationPath('tsconfig.json'));

// create the manifest file
this.fs.copyTpl(this.templatePath('common/manifest.xml'),
this.destinationPath(manifestFilename),
Expand Down Expand Up @@ -615,6 +623,10 @@ module.exports = generators.Base.extend({
this.fs.copy(this.templatePath('common/_jsconfig.json'),
this.destinationPath('jsconfig.json'));

// copy tsconfig files
this.fs.copy(this.templatePath('common/_tsconfig.json'),
this.destinationPath('tsconfig.json'));

// create the manifest file
this.fs.copyTpl(this.templatePath('ng-adal/manifest.xml'),
this.destinationPath(manifestFilename),
Expand Down
11 changes: 11 additions & 0 deletions generators/taskpane/templates/common/_tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"removeComments": true,
"inlineSourceMap": true
},
"exclude": [
"node_modules"
]
}
1 change: 1 addition & 0 deletions test/content/existingproj-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ describe('office:content', function () {
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
addinRootPath + '/app/app.js',
addinRootPath + '/app/app.css',
addinRootPath + '/app/home/home.js',
Expand Down
1 change: 1 addition & 0 deletions test/content/existingproj-ng.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ describe('office:content', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
addinRootPath + '/index.html',
addinRootPath + '/app/app.module.js',
addinRootPath + '/app/app.routes.js',
Expand Down
1 change: 1 addition & 0 deletions test/content/existingproj-ngadal.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ describe('office:content', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
addinRootPath + '/index.html',
addinRootPath + '/app/app.module.js',
addinRootPath + '/app/app.adalconfig.js',
Expand Down
1 change: 1 addition & 0 deletions test/content/newproj-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ describe('office:content', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
'app/app.js',
'app/app.css',
'app/home/home.js',
Expand Down
1 change: 1 addition & 0 deletions test/content/newproj-ng.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ describe('office:content', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
'index.html',
'app/app.module.js',
'app/app.routes.js',
Expand Down
1 change: 1 addition & 0 deletions test/content/newproj-ngadal.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ describe('office:content', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
'index.html',
'app/app.module.js',
'app/app.adalconfig.js',
Expand Down
3 changes: 3 additions & 0 deletions test/mail/existingproj-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ describe('office:mail', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
addinRootPath + '/appcompose/app.js',
addinRootPath + '/appcompose/app.css',
addinRootPath + '/appcompose/home/home.js',
Expand Down Expand Up @@ -426,6 +427,7 @@ describe('office:mail', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
addinRootPath + '/appread/app.js',
addinRootPath + '/appread/app.css',
addinRootPath + '/appread/home/home.js',
Expand Down Expand Up @@ -594,6 +596,7 @@ describe('office:mail', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
addinRootPath + '/appcompose/app.js',
addinRootPath + '/appcompose/app.css',
addinRootPath + '/appcompose/home/home.js',
Expand Down
3 changes: 3 additions & 0 deletions test/mail/existingproj-ng.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ describe('office:mail', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
addinRootPath + '/appcompose/index.html',
addinRootPath + '/appcompose/app.module.js',
addinRootPath + '/appcompose/app.routes.js',
Expand Down Expand Up @@ -429,6 +430,7 @@ describe('office:mail', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
addinRootPath + '/appread/index.html',
addinRootPath + '/appread/app.module.js',
addinRootPath + '/appread/app.routes.js',
Expand Down Expand Up @@ -598,6 +600,7 @@ describe('office:mail', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
addinRootPath + '/appcompose/index.html',
addinRootPath + '/appcompose/app.module.js',
addinRootPath + '/appcompose/app.routes.js',
Expand Down
3 changes: 3 additions & 0 deletions test/mail/existingproj-ngadal.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ describe('office:mail', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
addinRootPath + '/appcompose/index.html',
addinRootPath + '/appcompose/app.module.js',
addinRootPath + '/appcompose/app.adalconfig.js',
Expand Down Expand Up @@ -478,6 +479,7 @@ describe('office:mail', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
addinRootPath + '/appread/index.html',
addinRootPath + '/appread/app.module.js',
addinRootPath + '/appread/app.adalconfig.js',
Expand Down Expand Up @@ -651,6 +653,7 @@ describe('office:mail', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
addinRootPath + '/appcompose/index.html',
addinRootPath + '/appcompose/app.module.js',
addinRootPath + '/appcompose/app.adalconfig.js',
Expand Down
3 changes: 3 additions & 0 deletions test/mail/newproj-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ describe('office:mail', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
'appcompose/app.js',
'appcompose/app.css',
'appcompose/home/home.js',
Expand Down Expand Up @@ -414,6 +415,7 @@ describe('office:mail', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
'appread/app.js',
'appread/app.css',
'appread/home/home.js',
Expand Down Expand Up @@ -578,6 +580,7 @@ describe('office:mail', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
'appcompose/app.js',
'appcompose/app.css',
'appcompose/home/home.js',
Expand Down
3 changes: 3 additions & 0 deletions test/mail/newproj-ng.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ describe('office:mail', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
'appcompose/index.html',
'appcompose/app.module.js',
'appcompose/app.routes.js',
Expand Down Expand Up @@ -417,6 +418,7 @@ describe('office:mail', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
'appread/index.html',
'appread/app.module.js',
'appread/app.routes.js',
Expand Down Expand Up @@ -583,6 +585,7 @@ describe('office:mail', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
'appcompose/index.html',
'appcompose/app.module.js',
'appcompose/app.routes.js',
Expand Down
3 changes: 3 additions & 0 deletions test/mail/newproj-ngadal.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ describe('office:mail', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
'appcompose/index.html',
'appcompose/app.module.js',
'appcompose/app.adalconfig.js',
Expand Down Expand Up @@ -466,6 +467,7 @@ describe('office:mail', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
'appread/index.html',
'appread/app.module.js',
'appread/app.adalconfig.js',
Expand Down Expand Up @@ -636,6 +638,7 @@ describe('office:mail', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
'appcompose/index.html',
'appcompose/app.module.js',
'appcompose/app.adalconfig.js',
Expand Down
1 change: 1 addition & 0 deletions test/taskpane/existingproj-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ describe('office:taskpane', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
addinRootPath + '/app/app.js',
addinRootPath + '/app/app.css',
addinRootPath + '/app/home/home.js',
Expand Down
1 change: 1 addition & 0 deletions test/taskpane/existingproj-ng.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ describe('office:taskpane', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
addinRootPath + '/index.html',
addinRootPath + '/app/app.module.js',
addinRootPath + '/app/app.routes.js',
Expand Down
1 change: 1 addition & 0 deletions test/taskpane/existingproj-ngadal.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ describe('office:taskpane', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
addinRootPath + '/index.html',
addinRootPath + '/app/app.module.js',
addinRootPath + '/app/app.adalconfig.js',
Expand Down
1 change: 1 addition & 0 deletions test/taskpane/newproj-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ describe('office:taskpane', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
'app/app.js',
'app/app.css',
'app/home/home.js',
Expand Down
1 change: 1 addition & 0 deletions test/taskpane/newproj-ng.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ describe('office:taskpane', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
'index.html',
'app/app.module.js',
'app/app.routes.js',
Expand Down
1 change: 1 addition & 0 deletions test/taskpane/newproj-ngadal.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ describe('office:taskpane', function(){
'manifest.xsd',
'tsd.json',
'jsconfig.json',
'tsconfig.json',
'index.html',
'app/app.module.js',
'app/app.adalconfig.js',
Expand Down

0 comments on commit 6b8e46e

Please sign in to comment.