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

Commit fe09212

Browse files
Merged with master
2 parents 908bb1a + ce157e9 commit fe09212

333 files changed

Lines changed: 25984 additions & 1516 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.

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
Thumbs.db
2-
node_modules
3-
npm-debug.log
42
src/brackets.css
53
src/brackets.min.css
64

5+
# ignore node_modules created by grunt, but not more deeply-nested node_modules
6+
/node_modules
7+
/npm-debug.log
8+
9+
710
# ignore everything in the dev extension directory EXCEPT the README
811
# (so that the directory is non-empty and can be in git)
912
src/extensions/dev/*

CONTRIBUTING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ With this file we want to provide some general guidance how to contribute to Bra
55

66
Issues starting Brackets the first time? Please review the [Troubleshooting Page](https://github.com/adobe/brackets/wiki/Troubleshooting).
77

8+
## Starter Bugs
9+
10+
If you need some inspiration for a **starter bug**, we have some for you either as [GitHub Issue](https://github.com/adobe/brackets/issues?labels=starter+bug&page=1&state=open) or on the [Trello Board](https://trello.com/board/brackets/4f90a6d98f77505d7940ce88) (there, choose on the right hand sidebar "Filter Cards" and then click on "Starter Feature").
11+
812
## Getting Started
913

1014
Before you start coding, post to the [brackets-dev Google group](http://groups.google.com/group/brackets-dev) or the [#brackets IRC channel on freenode](http://freenode.net) about what you're thinking of working on, so you can get early feedback.
@@ -51,3 +55,4 @@ priority. If a pull request already shows an assignee, please check with him/her
5155

5256
* [the Brackets github issue tracker](https://github.com/adobe/brackets/issues)
5357
* [Brackets wiki](https://github.com/adobe/brackets/wiki/Resources)
58+
* [Contribute Page](http://brackets.io/contribute/)

Gruntfile.js

Lines changed: 35 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
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+
*/
123
/*global module, require*/
224
module.exports = function (grunt) {
325
'use strict';
@@ -10,8 +32,10 @@ module.exports = function (grunt) {
1032
'!src/thirdparty/**',
1133
'!src/widgets/bootstrap-*.js',
1234
'!src/extensions/**/unittest-files/**/*.js',
35+
'!src/extensions/**/thirdparty/**/*.js',
1336
'!src/extensions/dev/**',
1437
'!src/extensions/disabled/**',
38+
'!src/extensions/**/node_modules/**/*.js',
1539
'!src/**/*-min.js',
1640
'!src/**/*.min.js'
1741
],
@@ -26,6 +50,7 @@ module.exports = function (grunt) {
2650
/* specs that can run in phantom.js */
2751
specs : [
2852
'test/spec/CommandManager-test.js',
53+
'test/spec/LanguageManager-test.js',
2954
'test/spec/PreferencesManager-test.js',
3055
'test/spec/ViewUtils-test.js'
3156
]
@@ -51,7 +76,11 @@ module.exports = function (grunt) {
5176
'src/thirdparty/CodeMirror2/lib/codemirror.js',
5277
'src/thirdparty/CodeMirror2/lib/util/dialog.js',
5378
'src/thirdparty/CodeMirror2/lib/util/searchcursor.js',
54-
'src/thirdparty/mustache/mustache.js'
79+
'src/thirdparty/mustache/mustache.js',
80+
'src/thirdparty/path-utils/path-utils.min'
81+
],
82+
helpers : [
83+
'test/spec/PhantomHelper.js'
5584
],
5685
template : require('grunt-template-jasmine-requirejs'),
5786
templateOptions: {
@@ -82,31 +111,21 @@ module.exports = function (grunt) {
82111
});
83112

84113
// load dependencies
114+
grunt.loadTasks('tasks');
85115
grunt.loadNpmTasks('grunt-contrib-jasmine');
86116
grunt.loadNpmTasks('grunt-contrib-jshint');
87117
grunt.loadNpmTasks('grunt-contrib-watch');
88118

89119
// task: install
90120
grunt.registerTask('install', ['write-config']);
91121

92-
// task: write-config
93-
// merge package.json and src/brackets.config.json into src/config.json
94-
grunt.registerTask('write-config', function () {
95-
var packageJSON = grunt.file.readJSON("package.json"),
96-
appConfigJSON = grunt.file.readJSON("src/brackets.config.json");
97-
98-
Object.keys(packageJSON).forEach(function (key) {
99-
if (appConfigJSON[key] === undefined) {
100-
appConfigJSON[key] = packageJSON[key];
101-
}
102-
});
103-
104-
grunt.file.write("src/config.json", JSON.stringify(appConfigJSON, null, " "));
105-
});
106-
107122
// task: test
108123
grunt.registerTask('test', ['jshint', 'jasmine']);
109124

125+
// task: set-sprint
126+
// Update sprint number in package.json and rewrite src/config.json
127+
grunt.registerTask('set-sprint', ['update-sprint-number', 'write-config']);
128+
110129
// Default task.
111130
grunt.registerTask('default', ['test']);
112131
};

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Welcome to Brackets! [![Build Status](https://travis-ci.org/adobe/brackets.png)](https://travis-ci.org/adobe/brackets)
1+
Welcome to Brackets! [![Build Status](https://travis-ci.org/adobe/brackets.png?branch=master)](https://travis-ci.org/adobe/brackets)
22
-------------------
33

44
Installers for the latest build can be [downloaded here](http://download.brackets.io/).
@@ -25,13 +25,13 @@ Brackets is early in development, so many of the features you would
2525
expect in a code editor are missing, and some existing features might be
2626
incomplete or not as useful as you'd want. But if you like the direction
2727
it's going, the [CONTRIBUTING.md](https://github.com/adobe/brackets/blob/master/CONTRIBUTING.md)
28-
file contains some useful links to help you getting started, please contribute!
28+
file contains some useful links to help you get started. Please contribute!
2929

3030
The text editor inside Brackets is based on
3131
[CodeMirror](http://github.com/marijnh/CodeMirror)—thanks to Marijn for
32-
taking our pull requests :) See
32+
taking our pull requests, implementing feature requests and fixing bugs! See
3333
[Notes on CodeMirror](https://github.com/adobe/brackets/wiki/Notes-on-CodeMirror)
34-
for info on upcoming things we're planning to contribute to CodeMirror.
34+
for info on how we're using CodeMirror.
3535

3636
How to run Brackets
3737
-------------------
@@ -50,11 +50,11 @@ The native shell for Brackets lives in a separate repo,
5050
The Brackets native shell currently runs on Mac and Windows.
5151
The community has started working on a Linux port, and is making great progress;
5252
if you're interested, check out the
53-
[discussion thread](https://groups.google.com/forum/?fromgroups=#!topic/brackets-dev/29vOJ6tvl8A)
54-
on the brackets-dev Google Group.
53+
[Linux Version](https://github.com/adobe/brackets/wiki/Linux-Version) wiki page.
5554

56-
You can download "stable" builds of Brackets from
57-
[download.brackets.io](http://download.brackets.io). If you want to pull the repo directly via git, see [How to Hack on Brackets](https://github.com/adobe/brackets/wiki/How-to-Hack-on-Brackets)
55+
You can download stable builds of Brackets from
56+
[download.brackets.io](http://download.brackets.io). If you want to pull the repo
57+
directly via git, see [How to Hack on Brackets](https://github.com/adobe/brackets/wiki/How-to-Hack-on-Brackets)
5858
for instructions on how to get everything.
5959

6060
By default, Brackets opens a folder containing some simple "Getting Started" content.

package.json

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,26 @@
11
{
2-
"name" : "Brackets",
3-
"version" : "0.20.0-0",
4-
"homepage" : "http://brackets.io",
5-
"issues" :
6-
{
7-
"url" : "http://github.com/adobe/brackets/issues"
2+
"name": "Brackets",
3+
"version": "0.21.0-0",
4+
"homepage": "http://brackets.io",
5+
"issues": {
6+
"url": "http://github.com/adobe/brackets/issues"
87
},
9-
"repository" :
10-
{
11-
"type" : "git",
12-
"url" : "https://github.com/adobe/brackets.git",
13-
"branch" : "",
14-
"SHA" : ""
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/adobe/brackets.git",
11+
"branch": "",
12+
"SHA": ""
1513
},
16-
"devDependencies" :
17-
{
18-
"grunt" : ">=0.4.0rc5",
19-
"grunt-cli" : ">=0.1.6",
20-
"grunt-contrib-jshint" : ">=0.1.1rc6",
21-
"grunt-contrib-watch" : ">=0.2.0rc5",
22-
"grunt-contrib-jasmine" : ">=0.3.0rc7",
23-
"grunt-template-jasmine-requirejs" : ">=0.1.0"
14+
"devDependencies": {
15+
"grunt": "~0.4.0",
16+
"grunt-cli": "~0.1.0",
17+
"grunt-contrib-jshint": "~0.2.0",
18+
"grunt-contrib-watch": "~0.2.0",
19+
"grunt-contrib-jasmine": "~0.3.0",
20+
"grunt-template-jasmine-requirejs": "~0.1.0"
2421
},
25-
"scripts" :
26-
{
27-
"postinstall" : "grunt install",
28-
"test" : "grunt test"
22+
"scripts": {
23+
"postinstall": "grunt install",
24+
"test": "grunt test"
2925
}
30-
}
26+
}
80.8 KB
Loading

samples/es/Primeros Pasos/main.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ samp
2828

2929
img
3030
{
31+
background: dimgray;
3132
border: 1px solid black;
32-
background-color: dimgray;
33-
padding: 10px;
33+
border-radius: 2px;
34+
padding: 15px 10px 10px;
3435
margin: 10px 0;
3536
max-width: 95%;
3637
}
81.2 KB
Loading

src/LiveDevelopment/Agents/DOMAgent.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ define(function DOMAgent(require, exports, module) {
209209
// WebInspector Event: Page.frameNavigated
210210
function _onFrameNavigated(event, res) {
211211
// res = {frame}
212-
exports.url = _cleanURL(res.frame.url);
212+
if (!res.frame.parentId) {
213+
exports.url = _cleanURL(res.frame.url);
214+
}
213215
}
214216

215217
// WebInspector Event: DOM.documentUpdated
@@ -291,6 +293,9 @@ define(function DOMAgent(require, exports, module) {
291293
if (n.location > node.location) {
292294
n.location += delta;
293295
}
296+
if (n.closeLocation !== undefined && n.closeLocation > node.location) {
297+
n.closeLocation += delta;
298+
}
294299
});
295300
}
296301
}

src/LiveDevelopment/Agents/GotoAgent.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,10 @@ define(function GotoAgent(require, exports, module) {
149149
editor.focus();
150150

151151
if (!noFlash) {
152-
codeMirror.setLineClass(location.line, "flash");
153-
window.setTimeout(codeMirror.setLineClass.bind(codeMirror, location.line), 1000);
152+
codeMirror.addLineClass(location.line, "wrap", "flash");
153+
window.setTimeout(function () {
154+
codeMirror.removeLineClass(location.line, "wrap", "flash");
155+
}, 1000);
154156
}
155157
}
156158

0 commit comments

Comments
 (0)