├── .gitignore ├── .travis.yml ├── DEVELOPER-NOTES.md ├── LICENSE ├── README.adoc ├── README.md ├── appveyor.yml ├── build.sh ├── build ├── boot-sts-adapter.d.ts ├── boot-sts-adapter.js ├── main.d.ts ├── main.js ├── spring-boot-language-client.d.ts └── spring-boot-language-client.js ├── coffeelint.json ├── grammars ├── boot-properties-yaml.cson └── boot-properties.cson ├── lib ├── boot-sts-adapter.ts ├── main.ts └── spring-boot-language-client.ts ├── open-source-licenses.txt ├── package-lock.json ├── package.json ├── properties.json ├── readme-imgs ├── properties-completion.png ├── properties-validation.png ├── screenshot-code-completion.png ├── screenshot-live-hovers.png ├── screenshot-navigation-in-file.png ├── yaml-completion.png ├── yaml-hovers.png └── yaml-validation.png ├── script.js ├── settings └── language-boot-properties-yaml.cson ├── styles ├── boot-icon.png └── hints.atom-text-editor.less ├── tsconfig.json └── tslint.json /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | server/ 3 | node_modules/ 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: objective-c 2 | 3 | notifications: 4 | email: 5 | on_success: never 6 | on_failure: change 7 | 8 | script: 'curl -s https://raw.githubusercontent.com/atom/ci/master/build-package.sh | sh' 9 | 10 | git: 11 | depth: 10 12 | 13 | branches: 14 | only: 15 | - master -------------------------------------------------------------------------------- /DEVELOPER-NOTES.md: -------------------------------------------------------------------------------- 1 | # Atom package for Spring Boot Application Properties 2 | 3 | Atom package and Language Server providing support for Spring Boot applications development. Beans data for `.java` file, and editing support for `application.properties`, `application.yml` files. 4 | 5 | ## Installation: 6 | 7 | Install it from Atom `Install Packages`, search for `spring-boot` 8 | 9 | ## Usage: 10 | 11 | The extension will automatically activate when you edit files with the following 12 | name patterns: 13 | 14 | - `.java` => activates spring beans data support 15 | - `application.properties` => activates support for .properties file format. 16 | - `application.yml` => activates support for .yml file format. 17 | 18 | For all other files containing boot properties select grammar to be `Spring-Boot-Properties` for `properties` file format or `Spring-Boot-Properties-YAML` for 'YAML' file format 19 | 20 | # Developer notes 21 | 22 | ## Bulding and Running 23 | 24 | To build all these pieces you normally only need to run: 25 | 26 | npm install && npm run build 27 | 28 | Now you can link it to Atom: 29 | 30 | apm link . 31 | 32 | Open Atom or execute `Refresh Window` in the opened instance (Packages -> Command Palette -> Toggle then search for the command). 33 | 34 | ## Debugging 35 | 36 | **Client Side Debugging**: Open Atom's `Developer Tools` view - View -> Developer -> Toggle Developer Tools 37 | 38 | **Server Side Debugging**: Change `launchVmArgs(jvm)` implementation in `lib/main.js` to be: 39 | ``` 40 | launchVmArgs(jvm) { 41 | return Promise.resolve([ 42 | '-Xdebug', 43 | '-agentlib:jdwp=transport=dt_socket,server=y,address=7999,suspend=n', 44 | '-Dorg.slf4j.simpleLogger.logFile=boot-properties.log', 45 | '-Dorg.slf4j.simpleLogger.defaultLogLevel=debug', 46 | ]); 47 | } 48 | 49 | ``` 50 | (Then setup the remote debugger from your IDE on the same port `7999`) 51 | 52 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | The content of this package is provided under the EPL v1.0 license (see below). 3 | For a detailed overview of embedded third-party components and their OSS licenses, please take a look at: https://github.com/spring-projects/sts4/blob/master/atom-extensions/atom-spring-boot/open-source-licenses.txt 4 | 5 | === 6 | 7 | Eclipse Public License - v 1.0 8 | 9 | THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. 10 | 11 | 1. DEFINITIONS 12 | 13 | "Contribution" means: 14 | 15 | a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and 16 | b) in the case of each subsequent Contributor: 17 | i) changes to the Program, and 18 | ii) additions to the Program; 19 | where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program. 20 | "Contributor" means any person or entity that distributes the Program. 21 | 22 | "Licensed Patents" mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program. 23 | 24 | "Program" means the Contributions distributed in accordance with this Agreement. 25 | 26 | "Recipient" means anyone who receives the Program under this Agreement, including all Contributors. 27 | 28 | 2. GRANT OF RIGHTS 29 | 30 | a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form. 31 | b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder. 32 | c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program. 33 | d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement. 34 | 3. REQUIREMENTS 35 | 36 | A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that: 37 | 38 | a) it complies with the terms and conditions of this Agreement; and 39 | b) its license agreement: 40 | i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose; 41 | ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits; 42 | iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and 43 | iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange. 44 | When the Program is made available in source code form: 45 | 46 | a) it must be made available under this Agreement; and 47 | b) a copy of this Agreement must be included with each copy of the Program. 48 | Contributors may not remove or alter any copyright notices contained within the Program. 49 | 50 | Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution. 51 | 52 | 4. COMMERCIAL DISTRIBUTION 53 | 54 | Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense. 55 | 56 | For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages. 57 | 58 | 5. NO WARRANTY 59 | 60 | EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations. 61 | 62 | 6. DISCLAIMER OF LIABILITY 63 | 64 | EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 65 | 66 | 7. GENERAL 67 | 68 | If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. 69 | 70 | If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. 71 | 72 | All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. 73 | 74 | Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. 75 | 76 | This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation. 77 | -------------------------------------------------------------------------------- /README.adoc: -------------------------------------------------------------------------------- 1 | # atom-spring-boot is no longer actively maintained by VMware, Inc. 2 | 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Atom package for Spring Boot projects 2 | 3 | [![macOS Build Status](https://travis-ci.org/spring-projects/atom-spring-boot.svg?branch=master)](https://travis-ci.org/spring-projects/atom-spring-boot) [![Windows Build Status](https://ci.appveyor.com/api/projects/status/1jvknxt9jhykgrxo?svg=true)](https://ci.appveyor.com/project/spring-projects/atom-spring-boot/branch/master) [![Dependency Status](https://david-dm.org/spring-projects/atom-spring-boot.svg)](https://david-dm.org/spring-projects/atom-spring-boot) 4 | 5 | Atom package and Language Server providing support for working with Spring Boot apps. 6 | 7 | # Java Support 8 | 9 | ## Usage: 10 | 11 | The extension will automatically activate when you edit files with the following 12 | name patterns: 13 | 14 | - `*.java` => activates support for Java files 15 | 16 | If you find an issue please raise it here: https://github.com/spring-projects/sts4/issues 17 | 18 | ## Functionality 19 | 20 | ### Navigating the source code - Go to symbol in file 21 | Easy navigation to Spring-specific elements of your source code. Open `.java` file then open Atom's `Outline View` - View -> Toggle Outline View 22 | 23 | ![Go to Symbol in file][screenshot-navigation] 24 | 25 | ### Live application information hovers 26 | Show information from running Spring Boot apps on your machine in the source code. This allows you to run the Spring Boot app locally on your machine and visualizes information from those running apps in your source code. 27 | 28 | #### Visualization 29 | Once the tooling detects a running Spring Boot app on your local machine, it automatically shows hints in the source code where data from the running app can be inspected. Then hovering over that area (with the mouse pointer), the data from the running app shows up. 30 | 31 | If there are multiple instances of the app running on your machine, the live data from all those instances will show up in the hover information. 32 | 33 | ![live data from running apps as hover on source code][screenshot-live-hovers] 34 | 35 | #### Examples 36 | * `@Profile`: shows information about the active profiles on the running apps 37 | * `@Component`, `@Bean`, `@Autowired`: shows detailed information about the beans and their wiring from the live app 38 | * `@ContidionalOn...`: shows information about the conditions and their evaluation at runtime 39 | * `RequestMapping`: show information about the request mapping for running apps 40 | 41 | #### Configuration 42 | You can enable/disable this feature via workspace preferences by adding the following: 43 | ``` 44 | "boot-java": 45 | "boot-hints": 46 | on: false 47 | 48 | ``` 49 | 50 | ### Smart code completions 51 | Additional code completions for Spring-specific annotations 52 | 53 | ![Smart code completion for boot properties][screenshot-code-completion] 54 | 55 | #### Examples 56 | * `@Value`: code completion for Spring Boot property keys 57 | * `@Scope`: code completion for standard scope names 58 | 59 | # Properties Support 60 | 61 | Atom package and Language Server providing support for working with Spring Boot 62 | `application.properties` and `application.yml` files. 63 | 64 | ## Usage: 65 | 66 | The package will automatically activate when you edit files with the following 67 | name patterns: 68 | 69 | - `application.properties` => activates support for Spring Boot properties in `.properties`format. 70 | - `application.yml` => activates support for Spring Boot properties in `.yml` format. 71 | 72 | For all other files select grammar to be `Spring-Boot-Properties` for `properties` file format or `Spring-Boot-Properties-YAML` for 'YAML' file format 73 | 74 | ## Functionality 75 | 76 | This package analyzes your project's classpath and parses and indexes any [Spring Boot 77 | Properties Metadata](https://docs.spring.io/spring-boot/docs/current/reference/html/configuration-metadata.html) it finds. Both Maven and Gradle projects are supported. 78 | 79 | The data in the index is used to provide validation, code completions and information 80 | hovers while editing Spring Boot Properties in either `.properties` or `.yml` format. 81 | 82 | ### Validation 83 | 84 | Property keys as well as property values are validated. Property keys are validated for being known properties and values are checked for being of expected type as well being a valid value 85 | 86 | ![application-yaml-validation][yaml-validation] 87 | ![application-properties-validation][properties-validation] 88 | 89 | ### Code Completions 90 | 91 | Both YAML and Properties formats have support for Content Assist on property keys and values helping to write valid Spring Boot configuration files right from the start. 92 | 93 | ![application-yaml-completions][yaml-completion] 94 | 95 | ![application-properties-completions][properties-completion] 96 | 97 | ### Information Hovers 98 | 99 | Hovering over property keys provide valuable documentation about the purpose of the property and expected type for its value in a small popup window. 100 | 101 | ![application-yaml-hovers][yaml-hovers] 102 | 103 | # Issues and Feature Requests 104 | 105 | Please report bugs, issues and feature requests on the [Github STS4 issue tracker](https://github.com/spring-projects/sts4/issues). 106 | 107 | 108 | # Releases: 109 | 110 | Released versions of this package can be installed directly from the Atom package installer. 111 | 112 | There are also development snapshots available with the latest fixes and improvements from release git repository: https://github.com/spring-projects/atom-spring-boot 113 | 1. Clone the release repository for Atom package if not already cloned and navigate to `atom-spring-boot` folder 114 | 2. Run `git clean -fxd` - necessary to delete out of date LS JAR file and dependency packages 115 | 3. Run `git pull` - get the latest changes 116 | 3. Run `npm install` - Install latest dependecnies and download proper LS JAR 117 | 4. Run `apm link .` - Link the package to Atom 118 | 5. Either start Atom or Reload Window in Atom 119 | 120 | [screenshot-live-hovers]: https://raw.githubusercontent.com/spring-projects/sts4/4167094ab94a05657fe4b495770bf93ce3a1585f/atom-extensions/atom-spring-boot/readme-imgs/screenshot-live-hovers.png 121 | [screenshot-code-completion]: https://raw.githubusercontent.com/spring-projects/sts4/874c74f3bae0dd08250aeceb46ae5cc2ca720096/atom-extensions/atom-spring-boot/readme-imgs/screenshot-code-completion.png 122 | [screenshot-navigation]: https://raw.githubusercontent.com/spring-projects/sts4/4167094ab94a05657fe4b495770bf93ce3a1585f/atom-extensions/atom-spring-boot/readme-imgs/screenshot-navigation-in-file.png 123 | 124 | [yaml-completion]: https://raw.githubusercontent.com/spring-projects/sts4/874c74f3bae0dd08250aeceb46ae5cc2ca720096/atom-extensions/atom-spring-boot/readme-imgs/yaml-completion.png 125 | [properties-completion]: https://raw.githubusercontent.com/spring-projects/sts4/874c74f3bae0dd08250aeceb46ae5cc2ca720096/atom-extensions/atom-spring-boot/readme-imgs/properties-completion.png 126 | [yaml-validation]: https://raw.githubusercontent.com/spring-projects/sts4/874c74f3bae0dd08250aeceb46ae5cc2ca720096/atom-extensions/atom-spring-boot/readme-imgs/yaml-validation.png 127 | [properties-validation]: https://raw.githubusercontent.com/spring-projects/sts4/874c74f3bae0dd08250aeceb46ae5cc2ca720096/atom-extensions/atom-spring-boot/readme-imgs/properties-validation.png 128 | [yaml-hovers]: https://raw.githubusercontent.com/spring-projects/sts4/874c74f3bae0dd08250aeceb46ae5cc2ca720096/atom-extensions/atom-spring-boot/readme-imgs/yaml-hovers.png 129 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "{build}" 2 | 3 | platform: x64 4 | 5 | branches: 6 | only: 7 | - master 8 | 9 | clone_depth: 10 10 | 11 | skip_tags: true 12 | 13 | environment: 14 | APM_TEST_PACKAGES: 15 | 16 | matrix: 17 | - ATOM_CHANNEL: stable 18 | - ATOM_CHANNEL: beta 19 | 20 | install: 21 | - ps: Install-Product node 6 22 | 23 | build_script: 24 | - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/atom/ci/master/build-package.ps1')) 25 | 26 | test: off 27 | deploy: off -------------------------------------------------------------------------------- /build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | set -x 4 | workdir=`pwd` 5 | 6 | # Cleanup old jars 7 | rm -rf server 8 | mkdir server 9 | 10 | # Build fat jar and copy it over into 11 | cd ../../headless-services/spring-boot-language-server 12 | ./build.sh 13 | cp -f target/spring-boot-language-server-*-exec.jar $workdir/server/spring-boot-language-server.jar 14 | 15 | # Installs atom-commons from source rather than npm registry 16 | # cd ../atom-commons 17 | # npm install 18 | 19 | cd $workdir 20 | npm install 21 | npm run build 22 | -------------------------------------------------------------------------------- /build/boot-sts-adapter.d.ts: -------------------------------------------------------------------------------- 1 | import { StsAdapter, HighlightParams } from '@pivotal-tools/atom-languageclient-commons'; 2 | export declare class BootStsAdapter extends StsAdapter { 3 | constructor(); 4 | onHighlight(params: HighlightParams): void; 5 | private markHintsForEditor; 6 | private createHintMarker; 7 | } 8 | -------------------------------------------------------------------------------- /build/boot-sts-adapter.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | const atom_languageclient_commons_1 = require("@pivotal-tools/atom-languageclient-commons"); 4 | const atom_languageclient_1 = require("atom-languageclient"); 5 | const BOOT_HINT_GUTTER_NAME = 'boot-hint-gutter'; 6 | const DECORATION_OPTIONS = { 7 | type: 'highlight', 8 | class: 'boot-hint', 9 | gutterName: BOOT_HINT_GUTTER_NAME 10 | }; 11 | class BootStsAdapter extends atom_languageclient_commons_1.StsAdapter { 12 | constructor() { 13 | super(); 14 | } 15 | onHighlight(params) { 16 | this.findEditors(params.doc.uri).forEach(editor => this.markHintsForEditor(editor, params.codeLenses)); 17 | } 18 | markHintsForEditor(editor, codeLenses) { 19 | editor.getDecorations(DECORATION_OPTIONS).map(decoration => decoration.getMarker()).forEach(m => m.destroy()); 20 | const ranges = codeLenses.map(cl => cl.range); 21 | if (Array.isArray(ranges)) { 22 | ranges.forEach(range => this.createHintMarker(editor, range)); 23 | } 24 | // const gutter = editor.gutterWithName(BOOT_HINT_GUTTER_NAME); 25 | // if (gutter) { 26 | // if (!ranges || !ranges.length) { 27 | // gutter.hide(); 28 | // } else if (!gutter.isVisible()) { 29 | // gutter.show(); 30 | // } 31 | // } 32 | } 33 | createHintMarker(editor, range) { 34 | // Create marker model 35 | const marker = editor.markBufferRange(atom_languageclient_1.Convert.lsRangeToAtomRange(range)); 36 | // Marker around the text in the editor 37 | editor.decorateMarker(marker, DECORATION_OPTIONS); 38 | // Marker in the diagnostic gutter 39 | // let gutter = editor.gutterWithName(BOOT_HINT_GUTTER_NAME); 40 | // if (!gutter) { 41 | // gutter = editor.addGutter({ 42 | // name: BOOT_HINT_GUTTER_NAME, 43 | // visible: false, 44 | // }); 45 | // } 46 | // const iconElement = document.createElement('span'); 47 | // iconElement.setAttribute('class', 'gutter-boot-hint'); 48 | // gutter.decorateMarker(marker, {item: iconElement}); 49 | } 50 | } 51 | exports.BootStsAdapter = BootStsAdapter; 52 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9vdC1zdHMtYWRhcHRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL2xpYi9ib290LXN0cy1hZGFwdGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNEZBQXVGO0FBQ3ZGLDZEQUE0QztBQUk1QyxNQUFNLHFCQUFxQixHQUFHLGtCQUFrQixDQUFDO0FBRWpELE1BQU0sa0JBQWtCLEdBQXNCO0lBQzFDLElBQUksRUFBRSxXQUFXO0lBQ2pCLEtBQUssRUFBRSxXQUFXO0lBQ2xCLFVBQVUsRUFBRSxxQkFBcUI7Q0FDcEMsQ0FBQztBQUVGLG9CQUE0QixTQUFRLHdDQUFVO0lBRTFDO1FBQ0ksS0FBSyxFQUFFLENBQUM7SUFDWixDQUFDO0lBRUQsV0FBVyxDQUFDLE1BQXVCO1FBQy9CLElBQUksQ0FBQyxXQUFXLENBQUMsTUFBTSxDQUFDLEdBQUcsQ0FB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2l0ZW06IGljb25FbGVtZW50fSk7XG4gICAgfVxuXG59Il19 -------------------------------------------------------------------------------- /build/main.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /build/main.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | const spring_boot_language_client_1 = require("./spring-boot-language-client"); 4 | module.exports = new spring_boot_language_client_1.SpringBootLanguageClient(); 5 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL2xpYi9tYWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0VBQXVFO0FBRXZFLE1BQU0sQ0FBQyxPQUFPLEdBQUcsSUFBSSxzREFBd0IsRUFBRSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtTcHJpbmdCb290TGFuZ3VhZ2VDbGllbnR9IGZyb20gJy4vc3ByaW5nLWJvb3QtbGFuZ3VhZ2UtY2xpZW50JztcblxubW9kdWxlLmV4cG9ydHMgPSBuZXcgU3ByaW5nQm9vdExhbmd1YWdlQ2xpZW50KCk7Il19 -------------------------------------------------------------------------------- /build/spring-boot-language-client.d.ts: -------------------------------------------------------------------------------- 1 | import { JavaProcessLanguageClient, JavaOptions } from '@pivotal-tools/atom-languageclient-commons'; 2 | import { BootStsAdapter } from './boot-sts-adapter'; 3 | import { ActiveServer } from 'atom-languageclient'; 4 | import { JVM } from '@pivotal-tools/jvm-launch-utils'; 5 | export declare class SpringBootLanguageClient extends JavaProcessLanguageClient { 6 | constructor(); 7 | protected postInitialization(server: ActiveServer): void; 8 | private sendConfig; 9 | getGrammarScopes(): string[]; 10 | getLanguageName(): string; 11 | getServerName(): string; 12 | activate(): void; 13 | preferJdk(): boolean; 14 | launchVmArgs(jvm: JVM): Promise; 15 | createStsAdapter(): BootStsAdapter; 16 | filterChangeWatchedFiles(filePath: string): boolean; 17 | getJavaOptions(): JavaOptions; 18 | } 19 | -------------------------------------------------------------------------------- /build/spring-boot-language-client.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | const path = require("path"); 4 | const atom_languageclient_commons_1 = require("@pivotal-tools/atom-languageclient-commons"); 5 | const boot_sts_adapter_1 = require("./boot-sts-adapter"); 6 | class SpringBootLanguageClient extends atom_languageclient_commons_1.JavaProcessLanguageClient { 7 | constructor() { 8 | //noinspection JSAnnotator 9 | super(path.join(__dirname, '..', 'server'), 'spring-boot-language-server.jar'); 10 | // this.DEBUG = true; 11 | } 12 | postInitialization(server) { 13 | super.postInitialization(server); 14 | this.sendConfig(server); 15 | this._disposable.add(atom.config.observe('spring-boot', () => this.sendConfig(server))); 16 | } 17 | sendConfig(server) { 18 | server.connection.didChangeConfiguration({ settings: { 'boot-java': atom.config.get('spring-boot') } }); 19 | } 20 | getGrammarScopes() { 21 | return ['source.java', 'source.boot-properties', 'source.boot-properties-yaml', 'text.xml']; 22 | } 23 | getLanguageName() { 24 | return 'spring-boot'; 25 | } 26 | getServerName() { 27 | return 'Spring Boot'; 28 | } 29 | activate() { 30 | require('atom-package-deps') 31 | .install('spring-boot') 32 | .then(() => console.debug('All dependencies installed, good to go')); 33 | super.activate(); 34 | } 35 | preferJdk() { 36 | return true; 37 | } 38 | launchVmArgs(jvm) { 39 | let vmargs = [ 40 | // '-Xdebug', 41 | // '-agentlib:jdwp=transport=dt_socket,server=y,address=7999,suspend=y', 42 | '-Dorg.slf4j.simpleLogger.logFile=boot-java.log' 43 | ]; 44 | if (!jvm.isJdk()) { 45 | this.showErrorMessage('"Boot-Java" Package Functionality Limited', 'JAVA_HOME or PATH environment variable seems to point to a JRE. A JDK is required, hence Boot Hints are unavailable.'); 46 | } 47 | return Promise.resolve(vmargs); 48 | } 49 | createStsAdapter() { 50 | return new boot_sts_adapter_1.BootStsAdapter(); 51 | } 52 | filterChangeWatchedFiles(filePath) { 53 | return filePath.endsWith('.gradle') || filePath.endsWith(path.join('', 'pom.xml')); 54 | } 55 | getJavaOptions() { 56 | const home = atom.config.get('spring-boot.java.home'); 57 | const vmargs = atom.config.get('spring-boot.java.vmargs'); 58 | return { 59 | home: typeof home === 'string' ? home : undefined, 60 | vmargs: Array.isArray(vmargs) ? vmargs : undefined 61 | }; 62 | } 63 | } 64 | exports.SpringBootLanguageClient = SpringBootLanguageClient; 65 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3ByaW5nLWJvb3QtbGFuZ3VhZ2UtY2xpZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL3NwcmluZy1ib290LWxhbmd1YWdlLWNsaWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3Qiw0RkFBa0c7QUFDbEcseURBQWtEO0FBSWxELDhCQUFzQyxTQUFRLHVEQUF5QjtJQUVuRTtRQUNJLDBCQUEwQjtRQUMxQixLQUFLLENBQ0QsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLEVBQUUsSUFBSSxFQUFFLFFBQVEsQ0FBQyxFQUNwQyxpQ0FBaUMsQ0FDcEMsQ0FBQztRQUNGLHFCQUFxQjtJQUN6QixDQUFDO0lBRVMsa0JBQWtCLENBQUMsTUFBb0I7UUFDN0MsS0FBSyxDQUFDLGtCQUFrQixDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQ2pDLElBQUksQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDbEIsSUFBSyxDQUFDLFdBQVcsQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxPQUFPLENBQUMsYUFBYSxFQUFFLEdBQUcsRUFBRSxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDLENBQUMsQ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ICAgICAgIH07XG4gICAgfVxuXG59XG4iXX0= -------------------------------------------------------------------------------- /coffeelint.json: -------------------------------------------------------------------------------- 1 | { 2 | "max_line_length": { 3 | "level": "ignore" 4 | }, 5 | "no_empty_param_list": { 6 | "level": "error" 7 | }, 8 | "arrow_spacing": { 9 | "level": "error" 10 | }, 11 | "no_interpolation_in_single_quotes": { 12 | "level": "error" 13 | }, 14 | "no_debugger": { 15 | "level": "error" 16 | }, 17 | "prefer_english_operator": { 18 | "level": "error" 19 | }, 20 | "colon_assignment_spacing": { 21 | "spacing": { 22 | "left": 0, 23 | "right": 1 24 | }, 25 | "level": "error" 26 | }, 27 | "braces_spacing": { 28 | "spaces": 0, 29 | "level": "error" 30 | }, 31 | "spacing_after_comma": { 32 | "level": "error" 33 | }, 34 | "no_stand_alone_at": { 35 | "level": "error" 36 | } 37 | } -------------------------------------------------------------------------------- /grammars/boot-properties-yaml.cson: -------------------------------------------------------------------------------- 1 | 'scopeName': 'source.boot-properties-yaml' 2 | 'name': 'Spring-Boot-Properties-YAML' 3 | 'fileTypes': [ 4 | 'application.yml', 5 | 'application.yaml' 6 | ] 7 | 'patterns': [ 8 | { 'include': 'source.yaml' } 9 | ] -------------------------------------------------------------------------------- /grammars/boot-properties.cson: -------------------------------------------------------------------------------- 1 | 'scopeName': 'source.boot-properties' 2 | 'name': 'Spring-Boot-Properties' 3 | 'fileTypes': [ 4 | 'application.properties' 5 | ] 6 | 'patterns': [ 7 | { 'include': 'source.java-properties' } 8 | ] 9 | -------------------------------------------------------------------------------- /lib/boot-sts-adapter.ts: -------------------------------------------------------------------------------- 1 | import {StsAdapter, HighlightParams} from '@pivotal-tools/atom-languageclient-commons'; 2 | import {Convert} from 'atom-languageclient'; 3 | import { Range, CodeLens } from 'vscode-languageserver-protocol'; 4 | import {TextEditor, DecorationOptions } from 'atom'; 5 | 6 | const BOOT_HINT_GUTTER_NAME = 'boot-hint-gutter'; 7 | 8 | const DECORATION_OPTIONS: DecorationOptions = { 9 | type: 'highlight', 10 | class: 'boot-hint', 11 | gutterName: BOOT_HINT_GUTTER_NAME 12 | }; 13 | 14 | export class BootStsAdapter extends StsAdapter { 15 | 16 | constructor() { 17 | super(); 18 | } 19 | 20 | onHighlight(params: HighlightParams) { 21 | this.findEditors(params.doc.uri).forEach(editor => this.markHintsForEditor(editor, params.codeLenses)); 22 | } 23 | 24 | private markHintsForEditor(editor: TextEditor, codeLenses: CodeLens[]) { 25 | editor.getDecorations(DECORATION_OPTIONS).map(decoration => decoration.getMarker()).forEach(m => m.destroy()); 26 | const ranges = codeLenses.map(cl => cl.range); 27 | if (Array.isArray(ranges)) { 28 | ranges.forEach(range => this.createHintMarker(editor, range)); 29 | } 30 | // const gutter = editor.gutterWithName(BOOT_HINT_GUTTER_NAME); 31 | // if (gutter) { 32 | // if (!ranges || !ranges.length) { 33 | // gutter.hide(); 34 | // } else if (!gutter.isVisible()) { 35 | // gutter.show(); 36 | // } 37 | // } 38 | } 39 | 40 | private createHintMarker(editor: TextEditor, range: Range) { 41 | // Create marker model 42 | const marker = editor.markBufferRange(Convert.lsRangeToAtomRange(range)); 43 | 44 | // Marker around the text in the editor 45 | editor.decorateMarker(marker, DECORATION_OPTIONS); 46 | 47 | // Marker in the diagnostic gutter 48 | // let gutter = editor.gutterWithName(BOOT_HINT_GUTTER_NAME); 49 | // if (!gutter) { 50 | // gutter = editor.addGutter({ 51 | // name: BOOT_HINT_GUTTER_NAME, 52 | // visible: false, 53 | // }); 54 | // } 55 | // const iconElement = document.createElement('span'); 56 | // iconElement.setAttribute('class', 'gutter-boot-hint'); 57 | // gutter.decorateMarker(marker, {item: iconElement}); 58 | } 59 | 60 | } -------------------------------------------------------------------------------- /lib/main.ts: -------------------------------------------------------------------------------- 1 | import {SpringBootLanguageClient} from './spring-boot-language-client'; 2 | 3 | module.exports = new SpringBootLanguageClient(); -------------------------------------------------------------------------------- /lib/spring-boot-language-client.ts: -------------------------------------------------------------------------------- 1 | import * as path from 'path'; 2 | import {JavaProcessLanguageClient, JavaOptions} from '@pivotal-tools/atom-languageclient-commons'; 3 | import {BootStsAdapter} from './boot-sts-adapter'; 4 | import {ActiveServer} from 'atom-languageclient'; 5 | import {JVM} from '@pivotal-tools/jvm-launch-utils'; 6 | 7 | export class SpringBootLanguageClient extends JavaProcessLanguageClient { 8 | 9 | constructor() { 10 | //noinspection JSAnnotator 11 | super( 12 | path.join(__dirname, '..', 'server'), 13 | 'spring-boot-language-server.jar' 14 | ); 15 | // this.DEBUG = true; 16 | } 17 | 18 | protected postInitialization(server: ActiveServer) { 19 | super.postInitialization(server); 20 | this.sendConfig(server); 21 | (this)._disposable.add(atom.config.observe('spring-boot', () => this.sendConfig(server))); 22 | } 23 | 24 | private sendConfig(server: ActiveServer) { 25 | server.connection.didChangeConfiguration({ settings: {'boot-java': atom.config.get('spring-boot') }}); 26 | } 27 | 28 | getGrammarScopes() { 29 | return ['source.java', 'source.boot-properties', 'source.boot-properties-yaml', 'text.xml']; 30 | } 31 | 32 | getLanguageName() { 33 | return 'spring-boot'; 34 | } 35 | 36 | getServerName() { 37 | return 'Spring Boot'; 38 | } 39 | 40 | activate() { 41 | require('atom-package-deps') 42 | .install('spring-boot') 43 | .then(() => console.debug('All dependencies installed, good to go')); 44 | super.activate(); 45 | } 46 | 47 | preferJdk() { 48 | return true; 49 | } 50 | 51 | launchVmArgs(jvm: JVM) { 52 | let vmargs = [ 53 | // '-Xdebug', 54 | // '-agentlib:jdwp=transport=dt_socket,server=y,address=7999,suspend=y', 55 | '-Dorg.slf4j.simpleLogger.logFile=boot-java.log' 56 | ]; 57 | if (!jvm.isJdk()) { 58 | this.showErrorMessage( 59 | '"Boot-Java" Package Functionality Limited', 60 | 'JAVA_HOME or PATH environment variable seems to point to a JRE. A JDK is required, hence Boot Hints are unavailable.' 61 | ); 62 | } 63 | return Promise.resolve(vmargs); 64 | } 65 | 66 | createStsAdapter() { 67 | return new BootStsAdapter(); 68 | } 69 | 70 | filterChangeWatchedFiles(filePath: string) { 71 | return filePath.endsWith('.gradle') || filePath.endsWith(path.join('', 'pom.xml')); 72 | } 73 | 74 | getJavaOptions(): JavaOptions { 75 | const home = atom.config.get('spring-boot.java.home'); 76 | const vmargs = atom.config.get('spring-boot.java.vmargs'); 77 | return { 78 | home: typeof home === 'string' ? home : undefined, 79 | vmargs: Array.isArray(vmargs) ? vmargs : undefined 80 | }; 81 | } 82 | 83 | } 84 | -------------------------------------------------------------------------------- /open-source-licenses.txt: -------------------------------------------------------------------------------- 1 | work-in-progress -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "spring-boot", 3 | "version": "1.20.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@babel/code-frame": { 8 | "version": "7.10.4", 9 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz", 10 | "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==", 11 | "dev": true, 12 | "requires": { 13 | "@babel/highlight": "^7.10.4" 14 | } 15 | }, 16 | "@babel/helper-validator-identifier": { 17 | "version": "7.10.4", 18 | "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz", 19 | "integrity": "sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==", 20 | "dev": true 21 | }, 22 | "@babel/highlight": { 23 | "version": "7.10.4", 24 | "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz", 25 | "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==", 26 | "dev": true, 27 | "requires": { 28 | "@babel/helper-validator-identifier": "^7.10.4", 29 | "chalk": "^2.0.0", 30 | "js-tokens": "^4.0.0" 31 | } 32 | }, 33 | "@pivotal-tools/atom-languageclient-commons": { 34 | "version": "0.0.15", 35 | "resolved": "https://registry.npmjs.org/@pivotal-tools/atom-languageclient-commons/-/atom-languageclient-commons-0.0.15.tgz", 36 | "integrity": "sha512-zPIObb+ISbdP1kktAUE2Dcb4eb8h2snfkg435T4oglC1uCqzUwF40SIR/d8txeJM6ZJ2H9+Xka5qhZq2KcDPrw==", 37 | "requires": { 38 | "@pivotal-tools/jvm-launch-utils": "0.0.11", 39 | "@types/atom": "^1.24.1", 40 | "@types/node": "^8.0.41", 41 | "atom-languageclient": "0.9.9", 42 | "portfinder": "^1.0.13" 43 | } 44 | }, 45 | "@pivotal-tools/jvm-launch-utils": { 46 | "version": "0.0.11", 47 | "resolved": "https://registry.npmjs.org/@pivotal-tools/jvm-launch-utils/-/jvm-launch-utils-0.0.11.tgz", 48 | "integrity": "sha512-PSBzegFv+m1AaAlHBtWzfxdxZG3RFJaTNk0ognOjDV+URrPnMWkD2DBt4pgEGynpnnK8G5WZZGVu5flcIsKGyQ==" 49 | }, 50 | "@types/atom": { 51 | "version": "1.40.4", 52 | "resolved": "https://registry.npmjs.org/@types/atom/-/atom-1.40.4.tgz", 53 | "integrity": "sha512-qG2h2Kpk7IiEkAAKKhMYJWz3wt7eay5EipVoy84ot9OZ3vTGLqOHX1M1ibGKtKnVrZabHws7ngKlt0Fjuvg4Tw==", 54 | "requires": { 55 | "@types/node": "*" 56 | } 57 | }, 58 | "@types/node": { 59 | "version": "8.10.61", 60 | "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.61.tgz", 61 | "integrity": "sha512-l+zSbvT8TPRaCxL1l9cwHCb0tSqGAGcjPJFItGGYat5oCTiq1uQQKYg5m7AF1mgnEBzFXGLJ2LRmNjtreRX76Q==" 62 | }, 63 | "ansi-styles": { 64 | "version": "3.2.1", 65 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 66 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 67 | "dev": true, 68 | "requires": { 69 | "color-convert": "^1.9.0" 70 | } 71 | }, 72 | "argparse": { 73 | "version": "1.0.10", 74 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 75 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 76 | "dev": true, 77 | "requires": { 78 | "sprintf-js": "~1.0.2" 79 | } 80 | }, 81 | "async": { 82 | "version": "2.6.3", 83 | "resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz", 84 | "integrity": "sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==", 85 | "requires": { 86 | "lodash": "^4.17.14" 87 | } 88 | }, 89 | "atom-languageclient": { 90 | "version": "0.9.9", 91 | "resolved": "https://registry.npmjs.org/atom-languageclient/-/atom-languageclient-0.9.9.tgz", 92 | "integrity": "sha512-eAKLFhprcDksPtDtG2lrhQEosNMxEbS7MISpw7n6TIoPmTgolvo+GPAF+nSV+Z9MCss91i+M+TNk9Mj5C7y/CQ==", 93 | "requires": { 94 | "fuzzaldrin-plus": "^0.6.0", 95 | "vscode-jsonrpc": "4.0.0", 96 | "vscode-languageserver-protocol": "3.12.0", 97 | "vscode-languageserver-types": "3.12.0" 98 | } 99 | }, 100 | "atom-package-deps": { 101 | "version": "4.6.2", 102 | "resolved": "https://registry.npmjs.org/atom-package-deps/-/atom-package-deps-4.6.2.tgz", 103 | "integrity": "sha512-GOcCULZPzpcFfnHo9Oz5fT/EaArFHNs84E4rp/Nox0/GlS1UYkEF44FRdgD+7TxAudRfQAXE0a8wh0GealCXZg==", 104 | "requires": { 105 | "atom-package-path": "^1.1.0", 106 | "sb-fs": "^3.0.0", 107 | "semver": "^5.3.0" 108 | } 109 | }, 110 | "atom-package-path": { 111 | "version": "1.1.0", 112 | "resolved": "https://registry.npmjs.org/atom-package-path/-/atom-package-path-1.1.0.tgz", 113 | "integrity": "sha1-tR/tvADnyM5SI9DYA9t6P09pYU8=", 114 | "requires": { 115 | "sb-callsite": "^1.1.2" 116 | } 117 | }, 118 | "balanced-match": { 119 | "version": "1.0.0", 120 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 121 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", 122 | "dev": true 123 | }, 124 | "base64-js": { 125 | "version": "1.3.1", 126 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz", 127 | "integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g==" 128 | }, 129 | "bl": { 130 | "version": "1.2.2", 131 | "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.2.tgz", 132 | "integrity": "sha512-e8tQYnZodmebYDWGH7KMRvtzKXaJHx3BbilrgZCfvyLUYdKpK1t5PSPmpkny/SgiTSCnjfLW7v5rlONXVFkQEA==", 133 | "requires": { 134 | "readable-stream": "^2.3.5", 135 | "safe-buffer": "^5.1.1" 136 | } 137 | }, 138 | "brace-expansion": { 139 | "version": "1.1.11", 140 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 141 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 142 | "dev": true, 143 | "requires": { 144 | "balanced-match": "^1.0.0", 145 | "concat-map": "0.0.1" 146 | } 147 | }, 148 | "buffer": { 149 | "version": "5.6.0", 150 | "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.6.0.tgz", 151 | "integrity": "sha512-/gDYp/UtU0eA1ys8bOs9J6a+E/KWIY+DZ+Q2WESNUA0jFRsJOc0SNUO6xJ5SGA1xueg3NL65W6s+NY5l9cunuw==", 152 | "requires": { 153 | "base64-js": "^1.0.2", 154 | "ieee754": "^1.1.4" 155 | } 156 | }, 157 | "buffer-alloc": { 158 | "version": "1.2.0", 159 | "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz", 160 | "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==", 161 | "requires": { 162 | "buffer-alloc-unsafe": "^1.1.0", 163 | "buffer-fill": "^1.0.0" 164 | } 165 | }, 166 | "buffer-alloc-unsafe": { 167 | "version": "1.1.0", 168 | "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", 169 | "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==" 170 | }, 171 | "buffer-crc32": { 172 | "version": "0.2.13", 173 | "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", 174 | "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=" 175 | }, 176 | "buffer-fill": { 177 | "version": "1.0.0", 178 | "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", 179 | "integrity": "sha1-+PeLdniYiO858gXNY39o5wISKyw=" 180 | }, 181 | "builtin-modules": { 182 | "version": "1.1.1", 183 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", 184 | "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", 185 | "dev": true 186 | }, 187 | "caw": { 188 | "version": "2.0.1", 189 | "resolved": "https://registry.npmjs.org/caw/-/caw-2.0.1.tgz", 190 | "integrity": "sha512-Cg8/ZSBEa8ZVY9HspcGUYaK63d/bN7rqS3CYCzEGUxuYv6UlmcjzDUz2fCFFHyTvUW5Pk0I+3hkA3iXlIj6guA==", 191 | "requires": { 192 | "get-proxy": "^2.0.0", 193 | "isurl": "^1.0.0-alpha5", 194 | "tunnel-agent": "^0.6.0", 195 | "url-to-options": "^1.0.1" 196 | } 197 | }, 198 | "chalk": { 199 | "version": "2.4.2", 200 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 201 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 202 | "dev": true, 203 | "requires": { 204 | "ansi-styles": "^3.2.1", 205 | "escape-string-regexp": "^1.0.5", 206 | "supports-color": "^5.3.0" 207 | } 208 | }, 209 | "coffee-script": { 210 | "version": "1.11.1", 211 | "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.11.1.tgz", 212 | "integrity": "sha1-vxxHrWREOg2V0S3ysUfMCk2q1uk=", 213 | "dev": true 214 | }, 215 | "coffeelint": { 216 | "version": "1.16.2", 217 | "resolved": "https://registry.npmjs.org/coffeelint/-/coffeelint-1.16.2.tgz", 218 | "integrity": "sha512-6mzgOo4zb17WfdrSui/cSUEgQ0AQkW3gXDht+6lHkfkqGUtSYKwGdGcXsDfAyuScVzTlTtKdfwkAlJWfqul7zg==", 219 | "dev": true, 220 | "requires": { 221 | "coffee-script": "~1.11.0", 222 | "glob": "^7.0.6", 223 | "ignore": "^3.0.9", 224 | "optimist": "^0.6.1", 225 | "resolve": "^0.6.3", 226 | "strip-json-comments": "^1.0.2" 227 | } 228 | }, 229 | "color-convert": { 230 | "version": "1.9.3", 231 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 232 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 233 | "dev": true, 234 | "requires": { 235 | "color-name": "1.1.3" 236 | } 237 | }, 238 | "color-name": { 239 | "version": "1.1.3", 240 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 241 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", 242 | "dev": true 243 | }, 244 | "commander": { 245 | "version": "2.8.1", 246 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.8.1.tgz", 247 | "integrity": "sha1-Br42f+v9oMMwqh4qBy09yXYkJdQ=", 248 | "requires": { 249 | "graceful-readlink": ">= 1.0.0" 250 | } 251 | }, 252 | "concat-map": { 253 | "version": "0.0.1", 254 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 255 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 256 | "dev": true 257 | }, 258 | "config-chain": { 259 | "version": "1.1.12", 260 | "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.12.tgz", 261 | "integrity": "sha512-a1eOIcu8+7lUInge4Rpf/n4Krkf3Dd9lqhljRzII1/Zno/kRtUWnznPO3jOKBmTEktkt3fkxisUcivoj0ebzoA==", 262 | "requires": { 263 | "ini": "^1.3.4", 264 | "proto-list": "~1.2.1" 265 | } 266 | }, 267 | "content-disposition": { 268 | "version": "0.5.3", 269 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", 270 | "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", 271 | "requires": { 272 | "safe-buffer": "5.1.2" 273 | }, 274 | "dependencies": { 275 | "safe-buffer": { 276 | "version": "5.1.2", 277 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 278 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 279 | } 280 | } 281 | }, 282 | "core-util-is": { 283 | "version": "1.0.2", 284 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 285 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" 286 | }, 287 | "debug": { 288 | "version": "3.2.6", 289 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", 290 | "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", 291 | "requires": { 292 | "ms": "^2.1.1" 293 | } 294 | }, 295 | "decompress": { 296 | "version": "4.2.1", 297 | "resolved": "https://registry.npmjs.org/decompress/-/decompress-4.2.1.tgz", 298 | "integrity": "sha512-e48kc2IjU+2Zw8cTb6VZcJQ3lgVbS4uuB1TfCHbiZIP/haNXm+SVyhu+87jts5/3ROpd82GSVCoNs/z8l4ZOaQ==", 299 | "requires": { 300 | "decompress-tar": "^4.0.0", 301 | "decompress-tarbz2": "^4.0.0", 302 | "decompress-targz": "^4.0.0", 303 | "decompress-unzip": "^4.0.1", 304 | "graceful-fs": "^4.1.10", 305 | "make-dir": "^1.0.0", 306 | "pify": "^2.3.0", 307 | "strip-dirs": "^2.0.0" 308 | }, 309 | "dependencies": { 310 | "pify": { 311 | "version": "2.3.0", 312 | "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", 313 | "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=" 314 | } 315 | } 316 | }, 317 | "decompress-response": { 318 | "version": "3.3.0", 319 | "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", 320 | "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", 321 | "requires": { 322 | "mimic-response": "^1.0.0" 323 | } 324 | }, 325 | "decompress-tar": { 326 | "version": "4.1.1", 327 | "resolved": "https://registry.npmjs.org/decompress-tar/-/decompress-tar-4.1.1.tgz", 328 | "integrity": "sha512-JdJMaCrGpB5fESVyxwpCx4Jdj2AagLmv3y58Qy4GE6HMVjWz1FeVQk1Ct4Kye7PftcdOo/7U7UKzYBJgqnGeUQ==", 329 | "requires": { 330 | "file-type": "^5.2.0", 331 | "is-stream": "^1.1.0", 332 | "tar-stream": "^1.5.2" 333 | } 334 | }, 335 | "decompress-tarbz2": { 336 | "version": "4.1.1", 337 | "resolved": "https://registry.npmjs.org/decompress-tarbz2/-/decompress-tarbz2-4.1.1.tgz", 338 | "integrity": "sha512-s88xLzf1r81ICXLAVQVzaN6ZmX4A6U4z2nMbOwobxkLoIIfjVMBg7TeguTUXkKeXni795B6y5rnvDw7rxhAq9A==", 339 | "requires": { 340 | "decompress-tar": "^4.1.0", 341 | "file-type": "^6.1.0", 342 | "is-stream": "^1.1.0", 343 | "seek-bzip": "^1.0.5", 344 | "unbzip2-stream": "^1.0.9" 345 | }, 346 | "dependencies": { 347 | "file-type": { 348 | "version": "6.2.0", 349 | "resolved": "https://registry.npmjs.org/file-type/-/file-type-6.2.0.tgz", 350 | "integrity": "sha512-YPcTBDV+2Tm0VqjybVd32MHdlEGAtuxS3VAYsumFokDSMG+ROT5wawGlnHDoz7bfMcMDt9hxuXvXwoKUx2fkOg==" 351 | } 352 | } 353 | }, 354 | "decompress-targz": { 355 | "version": "4.1.1", 356 | "resolved": "https://registry.npmjs.org/decompress-targz/-/decompress-targz-4.1.1.tgz", 357 | "integrity": "sha512-4z81Znfr6chWnRDNfFNqLwPvm4db3WuZkqV+UgXQzSngG3CEKdBkw5jrv3axjjL96glyiiKjsxJG3X6WBZwX3w==", 358 | "requires": { 359 | "decompress-tar": "^4.1.1", 360 | "file-type": "^5.2.0", 361 | "is-stream": "^1.1.0" 362 | } 363 | }, 364 | "decompress-unzip": { 365 | "version": "4.0.1", 366 | "resolved": "https://registry.npmjs.org/decompress-unzip/-/decompress-unzip-4.0.1.tgz", 367 | "integrity": "sha1-3qrM39FK6vhVePczroIQ+bSEj2k=", 368 | "requires": { 369 | "file-type": "^3.8.0", 370 | "get-stream": "^2.2.0", 371 | "pify": "^2.3.0", 372 | "yauzl": "^2.4.2" 373 | }, 374 | "dependencies": { 375 | "file-type": { 376 | "version": "3.9.0", 377 | "resolved": "https://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz", 378 | "integrity": "sha1-JXoHg4TR24CHvESdEH1SpSZyuek=" 379 | }, 380 | "get-stream": { 381 | "version": "2.3.1", 382 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-2.3.1.tgz", 383 | "integrity": "sha1-Xzj5PzRgCWZu4BUKBUFn+Rvdld4=", 384 | "requires": { 385 | "object-assign": "^4.0.1", 386 | "pinkie-promise": "^2.0.0" 387 | } 388 | }, 389 | "pify": { 390 | "version": "2.3.0", 391 | "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", 392 | "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=" 393 | } 394 | } 395 | }, 396 | "diff": { 397 | "version": "4.0.2", 398 | "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", 399 | "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", 400 | "dev": true 401 | }, 402 | "download": { 403 | "version": "6.2.5", 404 | "resolved": "https://registry.npmjs.org/download/-/download-6.2.5.tgz", 405 | "integrity": "sha512-DpO9K1sXAST8Cpzb7kmEhogJxymyVUd5qz/vCOSyvwtp2Klj2XcDt5YUuasgxka44SxF0q5RriKIwJmQHG2AuA==", 406 | "requires": { 407 | "caw": "^2.0.0", 408 | "content-disposition": "^0.5.2", 409 | "decompress": "^4.0.0", 410 | "ext-name": "^5.0.0", 411 | "file-type": "5.2.0", 412 | "filenamify": "^2.0.0", 413 | "get-stream": "^3.0.0", 414 | "got": "^7.0.0", 415 | "make-dir": "^1.0.0", 416 | "p-event": "^1.0.0", 417 | "pify": "^3.0.0" 418 | } 419 | }, 420 | "duplexer3": { 421 | "version": "0.1.4", 422 | "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", 423 | "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=" 424 | }, 425 | "end-of-stream": { 426 | "version": "1.4.4", 427 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", 428 | "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", 429 | "requires": { 430 | "once": "^1.4.0" 431 | } 432 | }, 433 | "escape-string-regexp": { 434 | "version": "1.0.5", 435 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 436 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" 437 | }, 438 | "esprima": { 439 | "version": "4.0.1", 440 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 441 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 442 | "dev": true 443 | }, 444 | "ext-list": { 445 | "version": "2.2.2", 446 | "resolved": "https://registry.npmjs.org/ext-list/-/ext-list-2.2.2.tgz", 447 | "integrity": "sha512-u+SQgsubraE6zItfVA0tBuCBhfU9ogSRnsvygI7wht9TS510oLkBRXBsqopeUG/GBOIQyKZO9wjTqIu/sf5zFA==", 448 | "requires": { 449 | "mime-db": "^1.28.0" 450 | } 451 | }, 452 | "ext-name": { 453 | "version": "5.0.0", 454 | "resolved": "https://registry.npmjs.org/ext-name/-/ext-name-5.0.0.tgz", 455 | "integrity": "sha512-yblEwXAbGv1VQDmow7s38W77hzAgJAO50ztBLMcUyUBfxv1HC+LGwtiEN+Co6LtlqT/5uwVOxsD4TNIilWhwdQ==", 456 | "requires": { 457 | "ext-list": "^2.0.0", 458 | "sort-keys-length": "^1.0.0" 459 | } 460 | }, 461 | "fd-slicer": { 462 | "version": "1.1.0", 463 | "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", 464 | "integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=", 465 | "requires": { 466 | "pend": "~1.2.0" 467 | } 468 | }, 469 | "file-type": { 470 | "version": "5.2.0", 471 | "resolved": "https://registry.npmjs.org/file-type/-/file-type-5.2.0.tgz", 472 | "integrity": "sha1-LdvqfHP/42No365J3DOMBYwritY=" 473 | }, 474 | "filename-reserved-regex": { 475 | "version": "2.0.0", 476 | "resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz", 477 | "integrity": "sha1-q/c9+rc10EVECr/qLZHzieu/oik=" 478 | }, 479 | "filenamify": { 480 | "version": "2.1.0", 481 | "resolved": "https://registry.npmjs.org/filenamify/-/filenamify-2.1.0.tgz", 482 | "integrity": "sha512-ICw7NTT6RsDp2rnYKVd8Fu4cr6ITzGy3+u4vUujPkabyaz+03F24NWEX7fs5fp+kBonlaqPH8fAO2NM+SXt/JA==", 483 | "requires": { 484 | "filename-reserved-regex": "^2.0.0", 485 | "strip-outer": "^1.0.0", 486 | "trim-repeated": "^1.0.0" 487 | } 488 | }, 489 | "fs-constants": { 490 | "version": "1.0.0", 491 | "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", 492 | "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==" 493 | }, 494 | "fs.realpath": { 495 | "version": "1.0.0", 496 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 497 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 498 | "dev": true 499 | }, 500 | "fuzzaldrin-plus": { 501 | "version": "0.6.0", 502 | "resolved": "https://registry.npmjs.org/fuzzaldrin-plus/-/fuzzaldrin-plus-0.6.0.tgz", 503 | "integrity": "sha1-gy9kifvodnaUWVmckUpnDsIpR+4=" 504 | }, 505 | "get-proxy": { 506 | "version": "2.1.0", 507 | "resolved": "https://registry.npmjs.org/get-proxy/-/get-proxy-2.1.0.tgz", 508 | "integrity": "sha512-zmZIaQTWnNQb4R4fJUEp/FC51eZsc6EkErspy3xtIYStaq8EB/hDIWipxsal+E8rz0qD7f2sL/NA9Xee4RInJw==", 509 | "requires": { 510 | "npm-conf": "^1.1.0" 511 | } 512 | }, 513 | "get-stream": { 514 | "version": "3.0.0", 515 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", 516 | "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=" 517 | }, 518 | "glob": { 519 | "version": "7.1.6", 520 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", 521 | "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", 522 | "dev": true, 523 | "requires": { 524 | "fs.realpath": "^1.0.0", 525 | "inflight": "^1.0.4", 526 | "inherits": "2", 527 | "minimatch": "^3.0.4", 528 | "once": "^1.3.0", 529 | "path-is-absolute": "^1.0.0" 530 | } 531 | }, 532 | "got": { 533 | "version": "7.1.0", 534 | "resolved": "https://registry.npmjs.org/got/-/got-7.1.0.tgz", 535 | "integrity": "sha512-Y5WMo7xKKq1muPsxD+KmrR8DH5auG7fBdDVueZwETwV6VytKyU9OX/ddpq2/1hp1vIPvVb4T81dKQz3BivkNLw==", 536 | "requires": { 537 | "decompress-response": "^3.2.0", 538 | "duplexer3": "^0.1.4", 539 | "get-stream": "^3.0.0", 540 | "is-plain-obj": "^1.1.0", 541 | "is-retry-allowed": "^1.0.0", 542 | "is-stream": "^1.0.0", 543 | "isurl": "^1.0.0-alpha5", 544 | "lowercase-keys": "^1.0.0", 545 | "p-cancelable": "^0.3.0", 546 | "p-timeout": "^1.1.1", 547 | "safe-buffer": "^5.0.1", 548 | "timed-out": "^4.0.0", 549 | "url-parse-lax": "^1.0.0", 550 | "url-to-options": "^1.0.1" 551 | } 552 | }, 553 | "graceful-fs": { 554 | "version": "4.2.4", 555 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", 556 | "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==" 557 | }, 558 | "graceful-readlink": { 559 | "version": "1.0.1", 560 | "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", 561 | "integrity": "sha1-TK+tdrxi8C+gObL5Tpo906ORpyU=" 562 | }, 563 | "has-flag": { 564 | "version": "3.0.0", 565 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 566 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", 567 | "dev": true 568 | }, 569 | "has-symbol-support-x": { 570 | "version": "1.4.2", 571 | "resolved": "https://registry.npmjs.org/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz", 572 | "integrity": "sha512-3ToOva++HaW+eCpgqZrCfN51IPB+7bJNVT6CUATzueB5Heb8o6Nam0V3HG5dlDvZU1Gn5QLcbahiKw/XVk5JJw==" 573 | }, 574 | "has-to-string-tag-x": { 575 | "version": "1.4.1", 576 | "resolved": "https://registry.npmjs.org/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz", 577 | "integrity": "sha512-vdbKfmw+3LoOYVr+mtxHaX5a96+0f3DljYd8JOqvOLsf5mw2Otda2qCDT9qRqLAhrjyQ0h7ual5nOiASpsGNFw==", 578 | "requires": { 579 | "has-symbol-support-x": "^1.4.1" 580 | } 581 | }, 582 | "ieee754": { 583 | "version": "1.1.13", 584 | "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", 585 | "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==" 586 | }, 587 | "ignore": { 588 | "version": "3.3.10", 589 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.10.tgz", 590 | "integrity": "sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug==", 591 | "dev": true 592 | }, 593 | "inflight": { 594 | "version": "1.0.6", 595 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 596 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 597 | "dev": true, 598 | "requires": { 599 | "once": "^1.3.0", 600 | "wrappy": "1" 601 | } 602 | }, 603 | "inherits": { 604 | "version": "2.0.4", 605 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 606 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 607 | }, 608 | "ini": { 609 | "version": "1.3.5", 610 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", 611 | "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==" 612 | }, 613 | "is-natural-number": { 614 | "version": "4.0.1", 615 | "resolved": "https://registry.npmjs.org/is-natural-number/-/is-natural-number-4.0.1.tgz", 616 | "integrity": "sha1-q5124dtM7VHjXeDHLr7PCfc0zeg=" 617 | }, 618 | "is-object": { 619 | "version": "1.0.1", 620 | "resolved": "https://registry.npmjs.org/is-object/-/is-object-1.0.1.tgz", 621 | "integrity": "sha1-iVJojF7C/9awPsyF52ngKQMINHA=" 622 | }, 623 | "is-plain-obj": { 624 | "version": "1.1.0", 625 | "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", 626 | "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=" 627 | }, 628 | "is-retry-allowed": { 629 | "version": "1.2.0", 630 | "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz", 631 | "integrity": "sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg==" 632 | }, 633 | "is-stream": { 634 | "version": "1.1.0", 635 | "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", 636 | "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" 637 | }, 638 | "is-utf8": { 639 | "version": "0.2.1", 640 | "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", 641 | "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=" 642 | }, 643 | "isarray": { 644 | "version": "1.0.0", 645 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 646 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" 647 | }, 648 | "isurl": { 649 | "version": "1.0.0", 650 | "resolved": "https://registry.npmjs.org/isurl/-/isurl-1.0.0.tgz", 651 | "integrity": "sha512-1P/yWsxPlDtn7QeRD+ULKQPaIaN6yF368GZ2vDfv0AL0NwpStafjWCDDdn0k8wgFMWpVAqG7oJhxHnlud42i9w==", 652 | "requires": { 653 | "has-to-string-tag-x": "^1.2.0", 654 | "is-object": "^1.0.1" 655 | } 656 | }, 657 | "js-tokens": { 658 | "version": "4.0.0", 659 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 660 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", 661 | "dev": true 662 | }, 663 | "js-yaml": { 664 | "version": "3.14.0", 665 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz", 666 | "integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==", 667 | "dev": true, 668 | "requires": { 669 | "argparse": "^1.0.7", 670 | "esprima": "^4.0.0" 671 | } 672 | }, 673 | "lodash": { 674 | "version": "4.17.19", 675 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz", 676 | "integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==" 677 | }, 678 | "lowercase-keys": { 679 | "version": "1.0.1", 680 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", 681 | "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==" 682 | }, 683 | "make-dir": { 684 | "version": "1.3.0", 685 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", 686 | "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", 687 | "requires": { 688 | "pify": "^3.0.0" 689 | } 690 | }, 691 | "mime-db": { 692 | "version": "1.44.0", 693 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz", 694 | "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==" 695 | }, 696 | "mimic-response": { 697 | "version": "1.0.1", 698 | "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", 699 | "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==" 700 | }, 701 | "minimatch": { 702 | "version": "3.0.4", 703 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 704 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 705 | "dev": true, 706 | "requires": { 707 | "brace-expansion": "^1.1.7" 708 | } 709 | }, 710 | "minimist": { 711 | "version": "1.2.5", 712 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 713 | "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" 714 | }, 715 | "mkdirp": { 716 | "version": "0.5.5", 717 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", 718 | "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", 719 | "requires": { 720 | "minimist": "^1.2.5" 721 | } 722 | }, 723 | "ms": { 724 | "version": "2.1.2", 725 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 726 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 727 | }, 728 | "npm-conf": { 729 | "version": "1.1.3", 730 | "resolved": "https://registry.npmjs.org/npm-conf/-/npm-conf-1.1.3.tgz", 731 | "integrity": "sha512-Yic4bZHJOt9RCFbRP3GgpqhScOY4HH3V2P8yBj6CeYq118Qr+BLXqT2JvpJ00mryLESpgOxf5XlFv4ZjXxLScw==", 732 | "requires": { 733 | "config-chain": "^1.1.11", 734 | "pify": "^3.0.0" 735 | } 736 | }, 737 | "object-assign": { 738 | "version": "4.1.1", 739 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 740 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" 741 | }, 742 | "once": { 743 | "version": "1.4.0", 744 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 745 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 746 | "requires": { 747 | "wrappy": "1" 748 | } 749 | }, 750 | "optimist": { 751 | "version": "0.6.1", 752 | "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", 753 | "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", 754 | "dev": true, 755 | "requires": { 756 | "minimist": "~0.0.1", 757 | "wordwrap": "~0.0.2" 758 | }, 759 | "dependencies": { 760 | "minimist": { 761 | "version": "0.0.10", 762 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", 763 | "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=", 764 | "dev": true 765 | } 766 | } 767 | }, 768 | "p-cancelable": { 769 | "version": "0.3.0", 770 | "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.3.0.tgz", 771 | "integrity": "sha512-RVbZPLso8+jFeq1MfNvgXtCRED2raz/dKpacfTNxsx6pLEpEomM7gah6VeHSYV3+vo0OAi4MkArtQcWWXuQoyw==" 772 | }, 773 | "p-event": { 774 | "version": "1.3.0", 775 | "resolved": "https://registry.npmjs.org/p-event/-/p-event-1.3.0.tgz", 776 | "integrity": "sha1-jmtPT2XHK8W2/ii3XtqHT5akoIU=", 777 | "requires": { 778 | "p-timeout": "^1.1.1" 779 | } 780 | }, 781 | "p-finally": { 782 | "version": "1.0.0", 783 | "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", 784 | "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" 785 | }, 786 | "p-timeout": { 787 | "version": "1.2.1", 788 | "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-1.2.1.tgz", 789 | "integrity": "sha1-XrOzU7f86Z8QGhA4iAuwVOu+o4Y=", 790 | "requires": { 791 | "p-finally": "^1.0.0" 792 | } 793 | }, 794 | "path-is-absolute": { 795 | "version": "1.0.1", 796 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 797 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 798 | "dev": true 799 | }, 800 | "path-parse": { 801 | "version": "1.0.6", 802 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", 803 | "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", 804 | "dev": true 805 | }, 806 | "pend": { 807 | "version": "1.2.0", 808 | "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", 809 | "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=" 810 | }, 811 | "pify": { 812 | "version": "3.0.0", 813 | "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", 814 | "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=" 815 | }, 816 | "pinkie": { 817 | "version": "2.0.4", 818 | "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", 819 | "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=" 820 | }, 821 | "pinkie-promise": { 822 | "version": "2.0.1", 823 | "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", 824 | "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", 825 | "requires": { 826 | "pinkie": "^2.0.0" 827 | } 828 | }, 829 | "portfinder": { 830 | "version": "1.0.27", 831 | "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.27.tgz", 832 | "integrity": "sha512-bJ3U3MThKnyJ9Dx1Idtm5pQmxXqw08+XOHhi/Lie8OF1OlhVaBFhsntAIhkZYjfDcCzszSr0w1yCbccThhzgxQ==", 833 | "requires": { 834 | "async": "^2.6.2", 835 | "debug": "^3.1.1", 836 | "mkdirp": "^0.5.1" 837 | } 838 | }, 839 | "prepend-http": { 840 | "version": "1.0.4", 841 | "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", 842 | "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=" 843 | }, 844 | "process-nextick-args": { 845 | "version": "2.0.1", 846 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", 847 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" 848 | }, 849 | "proto-list": { 850 | "version": "1.2.4", 851 | "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz", 852 | "integrity": "sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=" 853 | }, 854 | "readable-stream": { 855 | "version": "2.3.7", 856 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", 857 | "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", 858 | "requires": { 859 | "core-util-is": "~1.0.0", 860 | "inherits": "~2.0.3", 861 | "isarray": "~1.0.0", 862 | "process-nextick-args": "~2.0.0", 863 | "safe-buffer": "~5.1.1", 864 | "string_decoder": "~1.1.1", 865 | "util-deprecate": "~1.0.1" 866 | }, 867 | "dependencies": { 868 | "safe-buffer": { 869 | "version": "5.1.2", 870 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 871 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 872 | } 873 | } 874 | }, 875 | "resolve": { 876 | "version": "0.6.3", 877 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-0.6.3.tgz", 878 | "integrity": "sha1-3ZV5gufnNt699TtYpN2RdUV13UY=", 879 | "dev": true 880 | }, 881 | "safe-buffer": { 882 | "version": "5.2.1", 883 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 884 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" 885 | }, 886 | "sb-callsite": { 887 | "version": "1.1.3", 888 | "resolved": "https://registry.npmjs.org/sb-callsite/-/sb-callsite-1.1.3.tgz", 889 | "integrity": "sha512-wM9xJVV9KOaCmFb5GAnAwLhXCd0Pftaf8M7MY2d2rzE94Ae57cq4seFvKKdtXyaipUolbVqfbZ3IcuThmjKqsg==" 890 | }, 891 | "sb-fs": { 892 | "version": "3.0.0", 893 | "resolved": "https://registry.npmjs.org/sb-fs/-/sb-fs-3.0.0.tgz", 894 | "integrity": "sha1-+9zdMBDoChuOJ0kM7zNgZJdCA7g=", 895 | "requires": { 896 | "sb-promisify": "^2.0.1", 897 | "strip-bom-buf": "^1.0.0" 898 | } 899 | }, 900 | "sb-promisify": { 901 | "version": "2.0.2", 902 | "resolved": "https://registry.npmjs.org/sb-promisify/-/sb-promisify-2.0.2.tgz", 903 | "integrity": "sha1-QnelR1RIiqlnXYhuNU24lMm9yYE=" 904 | }, 905 | "seek-bzip": { 906 | "version": "1.0.5", 907 | "resolved": "https://registry.npmjs.org/seek-bzip/-/seek-bzip-1.0.5.tgz", 908 | "integrity": "sha1-z+kXyz0nS8/6x5J1ivUxc+sfq9w=", 909 | "requires": { 910 | "commander": "~2.8.1" 911 | } 912 | }, 913 | "semver": { 914 | "version": "5.7.1", 915 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 916 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" 917 | }, 918 | "sort-keys": { 919 | "version": "1.1.2", 920 | "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz", 921 | "integrity": "sha1-RBttTTRnmPG05J6JIK37oOVD+a0=", 922 | "requires": { 923 | "is-plain-obj": "^1.0.0" 924 | } 925 | }, 926 | "sort-keys-length": { 927 | "version": "1.0.1", 928 | "resolved": "https://registry.npmjs.org/sort-keys-length/-/sort-keys-length-1.0.1.tgz", 929 | "integrity": "sha1-nLb09OnkgVWmqgZx7dM2/xR5oYg=", 930 | "requires": { 931 | "sort-keys": "^1.0.0" 932 | } 933 | }, 934 | "sprintf-js": { 935 | "version": "1.0.3", 936 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 937 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", 938 | "dev": true 939 | }, 940 | "string_decoder": { 941 | "version": "1.1.1", 942 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", 943 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", 944 | "requires": { 945 | "safe-buffer": "~5.1.0" 946 | }, 947 | "dependencies": { 948 | "safe-buffer": { 949 | "version": "5.1.2", 950 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 951 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 952 | } 953 | } 954 | }, 955 | "strip-bom-buf": { 956 | "version": "1.0.0", 957 | "resolved": "https://registry.npmjs.org/strip-bom-buf/-/strip-bom-buf-1.0.0.tgz", 958 | "integrity": "sha1-HLRar1dTD0yvhsf3UXnSyaUd1XI=", 959 | "requires": { 960 | "is-utf8": "^0.2.1" 961 | } 962 | }, 963 | "strip-dirs": { 964 | "version": "2.1.0", 965 | "resolved": "https://registry.npmjs.org/strip-dirs/-/strip-dirs-2.1.0.tgz", 966 | "integrity": "sha512-JOCxOeKLm2CAS73y/U4ZeZPTkE+gNVCzKt7Eox84Iej1LT/2pTWYpZKJuxwQpvX1LiZb1xokNR7RLfuBAa7T3g==", 967 | "requires": { 968 | "is-natural-number": "^4.0.1" 969 | } 970 | }, 971 | "strip-json-comments": { 972 | "version": "1.0.4", 973 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz", 974 | "integrity": "sha1-HhX7ysl9Pumb8tc7TGVrCCu6+5E=", 975 | "dev": true 976 | }, 977 | "strip-outer": { 978 | "version": "1.0.1", 979 | "resolved": "https://registry.npmjs.org/strip-outer/-/strip-outer-1.0.1.tgz", 980 | "integrity": "sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg==", 981 | "requires": { 982 | "escape-string-regexp": "^1.0.2" 983 | } 984 | }, 985 | "supports-color": { 986 | "version": "5.5.0", 987 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 988 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 989 | "dev": true, 990 | "requires": { 991 | "has-flag": "^3.0.0" 992 | } 993 | }, 994 | "tar-stream": { 995 | "version": "1.6.2", 996 | "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.2.tgz", 997 | "integrity": "sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==", 998 | "requires": { 999 | "bl": "^1.0.0", 1000 | "buffer-alloc": "^1.2.0", 1001 | "end-of-stream": "^1.0.0", 1002 | "fs-constants": "^1.0.0", 1003 | "readable-stream": "^2.3.0", 1004 | "to-buffer": "^1.1.1", 1005 | "xtend": "^4.0.0" 1006 | } 1007 | }, 1008 | "through": { 1009 | "version": "2.3.8", 1010 | "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", 1011 | "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=" 1012 | }, 1013 | "timed-out": { 1014 | "version": "4.0.1", 1015 | "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", 1016 | "integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=" 1017 | }, 1018 | "to-buffer": { 1019 | "version": "1.1.1", 1020 | "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.1.1.tgz", 1021 | "integrity": "sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg==" 1022 | }, 1023 | "trim-repeated": { 1024 | "version": "1.0.0", 1025 | "resolved": "https://registry.npmjs.org/trim-repeated/-/trim-repeated-1.0.0.tgz", 1026 | "integrity": "sha1-42RqLqTokTEr9+rObPsFOAvAHCE=", 1027 | "requires": { 1028 | "escape-string-regexp": "^1.0.2" 1029 | } 1030 | }, 1031 | "tslib": { 1032 | "version": "1.13.0", 1033 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", 1034 | "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", 1035 | "dev": true 1036 | }, 1037 | "tslint": { 1038 | "version": "5.20.1", 1039 | "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.1.tgz", 1040 | "integrity": "sha512-EcMxhzCFt8k+/UP5r8waCf/lzmeSyVlqxqMEDQE7rWYiQky8KpIBz1JAoYXfROHrPZ1XXd43q8yQnULOLiBRQg==", 1041 | "dev": true, 1042 | "requires": { 1043 | "@babel/code-frame": "^7.0.0", 1044 | "builtin-modules": "^1.1.1", 1045 | "chalk": "^2.3.0", 1046 | "commander": "^2.12.1", 1047 | "diff": "^4.0.1", 1048 | "glob": "^7.1.1", 1049 | "js-yaml": "^3.13.1", 1050 | "minimatch": "^3.0.4", 1051 | "mkdirp": "^0.5.1", 1052 | "resolve": "^1.3.2", 1053 | "semver": "^5.3.0", 1054 | "tslib": "^1.8.0", 1055 | "tsutils": "^2.29.0" 1056 | }, 1057 | "dependencies": { 1058 | "commander": { 1059 | "version": "2.20.3", 1060 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", 1061 | "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", 1062 | "dev": true 1063 | }, 1064 | "resolve": { 1065 | "version": "1.17.0", 1066 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", 1067 | "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", 1068 | "dev": true, 1069 | "requires": { 1070 | "path-parse": "^1.0.6" 1071 | } 1072 | } 1073 | } 1074 | }, 1075 | "tsutils": { 1076 | "version": "2.29.0", 1077 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", 1078 | "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", 1079 | "dev": true, 1080 | "requires": { 1081 | "tslib": "^1.8.1" 1082 | } 1083 | }, 1084 | "tunnel-agent": { 1085 | "version": "0.6.0", 1086 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", 1087 | "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", 1088 | "requires": { 1089 | "safe-buffer": "^5.0.1" 1090 | } 1091 | }, 1092 | "typescript": { 1093 | "version": "2.9.2", 1094 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.9.2.tgz", 1095 | "integrity": "sha512-Gr4p6nFNaoufRIY4NMdpQRNmgxVIGMs4Fcu/ujdYk3nAZqk7supzBE9idmvfZIlH/Cuj//dvi+019qEue9lV0w==", 1096 | "dev": true 1097 | }, 1098 | "unbzip2-stream": { 1099 | "version": "1.4.3", 1100 | "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz", 1101 | "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==", 1102 | "requires": { 1103 | "buffer": "^5.2.1", 1104 | "through": "^2.3.8" 1105 | } 1106 | }, 1107 | "url-parse-lax": { 1108 | "version": "1.0.0", 1109 | "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz", 1110 | "integrity": "sha1-evjzA2Rem9eaJy56FKxovAYJ2nM=", 1111 | "requires": { 1112 | "prepend-http": "^1.0.1" 1113 | } 1114 | }, 1115 | "url-to-options": { 1116 | "version": "1.0.1", 1117 | "resolved": "https://registry.npmjs.org/url-to-options/-/url-to-options-1.0.1.tgz", 1118 | "integrity": "sha1-FQWgOiiaSMvXpDTvuu7FBV9WM6k=" 1119 | }, 1120 | "util-deprecate": { 1121 | "version": "1.0.2", 1122 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 1123 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" 1124 | }, 1125 | "vscode-jsonrpc": { 1126 | "version": "4.0.0", 1127 | "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-4.0.0.tgz", 1128 | "integrity": "sha512-perEnXQdQOJMTDFNv+UF3h1Y0z4iSiaN9jIlb0OqIYgosPCZGYh/MCUlkFtV2668PL69lRDO32hmvL2yiidUYg==" 1129 | }, 1130 | "vscode-languageserver-protocol": { 1131 | "version": "3.12.0", 1132 | "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.12.0.tgz", 1133 | "integrity": "sha512-evY6hmyzLnwQrqlQWPrNBq1z8wrSNjLesmgPzeS6Zv11mVS5UJRel26hbM/DH5tHdn45huNzRW0eFHRmIm8LpA==", 1134 | "requires": { 1135 | "vscode-jsonrpc": "^3.6.2", 1136 | "vscode-languageserver-types": "^3.12.0" 1137 | }, 1138 | "dependencies": { 1139 | "vscode-jsonrpc": { 1140 | "version": "3.6.2", 1141 | "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-3.6.2.tgz", 1142 | "integrity": "sha512-T24Jb5V48e4VgYliUXMnZ379ItbrXgOimweKaJshD84z+8q7ZOZjJan0MeDe+Ugb+uqERDVV8SBmemaGMSMugA==" 1143 | } 1144 | } 1145 | }, 1146 | "vscode-languageserver-types": { 1147 | "version": "3.12.0", 1148 | "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.12.0.tgz", 1149 | "integrity": "sha512-UxqnpzBToPO7Mi2tr/s5JeyPOSKSJtLB8lIdxCg9ZNdvP2cU8wS7iTDtwQKz91Ne4CUmTdf85ddR5SIZKXmMjQ==" 1150 | }, 1151 | "wordwrap": { 1152 | "version": "0.0.3", 1153 | "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", 1154 | "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=", 1155 | "dev": true 1156 | }, 1157 | "wrappy": { 1158 | "version": "1.0.2", 1159 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1160 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 1161 | }, 1162 | "xtend": { 1163 | "version": "4.0.2", 1164 | "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", 1165 | "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" 1166 | }, 1167 | "yauzl": { 1168 | "version": "2.10.0", 1169 | "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", 1170 | "integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=", 1171 | "requires": { 1172 | "buffer-crc32": "~0.2.3", 1173 | "fd-slicer": "~1.1.0" 1174 | } 1175 | } 1176 | } 1177 | } 1178 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "spring-boot", 3 | "version": "1.20.0", 4 | "description": "Spring Boot support for Atom", 5 | "repository": "https://github.com/spring-projects/atom-spring-boot", 6 | "icon": "icon.png", 7 | "license": "EPL-1.0", 8 | "engines": { 9 | "atom": ">=1.24.0" 10 | }, 11 | "main": "./build/main", 12 | "types": "./build/main.d.ts", 13 | "files": [ 14 | "grammars/", 15 | "settings/", 16 | "build/", 17 | "lib/", 18 | "server/", 19 | "styles/", 20 | "properties.json" 21 | ], 22 | "configSchema": { 23 | "boot-hints.on": { 24 | "type": "boolean", 25 | "default": true, 26 | "description": "Enable/Disable Spring running Boot application live hints decorators in the source code" 27 | }, 28 | "scan-java-test-sources.on": { 29 | "type": "boolean", 30 | "default": false, 31 | "description": "Enable/Disable Java test sources files scanning" 32 | }, 33 | "support-spring-xml-config.on": { 34 | "type": "boolean", 35 | "default": false, 36 | "description": "Enable/Disable Support for Spring XML Config files" 37 | }, 38 | "support-spring-xml-config.hyperlinks": { 39 | "type": "boolean", 40 | "description": "Enable/Disable Hyperlinks in Spring XML Config file editor", 41 | "default": true 42 | }, 43 | "support-spring-xml-config.content-assist": { 44 | "type": "boolean", 45 | "description": "Enable/Disable Content Assist in Spring XML Config file editor", 46 | "default": true 47 | }, 48 | "support-spring-xml-config.scan-folders-globs": { 49 | "type": "string", 50 | "default": "**/src/main/**", 51 | "description": "Scan Spring XML in folders" 52 | }, 53 | "change-detection.on": { 54 | "type": "boolean", 55 | "default": false, 56 | "description": "Enable/Disable detecting changes of running Spring Boot applications" 57 | }, 58 | "remote-apps": { 59 | "type": "array", 60 | "items": { 61 | "type": "object", 62 | "properties": { 63 | "jmxurl": { 64 | "type": "string" 65 | }, 66 | "host": { 67 | "type": "string" 68 | } 69 | } 70 | }, 71 | "description": "Array of jmx urls pointing to remote spring boot applications to poll for live hover information. A typical url looks something like this: `service:jmx:rmi://localhost:9111/jndi/rmi://localhost:9111/jmxrmi`" 72 | }, 73 | "java": { 74 | "type": "object", 75 | "description": "JVM settings for starting the Language Server", 76 | "properties": { 77 | "vmargs": { 78 | "type": "array", 79 | "items": { 80 | "type": "string" 81 | }, 82 | "description": "Custom VM arguments to start the Language Server" 83 | }, 84 | "home": { 85 | "type": "string", 86 | "description": "Java home folder to use to start the Language Server" 87 | } 88 | } 89 | } 90 | }, 91 | "dependencies": { 92 | "@pivotal-tools/atom-languageclient-commons": "0.0.15", 93 | "vscode-languageserver-protocol": "3.12.0", 94 | "atom-package-deps": "^4.6.0", 95 | "download": "^6.2.5" 96 | }, 97 | "devDependencies": { 98 | "typescript": "^2.7.2", 99 | "tslint": "^5.9.1", 100 | "coffeelint": "^1.10.1" 101 | }, 102 | "scripts": { 103 | "clean": "rm -rf build", 104 | "compile": "tsc", 105 | "build": "npm run clean && npm run compile ", 106 | "watch": "tsc -watch", 107 | "lint": "tslint -c tslint.json 'lib/**/*.ts'", 108 | "postinstall": "node script.js" 109 | }, 110 | "package-deps": [ 111 | "atom-ide-ui", 112 | "ide-java" 113 | ], 114 | "consumedServices": { 115 | "linter-indie": { 116 | "versions": { 117 | "2.0.0": "consumeLinterV2" 118 | } 119 | }, 120 | "datatip": { 121 | "versions": { 122 | "0.1.0": "consumeDatatip" 123 | } 124 | } 125 | }, 126 | "providedServices": { 127 | "autocomplete.provider": { 128 | "versions": { 129 | "2.0.0": "provideAutocomplete" 130 | } 131 | }, 132 | "code-actions": { 133 | "versions": { 134 | "0.1.0": "provideCodeActions" 135 | } 136 | }, 137 | "code-format.range": { 138 | "versions": { 139 | "0.1.0": "provideCodeFormat" 140 | } 141 | }, 142 | "code-highlight": { 143 | "versions": { 144 | "0.1.0": "provideCodeHighlight" 145 | } 146 | }, 147 | "definitions": { 148 | "versions": { 149 | "0.1.0": "provideDefinitions" 150 | } 151 | }, 152 | "find-references": { 153 | "versions": { 154 | "0.1.0": "provideFindReferences" 155 | } 156 | }, 157 | "outline-view": { 158 | "versions": { 159 | "0.1.0": "provideOutlines" 160 | } 161 | } 162 | } 163 | } 164 | -------------------------------------------------------------------------------- /properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "jarUrl": "https://s3-us-west-1.amazonaws.com/s3-test.spring.io/sts4/fatjars/snapshots/spring-boot-language-server-1.20.0-202007202158-exec.jar" 3 | } 4 | -------------------------------------------------------------------------------- /readme-imgs/properties-completion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/atom-spring-boot/7f88f0571094518fb3e7d17216bc356461bfa9d1/readme-imgs/properties-completion.png -------------------------------------------------------------------------------- /readme-imgs/properties-validation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/atom-spring-boot/7f88f0571094518fb3e7d17216bc356461bfa9d1/readme-imgs/properties-validation.png -------------------------------------------------------------------------------- /readme-imgs/screenshot-code-completion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/atom-spring-boot/7f88f0571094518fb3e7d17216bc356461bfa9d1/readme-imgs/screenshot-code-completion.png -------------------------------------------------------------------------------- /readme-imgs/screenshot-live-hovers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/atom-spring-boot/7f88f0571094518fb3e7d17216bc356461bfa9d1/readme-imgs/screenshot-live-hovers.png -------------------------------------------------------------------------------- /readme-imgs/screenshot-navigation-in-file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/atom-spring-boot/7f88f0571094518fb3e7d17216bc356461bfa9d1/readme-imgs/screenshot-navigation-in-file.png -------------------------------------------------------------------------------- /readme-imgs/yaml-completion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/atom-spring-boot/7f88f0571094518fb3e7d17216bc356461bfa9d1/readme-imgs/yaml-completion.png -------------------------------------------------------------------------------- /readme-imgs/yaml-hovers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/atom-spring-boot/7f88f0571094518fb3e7d17216bc356461bfa9d1/readme-imgs/yaml-hovers.png -------------------------------------------------------------------------------- /readme-imgs/yaml-validation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/atom-spring-boot/7f88f0571094518fb3e7d17216bc356461bfa9d1/readme-imgs/yaml-validation.png -------------------------------------------------------------------------------- /script.js: -------------------------------------------------------------------------------- 1 | const fs = require('fs'); 2 | const path = require('path'); 3 | const download = require('download'); 4 | const PROPERTIES = require('./properties.json'); 5 | 6 | let fileExists = function(path) { 7 | return new Promise((resolve, reject) => { 8 | fs.access(path, fs.R_OK, error => { 9 | resolve(!error || error.code !== 'ENOENT'); 10 | }) 11 | }); 12 | }; 13 | 14 | const serverDownloadUrl = PROPERTIES.jarUrl; 15 | 16 | const serverHome = path.join(__dirname, 'server'); 17 | 18 | const localFileName = path.join(serverHome, 'spring-boot-language-server.jar'); 19 | 20 | fileExists(localFileName).then(exists => { 21 | if (!exists) { 22 | console.log(`Downloading ${serverDownloadUrl} to ${localFileName}`); 23 | fileExists(serverHome) 24 | .then(doesExist => { 25 | if (!doesExist) 26 | fs.mkdir(serverHome, err => { 27 | if (err) console.error('Failed to create folder: ' + JSON.stringify(err)); 28 | }); 29 | }) 30 | .then(() => download(serverDownloadUrl)) 31 | .then(data => fs.writeFileSync(localFileName, data)) 32 | .then(() => fileExists(localFileName)) 33 | .then(doesExist => { if (!doesExist) throw Error(`Failed to install the ${this.getServerName()} language server`) }) 34 | .then(() => console.log(`Successfully downloaded ${serverDownloadUrl}`)); 35 | } 36 | }); 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /settings/language-boot-properties-yaml.cson: -------------------------------------------------------------------------------- 1 | '.source.boot-properties-yaml': 2 | 'editor': 3 | 'autoIndentOnPaste': false 4 | 'commentStart': '# ' 5 | 'foldEndPattern': '^\\s*$|^\\s*\\}|^\\s*\\]|^\\s*\\)' 6 | 'increaseIndentPattern': '^\\s*.*(:|-) ?(&\\w+)?(\\{[^}"\']*|\\([^)"\']*)?$' 7 | 'decreaseIndentPattern': '^\\s+\\}$' 8 | 'tabType': 'soft' -------------------------------------------------------------------------------- /styles/boot-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/atom-spring-boot/7f88f0571094518fb3e7d17216bc356461bfa9d1/styles/boot-icon.png -------------------------------------------------------------------------------- /styles/hints.atom-text-editor.less: -------------------------------------------------------------------------------- 1 | .boot-hint .region { 2 | background-color: rgba(109,179,63,0.25); 3 | border-color: rgba(109,179,63,0.25); 4 | border-radius: 4px; 5 | border-spacing: 4px; 6 | //border-color: #32BA56; 7 | //border-style: dotted; 8 | //border-width: 1px; 9 | } 10 | 11 | atom-text-editor.editor { 12 | .gutter-boot-hint:before { 13 | content: url("atom://spring-boot/styles/boot-icon.png"); 14 | display: block; 15 | width: 10px; 16 | height: 1em; 17 | margin: 0 2px 0 0; 18 | float: left; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es6", 5 | "outDir": "build", 6 | "lib": ["es7", "dom"], 7 | "declaration": true, 8 | "inlineSources": true, 9 | "inlineSourceMap": true, 10 | "strictNullChecks": true, 11 | "noImplicitAny": true, 12 | "baseUrl": "./" 13 | }, 14 | "include": [ 15 | "lib/**/*.ts" 16 | ] 17 | } -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "defaultSeverity": "error", 3 | "extends": [ 4 | "tslint:recommended" 5 | ], 6 | "jsRules": {}, 7 | "rules": { 8 | "quotemark": false, 9 | "object-literal-sort-keys": false, 10 | "ordered-imports": false, 11 | "member-ordering": false, 12 | "one-line": false, 13 | "interface-name": false, 14 | "variable-name": false, 15 | "max-classes-per-file": false, 16 | "no-unused-expression": false, 17 | "no-empty": false, 18 | "one-variable-per-declaration": false, 19 | "whitespace": [ 20 | true, 21 | "check-branch", 22 | "check-decl", 23 | "check-operator", 24 | "check-separator", 25 | "check-type", 26 | "check-typecast", 27 | "check-module" 28 | ] 29 | }, 30 | "rulesDirectory": [] 31 | } --------------------------------------------------------------------------------