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

Commit f341ff5

Browse files
committed
Merge remote-tracking branch 'origin/master' into pflynn/better-quicksearch-field
Reimplements the fixes from PR #9624 & #9153 in a simpler way: instead of trying to selectively suppress ModalBar's scroll pos adjustments, in cases where we need to revert scroll pos in one file, just wait until ModalBar is done adjusting scroll pos and *then* reset the one we care about. Made possible by the fact that we now listen for ModalBar's "close" event and the event passes info on the reason for closing. Removes delay before results list opens: in CEF 2171 it seems both unneeded (animation is smooth without it) and it triggers an apparent Chrome bug where the post-animation state is displayed during the delay period even though the computed style reflects the pre-animation state. Conflicts: src/search/QuickOpen.js src/styles/brackets.less src/styles/brackets_colors.less src/widgets/ModalBar.js
2 parents 7b7670f + 240347f commit f341ff5

854 files changed

Lines changed: 129956 additions & 23324 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.brackets.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,26 @@
44
"plusplus": true,
55
"devel": true,
66
"nomen": true,
7-
"maxerr": 50
7+
"maxerr": 50,
8+
"es5": true
89
},
910
"defaultExtension": "js",
11+
"language": {
12+
"javascript": {
13+
"linting.prefer": ["JSLint", "JSHint"],
14+
"linting.usePreferredOnly": true
15+
}
16+
},
1017
"path": {
1118
"src/thirdparty/CodeMirror2/**/*.js": {
1219
"spaceUnits": 2,
1320
"linting.enabled": false
21+
},
22+
"src/thirdparty/globmatch.js": {
23+
"spaceUnits": 2,
24+
"linting.enabled": false
1425
}
1526
},
1627
"spaceUnits": 4,
1728
"useTabChar": false
18-
}
29+
}

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
url = https://github.com/requirejs/i18n.git
2525
[submodule "src/extensions/default/JSLint/thirdparty/jslint"]
2626
path = src/extensions/default/JSLint/thirdparty/jslint
27-
url = https://github.com/douglascrockford/JSLint.git
27+
url = https://github.com/peterflynn/JSLint.git

.jshintrc

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"regexp" : true,
1414
"undef" : true,
1515
"strict" : true,
16-
"trailing" : false,
16+
"unused" : "vars",
1717

1818
"asi" : false,
1919
"boss" : false,
@@ -35,15 +35,14 @@
3535
"proto" : false,
3636
"regexdash" : false,
3737
"scripturl" : false,
38-
"smarttabs" : false,
3938
"shadow" : false,
4039
"sub" : false,
4140
"supernew" : false,
4241
"validthis" : false,
4342

44-
"browser" : true,
43+
"browser" : false,
4544
"couch" : false,
46-
"devel" : false,
45+
"devel" : true,
4746
"dojo" : false,
4847
"jquery" : false,
4948
"mootools" : false,
@@ -52,24 +51,20 @@
5251
"prototypejs" : false,
5352
"rhino" : false,
5453
"wsh" : false,
55-
56-
"nomen" : false,
57-
"onevar" : false,
58-
"passfail" : false,
59-
"white" : false,
6054

6155
"maxerr" : 100,
62-
"predef" : [
63-
],
6456
"indent" : 4,
65-
"globals" : [
66-
"require",
67-
"define",
68-
"brackets",
69-
"$",
70-
"PathUtils",
71-
"window",
72-
"navigator",
73-
"Mustache"
74-
]
75-
}
57+
"globals" : {
58+
"window": false,
59+
"document": false,
60+
"setTimeout": false,
61+
"require": false,
62+
"define": false,
63+
"brackets": false,
64+
"$": false,
65+
"PathUtils": false,
66+
"window": false,
67+
"navigator": false,
68+
"Mustache": false
69+
}
70+
}

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
language: node_js
22
node_js:
3-
- 0.10
3+
- "0.10"
44
before_script:
55
- npm install -g grunt-cli
66
- npm install -g jasmine-node
77
notifications:
8-
irc: "chat.freenode.net#brackets"
98
webhooks:
109
urls:
1110
- https://webhooks.gitter.im/e/9c767842144fd24d26a5

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Here are some ideas:
5454

