Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit 537e65e

Browse files
committed
Merge pull request #207 from adobe/jasonsanjose/sprint21
Add grunt to brackets-shell with a sprint number updating task, and update to sprint 21
2 parents 8c327cd + fdb939f commit 537e65e

11 files changed

Lines changed: 281 additions & 9 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
*.swp
33
xcodebuild
44
xcodebuild/*
5+
/node_modules
6+
/npm-debug.log
57

68
appshell.xcodeproj
79
Brackets.vcxproj
@@ -41,5 +43,4 @@ tools
4143
*.wixobj
4244
bracketsharvestmanager.wxs
4345
fr-fr.mst
44-
4546
appshell/node-core/node_modules

.jshintrc

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"bitwise" : true,
3+
"curly" : true,
4+
"eqeqeq" : true,
5+
"forin" : true,
6+
"immed" : true,
7+
"latedef" : true,
8+
"newcap" : true,
9+
"noarg" : true,
10+
"noempty" : true,
11+
"nonew" : true,
12+
"plusplus" : true,
13+
"regexp" : true,
14+
"undef" : true,
15+
"strict" : true,
16+
"trailing" : false,
17+
18+
"asi" : false,
19+
"boss" : false,
20+
"debug" : false,
21+
"eqnull" : false,
22+
"es5" : false,
23+
"esnext" : false,
24+
"evil" : false,
25+
"expr" : false,
26+
"funcscope" : false,
27+
"globalstrict" : false,
28+
"iterator" : false,
29+
"lastsemic" : false,
30+
"laxbreak" : false,
31+
"laxcomma" : false,
32+
"loopfunc" : false,
33+
"multistr" : false,
34+
"onecase" : false,
35+
"proto" : false,
36+
"regexdash" : false,
37+
"scripturl" : false,
38+
"smarttabs" : false,
39+
"shadow" : false,
40+
"sub" : false,
41+
"supernew" : false,
42+
"validthis" : false,
43+
44+
"browser" : true,
45+
"couch" : false,
46+
"devel" : false,
47+
"dojo" : false,
48+
"jquery" : false,
49+
"mootools" : false,
50+
"node" : false,
51+
"nonstandard" : false,
52+
"prototypejs" : false,
53+
"rhino" : false,
54+
"wsh" : false,
55+
56+
"nomen" : false,
57+
"onevar" : false,
58+
"passfail" : false,
59+
"white" : false,
60+
61+
"maxerr" : 100,
62+
"predef" : [
63+
],
64+
"indent" : 4,
65+
"globals" : [
66+
"require",
67+
"define",
68+
"brackets",
69+
"$",
70+
"PathUtils",
71+
"window",
72+
"navigator",
73+
"Mustache"
74+
]
75+
}

Gruntfile.js

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
3+
*
4+
* Permission is hereby granted, free of charge, to any person obtaining a
5+
* copy of this software and associated documentation files (the "Software"),
6+
* to deal in the Software without restriction, including without limitation
7+
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
8+
* and/or sell copies of the Software, and to permit persons to whom the
9+
* Software is furnished to do so, subject to the following conditions:
10+
*
11+
* The above copyright notice and this permission notice shall be included in
12+
* all copies or substantial portions of the Software.
13+
*
14+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20+
* DEALINGS IN THE SOFTWARE.
21+
*
22+
*/
23+
/*global module, require*/
24+
/*jslint regexp:true*/
25+
module.exports = function (grunt) {
26+
"use strict";
27+
28+
grunt.initConfig({
29+
jshint: {
30+
all: [
31+
"Gruntfile.js",
32+
"tasks/**/*.js"
33+
],
34+
/* use strict options to mimic JSLINT until we migrate to JSHINT in Brackets */
35+
options: {
36+
jshintrc: ".jshintrc"
37+
}
38+
}
39+
});
40+
41+
grunt.loadTasks("tasks");
42+
grunt.loadNpmTasks("grunt-contrib-jshint");
43+
44+
grunt.registerTask("default", "jshint");
45+
};

appshell/mac/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>0.20.0</string>
22+
<string>0.21.0</string>
2323
<key>CFBundleShortVersionString</key>
24-
<string>0.20.0</string>
24+
<string>0.21.0</string>
2525
<key>NSMainNibFile</key>
2626
<string>MainMenu</string>
2727
<key>NSPrincipalClass</key>

