Skip to content

Commit c31b283

Browse files
averikitschAce Nassri
authored andcommitted
region tags (#718)
1 parent a0b1352 commit c31b283

File tree

24 files changed

+8
-58
lines changed

24 files changed

+8
-58
lines changed

appengine/endpoints/app.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,12 @@
1515

1616
'use strict';
1717

18-
// [START app]
19-
// [START setup]
2018
const express = require('express');
2119
const bodyParser = require('body-parser');
2220
const Buffer = require('safe-buffer').Buffer;
2321

2422
const app = express();
2523
app.use(bodyParser.json());
26-
// [END setup]
2724

2825
app.post('/echo', (req, res) => {
2926
res.status(200).json({ message: req.body.message });
@@ -42,14 +39,11 @@ app.get('/auth/info/googlejwt', authInfoHandler);
4239
app.get('/auth/info/googleidtoken', authInfoHandler);
4340

4441
if (module === require.main) {
45-
// [START listen]
4642
const PORT = process.env.PORT || 8080;
4743
app.listen(PORT, () => {
4844
console.log(`App listening on port ${PORT}`);
4945
console.log('Press Ctrl+C to quit.');
5046
});
51-
// [END listen]
5247
}
53-
// [END app]
5448

5549
module.exports = app;

appengine/errorreporting/app.flexible.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,5 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
# [START app_yaml]
1514
runtime: nodejs
1615
env: flex
17-
# [END app_yaml]

appengine/errorreporting/app.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,12 @@
1313
* limitations under the License.
1414
*/
1515

16-
// [START app]
1716
'use strict';
1817

19-
// [START setup]
2018
const express = require('express');
2119
const errors = require('@google-cloud/error-reporting')();
2220

2321
const app = express();
24-
// [END setup]
2522

2623
app.get('/', (req, res, next) => {
2724
next(new Error('something is wrong!'));
@@ -32,13 +29,10 @@ app.use((err, req, res, next) => {
3229
res.status(500).send(err.message || 'Something broke!');
3330
});
3431

35-
// [START listen]
3632
const PORT = process.env.PORT || 8080;
3733
app.listen(PORT, () => {
3834
console.log(`App listening on port ${PORT}`);
3935
console.log('Press Ctrl+C to quit.');
4036
});
41-
// [END listen]
42-
// [END app]
4337

4438
module.exports = app;

appengine/errorreporting/app.standard.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,4 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
# [START app_yaml]
1514
runtime: nodejs8
16-
# [END app_yaml]

appengine/grunt/Gruntfile.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
module.exports = function (grunt) {
1717
grunt.initConfig({
18-
// [START config]
1918
jshint: {
2019
files: ['Gruntfile.js', 'src/**/*.js'],
2120
options: {
@@ -31,7 +30,6 @@ module.exports = function (grunt) {
3130
dest: 'src/public/stylesheets/style.min.css'
3231
}
3332
},
34-
// [END config]
3533
clean: ['src/public/stylesheets/style.min.css'],
3634
watch: {
3735
js: {
@@ -48,12 +46,10 @@ module.exports = function (grunt) {
4846
grunt.loadNpmTasks('grunt-contrib-watch');
4947
grunt.loadNpmTasks('grunt-contrib-clean');
5048

51-
// [START tasks]
5249
grunt.loadNpmTasks('grunt-contrib-jshint');
5350
grunt.loadNpmTasks('grunt-contrib-cssmin');
5451

5552
grunt.registerTask('build', ['jshint', 'cssmin']);
56-
// [END tasks]
5753

5854
grunt.registerTask('default', ['watch']);
5955
};

appengine/grunt/app.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,5 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
# [START app_yaml]
1514
runtime: nodejs
1615
env: flex
17-
# [END app_yaml]

appengine/grunt/src/routes/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@
1818
const express = require('express');
1919
const router = express.Router();
2020

21-
// [START hello_world]
2221
router.get('/', (req, res) => {
2322
res.render('index', {
2423
title: 'Hello World! Express.js + Grunt.js on Google App Engine.'
2524
});
2625
});
27-
// [END hello_world]
2826

2927
module.exports = router;

appengine/hello-world/standard/app.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
# [START app_yaml]
14+
# [START gae_quickstart_yaml]
1515
runtime: nodejs8
16-
# [END app_yaml]
16+
# [END gae_quickstart_yaml]

appengine/loopback/app.flexible.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,5 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
# [START app_yaml]
1514
runtime: nodejs
1615
env: flex
17-
# [END app_yaml]

appengine/loopback/app.standard.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,4 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
# [START app_yaml]
1514
runtime: nodejs8
16-
# [END app_yaml]

0 commit comments

Comments
 (0)