Skip to content

Commit

Permalink
Added tsconfig.json to root of all gen'd projects, closing OfficeDe…
Browse files Browse the repository at this point in the history
…v#86

Added `tsconfig.json` to the root of all projects, assisting in intellisense/autocomplete in editors (such as VSCode) that will automatically load the office.d.ts typedefinition file.
  • Loading branch information
andrewconnell committed Nov 7, 2015
1 parent 7116614 commit e0e4f02
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 @@ -557,6 +557,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('manifest.xml'),
Expand Down Expand Up @@ -584,6 +588,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('manifest.xml'),
Expand Down Expand Up @@ -614,6 +622,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('manifest.xml'),
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 @@ -559,6 +559,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('manifest.xml'),
Expand Down Expand Up @@ -606,6 +610,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('manifest.xml'),
Expand Down Expand Up @@ -658,6 +666,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('manifest.xml'),
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 @@ -555,6 +555,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('manifest.xml'),
Expand Down Expand Up @@ -582,6 +586,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('manifest.xml'),
Expand Down Expand Up @@ -612,6 +620,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('manifest.xml'),
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 @@ -120,6 +120,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 @@ -118,6 +118,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 @@ -120,6 +120,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 @@ -113,6 +113,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 @@ -112,6 +112,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 @@ -114,6 +114,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 @@ -119,6 +119,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 @@ -422,6 +423,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 @@ -590,6 +592,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 @@ -117,6 +117,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 @@ -425,6 +426,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 @@ -594,6 +596,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 @@ -119,6 +119,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 @@ -474,6 +475,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 @@ -647,6 +649,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 @@ -115,6 +115,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 @@ -410,6 +411,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 @@ -574,6 +576,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 @@ -114,6 +114,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 @@ -413,6 +414,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 @@ -579,6 +581,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 @@ -116,6 +116,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 @@ -462,6 +463,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 @@ -632,6 +634,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 @@ -81,6 +81,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 @@ -79,6 +79,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 @@ -81,6 +81,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 @@ -114,6 +114,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 @@ -113,6 +113,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 @@ -115,6 +115,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 e0e4f02

Please sign in to comment.