appshell/version.rc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
3232
//
3333

3434
VS_VERSION_INFO VERSIONINFO
35-
FILEVERSION 0,20,0,0
35+
FILEVERSION 0,21,0,0
3636
/* PRODUCTVERSION 1,0,0,0 */
3737
FILEOS VOS__WINDOWS32
3838
FILETYPE VFT_APP
@@ -43,7 +43,7 @@ BEGIN
4343
BEGIN
4444
VALUE "CompanyName", "brackets.io\0"
4545
VALUE "FileDescription", "\0"
46-
VALUE "FileVersion", "Sprint 20\0"
46+
VALUE "FileVersion", "Sprint 21\0"
4747
VALUE "ProductName", APP_NAME "\0"
4848
VALUE "ProductVersion", "\0"
4949
VALUE "LegalCopyright", "(c) 2012 Adobe Systems, Inc.\0"

installer/mac/buildInstaller.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# config
4-
releaseName="Brackets Sprint 20"
4+
releaseName="Brackets Sprint 21"
55
format="bzip2"
66
encryption="none"
77
tmpLayout="./dropDmgConfig/layouts/tempLayout"

installer/win/Brackets.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ xmlns:fire="http://schemas.microsoft.com/wix/FirewallExtension">
3232
</DirectoryRef>
3333

3434
<DirectoryRef Id="ProgramMenuFolder">
35-
<Component Id="StartMenuShortcut" Guid="{3DF2D99D-316C-4B34-818D-FA57E27CF1BF}" Win64="no" >
35+
<Component Id="StartMenuShortcut" Guid="{44c53d18-d59b-8b53-912d-35c1de410fb4}" Win64="no" >
3636
<Shortcut Id="AppShortcut" Name="!(loc.ProductName) $(var.ProductVersionName)"
3737
Description="!(loc.ShortcutDescription)"
3838
Target="[INSTALLDIR]\$(var.ExeName).exe" />

installer/win/README.MD

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,14 @@ Normally, the installer scripts are run from a specific pre-set-up build machine
2828
10. `git clone` the brackets and brackets-shell Git repos
2929
11. Set `BRACKETS_SRC` to the root folder of the brackets repo
3030

31+
## To rev the Brackets sprint number with Grunt, both brackets-shell and brackets
32+
## repositories must be updated. For the initial Grunt setup, see:
33+
## https://github.com/adobe/brackets/wiki/Grunt-Setup.
34+
##
35+
## brackets > grunt set-sprint --sprint=NN
36+
## brackets-shell > grunt set-sprint --sprint=NN
3137

32-
## To rev the Brackets sprint number
38+
## To rev the Brackets sprint number manually
3339
1. Open brackets-win-install-build.xml and change `product.sprint.number`
3440
2. Open brackets-shell\installer\mac\buildInstaller.sh and change `releaseName`
3541
3. Open Brackets.wxs and replace the `StartMenuShortcut` GUID property with a newly generated GUID

installer/win/brackets-win-install-build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ default="build.mul">
1212
<!-- See also: product name definitions in Brackets_<locale>.wxl -->
1313
<property name="product.shortname" value="Brackets"/>
1414
<property name="product.fullname" value="Brackets"/>
15-
<property name="product.sprint.number" value="20"/>
15+
<property name="product.sprint.number" value="21"/>
1616
<property name="product.version.number" value="0.${product.sprint.number}"/>
1717
<property name="product.version.name" value="Sprint ${product.sprint.number}"/>
1818
<property name="product.manufacturer" value="brackets.io"/>

package.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "Brackets-Shell",
3+
"version": "0.21.0-0",
4+
"homepage": "http://brackets.io",
5+
"issues": {
6+
"url": "http://github.com/adobe/brackets-shell/issues"
7+
},
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/adobe/brackets-shell.git",
11+
"branch": "",
12+
"SHA": ""
13+
},
14+
"devDependencies": {
15+
"grunt": ">=0.4.0rc5",
16+
"grunt-cli": ">=0.1.6",
17+
"grunt-contrib-jshint": ">=0.1.1rc6",
18+
"guid": ">=0.0.10"
19+
}
20+
}

0 commit comments

Comments
 (0)