5555
* [Starter bugs](https://github.com/adobe/brackets/issues?labels=starter+bug&state=open) can
5656
provide a good intro to the Brackets code.
57-
* [Extension ideas](https://github.com/adobe/brackets/issues?labels=Extension+Idea&state=closed)
57+
* [Extension ideas](https://github.com/adobe/brackets/issues?q=label%3A%22Extension+Idea%22)
5858
are feature requests that we think would be best implemented as an add-on; it's up to the
5959
Brackets community to write them!
6060
* [Starter features](http://bit.ly/BracketsBacklog) are a bit larger in scope. Be sure to discuss

Gruntfile.js

Lines changed: 45 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,33 @@
11
/*
22
* Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
3-
*
3+
*
44
* 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
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
99
* Software is furnished to do so, subject to the following conditions:
10-
*
10+
*
1111
* The above copyright notice and this permission notice shall be included in
1212
* all copies or substantial portions of the Software.
13-
*
13+
*
1414
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1616
* 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
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
2020
* DEALINGS IN THE SOFTWARE.
21-
*
21+
*
2222
*/
2323
/*global module, require*/
2424
module.exports = function (grunt) {
2525
'use strict';
2626

2727
// load dependencies
28-
require('load-grunt-tasks')(grunt, {pattern: ['grunt-contrib-*', 'grunt-targethtml', 'grunt-usemin']});
28+
require('load-grunt-tasks')(grunt, {pattern: ['grunt-contrib-*', 'grunt-targethtml', 'grunt-usemin', 'grunt-cleanempty']});
2929
grunt.loadTasks('tasks');
3030

31-
var common = require("./tasks/lib/common")(grunt);
32-
3331
// Project configuration.
3432
grunt.initConfig({
3533
pkg : grunt.file.readJSON("package.json"),
@@ -61,7 +59,9 @@ module.exports = function (grunt) {
6159
'xorigin.js',
6260
'dependencies.js',
6361
'thirdparty/requirejs/require.js',
64-
'LiveDevelopment/launch.html'
62+
'LiveDevelopment/launch.html',
63+
'LiveDevelopment/MultiBrowserImpl/transports/**',
64+
'LiveDevelopment/MultiBrowserImpl/launchers/**'
6565
]
6666
},
6767
/* node domains are not minified and must be copied to dist */
@@ -72,6 +72,8 @@ module.exports = function (grunt) {
7272
src: [
7373
'extensibility/node/**',
7474
'!extensibility/node/spec/**',
75+
'!extensibility/node/node_modules/**/{test,tst}/**/*',
76+
'!extensibility/node/node_modules/**/examples/**/*',
7577
'filesystem/impls/appshell/node/**',
7678
'!filesystem/impls/appshell/node/spec/**'
7779
]
@@ -82,15 +84,21 @@ module.exports = function (grunt) {
8284
dest: 'dist/',
8385
cwd: 'src/',
8486
src: [
87+
'extensions/default/**/*',
8588
'!extensions/default/*/unittest-files/**/*',
8689
'!extensions/default/*/unittests.js',
87-
'extensions/default/*/**/*',
90+
'!extensions/default/{*/thirdparty,**/node_modules}/**/test/**/*',
91+
'!extensions/default/{*/thirdparty,**/node_modules}/**/doc/**/*',
92+
'!extensions/default/{*/thirdparty,**/node_modules}/**/examples/**/*',
93+
'!extensions/default/*/thirdparty/**/*.htm{,l}',
8894
'extensions/dev/*',
8995
'extensions/samples/**/*',
9096
'thirdparty/CodeMirror2/addon/{,*/}*',
9197
'thirdparty/CodeMirror2/keymap/{,*/}*',
9298
'thirdparty/CodeMirror2/lib/{,*/}*',
9399
'thirdparty/CodeMirror2/mode/{,*/}*',
100+
'!thirdparty/CodeMirror2/mode/**/*.html',
101+
'!thirdparty/CodeMirror2/**/*test.js',
94102
'thirdparty/CodeMirror2/theme/{,*/}*',
95103
'thirdparty/i18n/*.js',
96104
'thirdparty/text/*.js'
@@ -106,6 +114,13 @@ module.exports = function (grunt) {
106114
]
107115
}
108116
},
117+
cleanempty: {
118+
options: {
119+
force: true,
120+
files: false
121+
},
122+
src: ['dist/**/*'],
123+
},
109124
less: {
110125
dist: {
111126
files: {
@@ -128,6 +143,9 @@ module.exports = function (grunt) {
128143
// `name` and `out` is set by grunt-usemin
129144
baseUrl: 'src',
130145
optimize: 'uglify2',
146+
// brackets.js should not be loaded until after polyfills defined in "utils/Compatibility"
147+
// so explicitly include it in main.js
148+
include: ["utils/Compatibility", "brackets"],
131149
// TODO: Figure out how to make sourcemaps work with grunt-usemin
132150
// https://github.com/yeoman/grunt-usemin/issues/30
133151
generateSourceMaps: true,
@@ -200,6 +218,8 @@ module.exports = function (grunt) {
200218
'test/**/*.js',
201219
'!test/perf/*-files/**/*.js',
202220
'!test/spec/*-files/**/*.js',
221+
'!test/spec/*-known-goods/**/*.js',
222+
'!test/spec/FindReplace-test-files-*/**/*.js',
203223
'!test/smokes/**',
204224
'!test/temp/**',
205225
'!test/thirdparty/**',
@@ -246,15 +266,16 @@ module.exports = function (grunt) {
246266
specs : '<%= meta.specs %>',
247267
/* Keep in sync with test/SpecRunner.html dependencies */
248268
vendor : [
249-
'src/thirdparty/jquery-2.1.0.min.js',
269+
'test/polyfills.js', /* For reference to why this polyfill is needed see Issue #7951. The need for this should go away once the version of phantomjs gets upgraded to 2.0 */
270+
'src/thirdparty/jquery-2.1.3.min.js',
250271
'src/thirdparty/CodeMirror2/lib/codemirror.js',
251272
'src/thirdparty/CodeMirror2/lib/util/dialog.js',
252273
'src/thirdparty/CodeMirror2/lib/util/searchcursor.js',
253274
'src/thirdparty/CodeMirror2/addon/edit/closetag.js',
254275
'src/thirdparty/CodeMirror2/addon/selection/active-line.js',
255276
'src/thirdparty/mustache/mustache.js',
256277
'src/thirdparty/path-utils/path-utils.min',
257-
'src/thirdparty/less-1.4.2.min.js'
278+
'src/thirdparty/less-1.7.5.min.js'
258279
],
259280
helpers : [
260281
'test/spec/PhantomHelper.js'
@@ -298,17 +319,17 @@ module.exports = function (grunt) {
298319
linux: "<%= shell.repo %>/installer/linux/debian/package-root/opt/brackets/brackets"
299320
}
300321
});
301-
322+
302323
// task: install
303324
grunt.registerTask('install', ['write-config', 'less']);
304325

305326
// task: test
306327
grunt.registerTask('test', ['jshint:all', 'jasmine']);
307328
// grunt.registerTask('test', ['jshint:all', 'jasmine', 'jasmine_node']);
308329

309-
// task: set-sprint
310-
// Update sprint number in package.json and rewrite src/config.json
311-
grunt.registerTask('set-sprint', ['update-sprint-number', 'write-config']);
330+
// task: set-release
331+
// Update version number in package.json and rewrite src/config.json
332+
grunt.registerTask('set-release', ['update-release-number', 'write-config']);
312333

313334
// task: build
314335
grunt.registerTask('build', [
@@ -324,6 +345,7 @@ module.exports = function (grunt) {
324345
/*'cssmin',*/
325346
/*'uglify',*/
326347
'copy',
348+
'cleanempty',
327349
'usemin',
328350
'build-config'
329351
]);

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2012-2014 Adobe Systems Incorporated. All rights reserved.
1+
Copyright (c) 2012-2015 Adobe Systems Incorporated. All rights reserved.
22

33
Permission is hereby granted, free of charge, to any person obtaining a
44
copy of this software and associated documentation files (the "Software"),

NOTICE

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,51 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
458458
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
459459
OTHER DEALINGS IN THE SOFTWARE.
460460

461+
Copyright 2013-2014 Facebook, Inc.
462+
This product includes software licensed under the Apache License, Version 2.0
463+
http://www.apache.org/licenses/LICENSE-2.0.
464+
465+
BSD License
466+
For Immutable JS software
467+
Copyright (c) 2014, Facebook, Inc. All rights reserved.
468+
Redistribution and use in source and binary forms, with or without modification,
469+
are permitted provided that the following conditions are met:
470+
* Redistributions of source code must retain the above copyright notice, this
471+
list of conditions and the following disclaimer.
472+
* Redistributions in binary form must reproduce the above copyright notice,
473+
this list of conditions and the following disclaimer in the documentation
474+
and/or other materials provided with the distribution.
475+
* Neither the name Facebook nor the names of its contributors may be used to
476+
endorse or promote products derived from this software without specific
477+
prior written permission.
478+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
479+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
480+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
481+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
482+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
483+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
484+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
485+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
486+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
487+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
488+
489+
Copyright (c) 2014, Facebook, Inc. All rights reserved.
490+
491+
React JavaScript library
492+
493+
Licensed under the Apache License, Version 2.0
494+
495+
http://www.apache.org/licenses/LICENSE-2.0
496+
497+
Unless required by applicable law or agreed to in writing, software
498+
distributed under the License is distributed on an "AS IS" BASIS,
499+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
500+
See the License for the specific language governing permissions and
501+
limitations under the License.
502+
503+
See also: https://github.com/facebook/react/blob/master/LICENSE
504+
505+
461506
Timothy Farrell
462507
Copyright (c) 2010 Timothy Farrell
463508
Permission is hereby granted, free of charge, to any person obtaining a copy of this

0 commit comments

Comments
 (0)