Skip to content

Commit

Permalink
fix: common license template
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhenliu-gg5 committed Aug 26, 2019
1 parent 6b25bd3 commit 71e7280
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 54 deletions.
19 changes: 1 addition & 18 deletions templates/typescript_gapic/src/$version/$service_client.ts.njk
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
// Copyright {{ commonParameters.copyrightYear }} Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **

{% import "./license.njk" as license %}{{license.license()}}
import * as gax from 'google-gax';
import * as path from 'path';
import * as protobuf from 'protobufjs';
Expand Down
19 changes: 1 addition & 18 deletions templates/typescript_gapic/src/$version/index.ts.njk
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
// Copyright {{ commonParameters.copyrightYear }} Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **

{% import "./license.njk" as license %}{{license.license()}}
{% for service in api.services -%}
export {{ '{' + service.name.toPascalCase() + 'Client}' }} from './{{ service.name.toLowerCase() }}_client';
{%- endfor %}
18 changes: 18 additions & 0 deletions templates/typescript_gapic/src/$version/license.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{% macro license() %}// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **
{% endmacro %}
19 changes: 1 addition & 18 deletions templates/typescript_gapic/src/index.ts.njk
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
// Copyright {{ commonParameters.copyrightYear }} Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **

{% import "././$version/license.njk" as license %}{{license.license()}}
import * as {{ api.naming.version }} from './{{ api.naming.version }}';
export {{ '{' + api.naming.version + '}' }};
{% for service in api.services -%}
Expand Down

0 comments on commit 71e7280

Please sign in to comment.