Skip to content

Commit b5d7f36

Browse files
agau4779MarkusBordihn
authored andcommitted
Add changelog as built file (#203)
1 parent 8d0697d commit b5d7f36

File tree

16 files changed

+186
-5
lines changed

16 files changed

+186
-5
lines changed

CHANGELOG.md

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
New Major Coding With Chrome Update
2+
====================================
3+
4+
1/9/2019, 1:34:51 PM -v5.10.16
5+
6+
Recent Changelog
7+
----------------
8+
9+
commit da956d3db9b9d8fa633436248d6523b77714b4a9
10+
Author: Ashley Gau <[email protected]>
11+
Date: Wed Dec 12 11:57:44 2018 -0800
12+
13+
add changelog as built file
14+
15+
commit 8d0697d7462d2599bc82b61ed0f16eb0b4ebb476
16+
Author: Markus Bordihn <[email protected]>
17+
Date: Fri Jan 4 01:20:12 2019 +0100
18+
19+
Fxied compiler warnings.
20+
21+
commit 6b60e047823f6707a319167a5aec63f12213a904
22+
Author: Adam Carheden <[email protected]>
23+
Date: Fri Dec 21 10:31:08 2018 -0700
24+
25+
Aiy tutorial (#206)
26+
27+
* Added AIY Examples
28+
- Added examples from https://github.com/google/aiyprojects-raspbian
29+
as cards on the AIY select screen.
30+
- Removed unused 'mkdir' function from tutorial build script.
31+
* Added AIY Voice Kit tutorial
32+
33+
commit e5b1e35fdb2aae7137a03ce9f5233c4747ba9f6b
34+
Author: Filip Stanis <[email protected]>
35+
Date: Wed Dec 12 16:14:59 2018 +0000
36+
37+
Disable Joy Demo when connecting to AIY (#207)
38+
39+
* Add warning about Joy Demo
40+
* Disable Joy Demo when connecting
41+
* add default timeout
42+
43+
commit 59ce036b0bbee82acf1352dbd45c63ac330b262a
44+
Author: Adam Carheden <[email protected]>
45+
Date: Thu Nov 29 15:12:39 2018 -0700
46+
47+
Added tour functionality to tutorial (#204)
48+
49+
commit ad2830838b0871a2891a58dbaa54fe28fb7c9209
50+
Author: Markus Bordihn <[email protected]>
51+
Date: Tue Nov 27 15:21:32 2018 +0100
52+
53+
Update DEVELOPMENT.md
54+
55+
commit 8d20d847efb2a22de858a7dae0c0728d916f8527
56+
Author: Markus Bordihn <[email protected]>
57+
Date: Fri Nov 23 16:20:34 2018 +0100
58+
59+
Updated dependencies for blockly, brython, codemirror and phaser-ce.
60+
61+
commit e80bae217c744943c0f93cbbd43dfc43ca284d3e
62+
Author: Chan <[email protected]>
63+
Date: Sun Nov 11 20:56:08 2018 +0800
64+
65+
Added Chinese Translation (#202)
66+
67+
* Create _zho.js
68+
* Added Chinese Translation
69+
* Update blockly.js
70+
* Update connect_screen.js
71+
* Update console.js
72+
* Update general.js
73+
* Update library.js
74+
* Update welcome_screen.js
75+
* Update status.js
76+
* Update sidebar.js
77+
* Update setting_screen.js
78+
* Update select_screen.js
79+
* Update navigation.js
80+
81+
commit b7012489ae96cd64513521fffea7bab520ded812
82+
Author: Chan <[email protected]>
83+
Date: Sun Nov 11 20:54:57 2018 +0800
84+
85+
Added Chinese Blockly files (#201)
86+
87+
commit 5d49534ef4c9efa156a68f45e9250d01e6d34a38
88+
Author: Chan <[email protected]>
89+
Date: Sun Nov 11 20:53:21 2018 +0800
90+
91+
Added Chinese Translation build rules (#200)
92+
93+
[Show all](https://github.com/google/coding-with-chrome/commits/master)

app/chrome_app/manifest.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
},
4747
"sandbox": {
4848
"pages": [
49+
"CHANGLOG.html",
4950
"LICENSE.html",
5051
"NOTICE.html"
5152
]
@@ -54,6 +55,7 @@
5455
"partitions": [{
5556
"name": "static",
5657
"accessible_resources": [
58+
"CHANGELOG.html",
5759
"LICENSE.html",
5860
"NOTICE.html"
5961
]

build/app/chrome_app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ closureBuilder.build({
2929
resources: [
3030
'app/chrome_app/manifest.json',
3131
'app/default/index.html',
32+
'genfiles/core/CHANGELOG.html',
3233
'genfiles/core/LICENSE.html',
3334
'genfiles/core/NOTICE.html',
3435
'genfiles/core/icons/',

build/app/nw_app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ closureBuilder.build({
3030
'app/chrome_app/manifest.json',
3131
'app/default/index.html',
3232
'app/nw_app/package.json',
33+
'genfiles/core/CHANGELOG.html',
3334
'genfiles/core/LICENSE.html',
3435
'genfiles/core/NOTICE.html',
3536
'genfiles/core/icons/',

build/app/web_app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ closureBuilder.build({
2828
name: 'Copy static files',
2929
resources: [
3030
'app/default/index.html',
31+
'genfiles/core/CHANGELOG.html',
3132
'genfiles/core/LICENSE.html',
3233
'genfiles/core/NOTICE.html',
3334
'genfiles/core/icons/',

build/cwc/changelog.js

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/**
2+
* @fileoverview BUILD configuration for Coding with Chrome satic files.
3+
*
4+
* @license Copyright 2017 The Coding with Chrome Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* @author [email protected] (Ashley Gau)
19+
*/
20+
const fs = require('fs');
21+
22+
const date = new Date(Date.now()).toLocaleString();
23+
const version = '5.10.16';
24+
const commits = require('child_process').execSync('git --no-pager log -10');
25+
26+
fs.writeFile('CHANGELOG.md',
27+
`New Major Coding With Chrome Update
28+
====================================
29+
30+
${date} -v${version}
31+
32+
Recent Changelog
33+
----------------
34+
35+
${commits}
36+
[Show all](https://github.com/google/coding-with-chrome/commits/master)
37+
`,
38+
function(err) {
39+
if (err) {
40+
return console.log(err);
41+
}
42+
43+
console.log('The file was saved!');
44+
});

build/cwc/static_files.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ closureBuilder.build({
4242
markdown: [
4343
'LICENSE.md',
4444
'NOTICE.md',
45+
'CHANGELOG.md',
4546
],
4647
replace: [
4748
['nw-js', 'nwjs'],

build/usage.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ const sections = [{
6666
}, {
6767
name: 'test',
6868
summary: 'Performs automated tests.',
69+
}, {
70+
name: 'changelog',
71+
summary: 'Generates the CHANGELOG.md file',
6972
}],
7073
}, {
7174
header: 'Deploy commands (binary)',

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
},
3434
"scripts": {
3535
"build": "npm run build:third_party && npm run build:core",
36+
"build:changelog": "node build/cwc/changelog.js",
3637
"build:chrome_app": "node build/app/chrome_app.js",
3738
"build:chrome_app_debug": "node build/app/chrome_app_debug.js",
3839
"build:core": "npm run build:cwc-deps",

src/config/user_config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ cwc.userConfigName = {
5252
LEGO: 'lego',
5353
MAKEBLOCK: 'makeblock',
5454
PENCIL_CODE: 'pencil_code',
55+
PREVIOUS_VERSION: 'previous_version',
5556
PYTHON: 'python',
5657
SKIP_WELCOME: 'skip_welcome',
5758
SPHERO: 'sphero',

0 commit comments

Comments
 (0)