Skip to content

Commit

Permalink
added tsd.json & jsconfig.json to gen'd projects ref [issue#20](#20) …
Browse files Browse the repository at this point in the history
…& [issue#21](#21)
  • Loading branch information
andrewconnell committed Sep 2, 2015
1 parent a7ce66a commit 76695e3
Show file tree
Hide file tree
Showing 24 changed files with 165 additions and 0 deletions.
8 changes: 8 additions & 0 deletions generators/content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@ module.exports = generators.Base.extend({
// determine startpage for addin
this.genConfig.startPage = 'https://localhost:8443/app/home/home.html';

// copy tsd & jsconfig files
this.fs.copy(this.templatePath('html/_tsd.json'), this.destinationPath('tsd.json'));
this.fs.copy(this.templatePath('common/_jsconfig.json'), this.destinationPath('jsconfig.json'));

// create the manifest file
this.fs.copyTpl(this.templatePath('common/manifest.xml'), this.destinationPath('manifest.xml'), this.genConfig);

Expand All @@ -302,6 +306,10 @@ module.exports = generators.Base.extend({
// determine startpage for addin
this.genConfig.startPage = 'https://localhost:8443/index.html';

// copy tsd & jsconfig files
this.fs.copy(this.templatePath('html/_tsd.json'), this.destinationPath('tsd.json'));
this.fs.copy(this.templatePath('common/_jsconfig.json'), this.destinationPath('jsconfig.json'));

// create the manifest file
this.fs.copyTpl(this.templatePath('common/manifest.xml'), this.destinationPath('manifest.xml'), this.genConfig);

Expand Down
6 changes: 6 additions & 0 deletions generators/content/templates/common/_jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"compilerOptions": {
"target": "ES5",
"module": "commonjs"
}
}
12 changes: 12 additions & 0 deletions generators/content/templates/html/_tsd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": "v4",
"repo": "borisyankov/DefinitelyTyped",
"ref": "master",
"path": "typings",
"bundle": "typings/tsd.d.ts",
"installed": {
"jquery/jquery.d.ts": {
"commit": "04a025ada3492a22df24ca2d8521c911697721b3"
}
}
}
21 changes: 21 additions & 0 deletions generators/content/templates/ng/_tsd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"version": "v4",
"repo": "borisyankov/DefinitelyTyped",
"ref": "master",
"path": "typings",
"bundle": "typings/tsd.d.ts",
"installed": {
"jquery/jquery.d.ts": {
"commit": "04a025ada3492a22df24ca2d8521c911697721b3"
},
"angularjs/angular.d.ts": {
"commit": "04a025ada3492a22df24ca2d8521c911697721b3"
},
"angularjs/angular-route.d.ts": {
"commit": "04a025ada3492a22df24ca2d8521c911697721b3"
},
"angularjs/angular-sanitize.d.ts": {
"commit": "04a025ada3492a22df24ca2d8521c911697721b3"
}
}
}
8 changes: 8 additions & 0 deletions generators/mail/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ module.exports = generators.Base.extend({
// determine startpage for addin
this.genConfig.startPage = 'https://localhost:8443/appcompose/home/home.html';

// copy tsd & jsconfig files
this.fs.copy(this.templatePath('html/_tsd.json'), this.destinationPath('tsd.json'));
this.fs.copy(this.templatePath('common/_jsconfig.json'), this.destinationPath('jsconfig.json'));

// create the manifest file
this.fs.copyTpl(this.templatePath('common/manifest.xml'), this.destinationPath('manifest.xml'), this.genConfig);

Expand All @@ -307,6 +311,10 @@ module.exports = generators.Base.extend({
// determine startpage for addin
this.genConfig.startPage = 'https://localhost:8443/appcompose/index.html';

// copy tsd & jsconfig files
this.fs.copy(this.templatePath('html/_tsd.json'), this.destinationPath('tsd.json'));
this.fs.copy(this.templatePath('common/_jsconfig.json'), this.destinationPath('jsconfig.json'));

// create the manifest file
this.fs.copyTpl(this.templatePath('common/manifest.xml'), this.destinationPath('manifest.xml'), this.genConfig);

Expand Down
6 changes: 6 additions & 0 deletions generators/mail/templates/common/_jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"compilerOptions": {
"target": "ES5",
"module": "commonjs"
}
}
12 changes: 12 additions & 0 deletions generators/mail/templates/html/_tsd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": "v4",
"repo": "borisyankov/DefinitelyTyped",
"ref": "master",
"path": "typings",
"bundle": "typings/tsd.d.ts",
"installed": {
"jquery/jquery.d.ts": {
"commit": "04a025ada3492a22df24ca2d8521c911697721b3"
}
}
}
21 changes: 21 additions & 0 deletions generators/mail/templates/ng/_tsd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"version": "v4",
"repo": "borisyankov/DefinitelyTyped",
"ref": "master",
"path": "typings",
"bundle": "typings/tsd.d.ts",
"installed": {
"jquery/jquery.d.ts": {
"commit": "04a025ada3492a22df24ca2d8521c911697721b3"
},
"angularjs/angular.d.ts": {
"commit": "04a025ada3492a22df24ca2d8521c911697721b3"
},
"angularjs/angular-route.d.ts": {
"commit": "04a025ada3492a22df24ca2d8521c911697721b3"
},
"angularjs/angular-sanitize.d.ts": {
"commit": "04a025ada3492a22df24ca2d8521c911697721b3"
}
}
}
8 changes: 8 additions & 0 deletions generators/taskpane/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ module.exports = generators.Base.extend({
// determine startpage for addin
this.genConfig.startPage = 'https://localhost:8443/app/home/home.html';

// copy tsd & jsconfig files
this.fs.copy(this.templatePath('html/_tsd.json'), this.destinationPath('tsd.json'));
this.fs.copy(this.templatePath('common/_jsconfig.json'), this.destinationPath('jsconfig.json'));

// create the manifest file
this.fs.copyTpl(this.templatePath('common/manifest.xml'), this.destinationPath('manifest.xml'), this.genConfig);

Expand All @@ -301,6 +305,10 @@ module.exports = generators.Base.extend({
// determine startpage for addin
this.genConfig.startPage = 'https://localhost:8443/index.html';

// copy tsd & jsconfig files
this.fs.copy(this.templatePath('html/_tsd.json'), this.destinationPath('tsd.json'));
this.fs.copy(this.templatePath('common/_jsconfig.json'), this.destinationPath('jsconfig.json'));

// create the manifest file
this.fs.copyTpl(this.templatePath('common/manifest.xml'), this.destinationPath('manifest.xml'), this.genConfig);

Expand Down
6 changes: 6 additions & 0 deletions generators/taskpane/templates/common/_jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"compilerOptions": {
"target": "ES5",
"module": "commonjs"
}
}
12 changes: 12 additions & 0 deletions generators/taskpane/templates/html/_tsd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": "v4",
"repo": "borisyankov/DefinitelyTyped",
"ref": "master",
"path": "typings",
"bundle": "typings/tsd.d.ts",
"installed": {
"jquery/jquery.d.ts": {
"commit": "04a025ada3492a22df24ca2d8521c911697721b3"
}
}
}
21 changes: 21 additions & 0 deletions generators/taskpane/templates/ng/_tsd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"version": "v4",
"repo": "borisyankov/DefinitelyTyped",
"ref": "master",
"path": "typings",
"bundle": "typings/tsd.d.ts",
"installed": {
"jquery/jquery.d.ts": {
"commit": "04a025ada3492a22df24ca2d8521c911697721b3"
},
"angularjs/angular.d.ts": {
"commit": "04a025ada3492a22df24ca2d8521c911697721b3"
},
"angularjs/angular-route.d.ts": {
"commit": "04a025ada3492a22df24ca2d8521c911697721b3"
},
"angularjs/angular-sanitize.d.ts": {
"commit": "04a025ada3492a22df24ca2d8521c911697721b3"
}
}
}
2 changes: 2 additions & 0 deletions test/content/existingproj-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ describe('office:content', function () {
'gulpfile.js',
'package.json',
'manifest.xml',
'tsd.json',
'jsconfig.json',
addinRootPath + '/app/app.js',
addinRootPath + '/app/app.css',
addinRootPath + '/app/home/home.js',
Expand Down
2 changes: 2 additions & 0 deletions test/content/existingproj-ng.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ describe('office:content', function () {
'gulpfile.js',
'package.json',
'manifest.xml',
'tsd.json',
'jsconfig.json',
addinRootPath + '/index.html',
addinRootPath + '/app/app.module.js',
addinRootPath + '/app/app.routes.js',
Expand Down
2 changes: 2 additions & 0 deletions test/content/newproj-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ describe('office:content', function () {
'package.json',
'gulpfile.js',
'manifest.xml',
'tsd.json',
'jsconfig.json',
'app/app.js',
'app/app.css',
'app/home/home.js',
Expand Down
2 changes: 2 additions & 0 deletions test/content/newproj-ng.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ describe('office:content', function () {
'package.json',
'gulpfile.js',
'manifest.xml',
'tsd.json',
'jsconfig.json',
'index.html',
'app/app.module.js',
'app/app.routes.js',
Expand Down
2 changes: 2 additions & 0 deletions test/mail/existingproj-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ describe('office:mail', function () {
'gulpfile.js',
'package.json',
'manifest.xml',
'tsd.json',
'jsconfig.json',
addinRootPath + '/appcompose/app.js',
addinRootPath + '/appcompose/app.css',
addinRootPath + '/appcompose/home/home.js',
Expand Down
2 changes: 2 additions & 0 deletions test/mail/existingproj-ng.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ describe('office:mail', function () {
'gulpfile.js',
'package.json',
'manifest.xml',
'tsd.json',
'jsconfig.json',
addinRootPath + '/appcompose/index.html',
addinRootPath + '/appcompose/app.module.js',
addinRootPath + '/appcompose/app.routes.js',
Expand Down
2 changes: 2 additions & 0 deletions test/mail/newproj-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ describe('office:mail', function () {
'package.json',
'gulpfile.js',
'manifest.xml',
'tsd.json',
'jsconfig.json',
'appcompose/app.js',
'appcompose/app.css',
'appcompose/home/home.js',
Expand Down
2 changes: 2 additions & 0 deletions test/mail/newproj-ng.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ describe('office:mail', function () {
'package.json',
'gulpfile.js',
'manifest.xml',
'tsd.json',
'jsconfig.json',
'appcompose/index.html',
'appcompose/app.module.js',
'appcompose/app.routes.js',
Expand Down
2 changes: 2 additions & 0 deletions test/taskpane/existingproj-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ describe('office:taskpane', function () {
'gulpfile.js',
'package.json',
'manifest.xml',
'tsd.json',
'jsconfig.json',
addinRootPath + '/app/app.js',
addinRootPath + '/app/app.css',
addinRootPath + '/app/home/home.js',
Expand Down
2 changes: 2 additions & 0 deletions test/taskpane/existingproj-ng.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ describe('office:taskpane', function () {
'gulpfile.js',
'package.json',
'manifest.xml',
'tsd.json',
'jsconfig.json',
addinRootPath + '/index.html',
addinRootPath + '/app/app.module.js',
addinRootPath + '/app/app.routes.js',
Expand Down
2 changes: 2 additions & 0 deletions test/taskpane/newproj-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ describe('office:taskpane', function () {
'package.json',
'gulpfile.js',
'manifest.xml',
'tsd.json',
'jsconfig.json',
'app/app.js',
'app/app.css',
'app/home/home.js',
Expand Down
2 changes: 2 additions & 0 deletions test/taskpane/newproj-ng.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ describe('office:taskpane', function () {
'package.json',
'gulpfile.js',
'manifest.xml',
'tsd.json',
'jsconfig.json',
'index.html',
'app/app.module.js',
'app/app.routes.js',
Expand Down

0 comments on commit 76695e3

Please sign in to comment.