├── .gitignore ├── .vscode ├── extensions.json ├── launch.json ├── settings.json └── tasks.json ├── .vscodeignore ├── LICENSE ├── README.md ├── assets ├── example.gif ├── icon.png └── icon.svg ├── package-lock.json ├── package.json ├── src ├── completion.ts ├── core │ ├── constants.ts │ ├── index.ts │ ├── map.ts │ ├── mapper.ts │ └── node.ts └── extension.ts ├── tsconfig.json └── tslint.json /.gitignore: -------------------------------------------------------------------------------- 1 | out 2 | node_modules 3 | .vscode-test/ 4 | *.vsix 5 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See http://go.microsoft.com/fwlink/?LinkId=827846 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | "ms-vscode.vscode-typescript-tslint-plugin" 6 | ] 7 | } -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | // A launch configuration that compiles the extension and then opens it inside a new window 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | { 6 | "version": "0.2.0", 7 | "configurations": [ 8 | { 9 | "name": "Run Extension", 10 | "type": "extensionHost", 11 | "request": "launch", 12 | "runtimeExecutable": "${execPath}", 13 | "args": [ 14 | "--extensionDevelopmentPath=${workspaceFolder}" 15 | ], 16 | "outFiles": [ 17 | "${workspaceFolder}/out/**/*.js" 18 | ], 19 | "preLaunchTask": "npm: watch" 20 | }, 21 | { 22 | "name": "Extension Tests", 23 | "type": "extensionHost", 24 | "request": "launch", 25 | "runtimeExecutable": "${execPath}", 26 | "args": [ 27 | "--extensionDevelopmentPath=${workspaceFolder}", 28 | "--extensionTestsPath=${workspaceFolder}/out/test/suite/index" 29 | ], 30 | "outFiles": [ 31 | "${workspaceFolder}/out/test/**/*.js" 32 | ], 33 | "preLaunchTask": "npm: watch" 34 | } 35 | ] 36 | } 37 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | // Place your settings in this file to overwrite default and user settings. 2 | { 3 | "files.exclude": { 4 | "out": false // set this to true to hide the "out" folder with the compiled JS files 5 | }, 6 | "search.exclude": { 7 | "out": true // set this to false to include "out" folder in search results 8 | }, 9 | // Turn off tsc task auto detection since we have the necessary tasks as npm scripts 10 | "typescript.tsc.autoDetect": "off", 11 | "cSpell.words": [ 12 | "flumter", 13 | "marcelovelasquez" 14 | ] 15 | } -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | // See https://go.microsoft.com/fwlink/?LinkId=733558 2 | // for the documentation about the tasks.json format 3 | { 4 | "version": "2.0.0", 5 | "tasks": [ 6 | { 7 | "type": "npm", 8 | "script": "watch", 9 | "problemMatcher": "$tsc-watch", 10 | "isBackground": true, 11 | "presentation": { 12 | "reveal": "never" 13 | }, 14 | "group": { 15 | "kind": "build", 16 | "isDefault": true 17 | } 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /.vscodeignore: -------------------------------------------------------------------------------- 1 | .vscode/** 2 | .vscode-test/** 3 | out/test/** 4 | src/** 5 | .gitignore 6 | vsc-extension-quickstart.md 7 | **/tsconfig.json 8 | **/tslint.json 9 | **/*.map 10 | **/*.ts -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flutter Tree 2 | 3 | ## Description 4 | 5 | Extension for Flutter to build basic widget tree with nice syntax. 6 | 7 | ![Example](assets/example.gif) 8 | 9 | ## Syntax 10 | 11 | ### Base syntax 12 | 13 | ``` dart 14 | OneChild>MultipleChild[OneChild,MultipleChild[OneChild,OneChild],OneChild>OneChild] 15 | ``` 16 | 17 | ### Code generated 18 | 19 | ``` dart 20 | OneChild( 21 | child: MultipleChild( 22 | children: [ 23 | OneChild(), 24 | MultipleChild( 25 | children: [ 26 | OneChild(), 27 | OneChild(), 28 | ] 29 | ), 30 | OneChild( 31 | child: OneChild(), 32 | ), 33 | ] 34 | ), 35 | ), 36 | ``` 37 | 38 | ### Use 39 | 40 | Create single child widget 41 | 42 | ``` dart 43 | SingleChildWidget>Child 44 | ``` 45 | 46 | ``` dart 47 | SingleChildWidget( 48 | child: Child(), 49 | ), 50 | ``` 51 | 52 | Create multiple child widget 53 | ``` dart 54 | MultipleChildWidget[ChildOne,ChildTwo] 55 | ``` 56 | 57 | ``` dart 58 | MultipleChildWidget( 59 | children: [ 60 | ChildOne(), 61 | ChildTwo(), 62 | ], 63 | ), 64 | ``` 65 | 66 | You can create nested widgets. 67 | 68 | ``` dart 69 | MultipleChild[ChildOne,ChildTwo>NestedChild>Child] 70 | ``` 71 | 72 | ``` dart 73 | MultipleChild( 74 | children: [ 75 | ChildOne(), 76 | ChildTwo( 77 | child: NestedChild( 78 | child: Child(), 79 | ), 80 | ), 81 | ], 82 | ), 83 | ``` 84 | 85 | ## Requirements 86 | 87 | Supported language: 88 | 89 | - Dart 90 | 91 | ### 1.0.0 92 | 93 | Core and use with abbreviation. 94 | -------------------------------------------------------------------------------- /assets/example.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itmarck/flutter-tree/ff6fc84b2ea2a16a23de1ebffe91e7664d04a528/assets/example.gif -------------------------------------------------------------------------------- /assets/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itmarck/flutter-tree/ff6fc84b2ea2a16a23de1ebffe91e7664d04a528/assets/icon.png -------------------------------------------------------------------------------- /assets/icon.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "flutter-tree", 3 | "version": "1.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@babel/code-frame": { 8 | "version": "7.5.5", 9 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", 10 | "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", 11 | "dev": true, 12 | "requires": { 13 | "@babel/highlight": "^7.0.0" 14 | } 15 | }, 16 | "@babel/highlight": { 17 | "version": "7.5.0", 18 | "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", 19 | "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", 20 | "dev": true, 21 | "requires": { 22 | "chalk": "^2.0.0", 23 | "esutils": "^2.0.2", 24 | "js-tokens": "^4.0.0" 25 | } 26 | }, 27 | "@types/events": { 28 | "version": "3.0.0", 29 | "resolved": "https://registry.npmjs.org/@types/events/-/events-3.0.0.tgz", 30 | "integrity": "sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g==", 31 | "dev": true 32 | }, 33 | "@types/glob": { 34 | "version": "7.1.1", 35 | "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.1.tgz", 36 | "integrity": "sha512-1Bh06cbWJUHMC97acuD6UMG29nMt0Aqz1vF3guLfG+kHHJhy3AyohZFFxYk2f7Q1SQIrNwvncxAE0N/9s70F2w==", 37 | "dev": true, 38 | "requires": { 39 | "@types/events": "*", 40 | "@types/minimatch": "*", 41 | "@types/node": "*" 42 | } 43 | }, 44 | "@types/minimatch": { 45 | "version": "3.0.3", 46 | "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz", 47 | "integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==", 48 | "dev": true 49 | }, 50 | "@types/mocha": { 51 | "version": "5.2.7", 52 | "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-5.2.7.tgz", 53 | "integrity": "sha512-NYrtPht0wGzhwe9+/idPaBB+TqkY9AhTvOLMkThm0IoEfLaiVQZwBwyJ5puCkO3AUCWrmcoePjp2mbFocKy4SQ==", 54 | "dev": true 55 | }, 56 | "@types/node": { 57 | "version": "10.14.16", 58 | "resolved": "https://registry.npmjs.org/@types/node/-/node-10.14.16.tgz", 59 | "integrity": "sha512-/opXIbfn0P+VLt+N8DE4l8Mn8rbhiJgabU96ZJ0p9mxOkIks5gh6RUnpHak7Yh0SFkyjO/ODbxsQQPV2bpMmyA==", 60 | "dev": true 61 | }, 62 | "@types/vscode": { 63 | "version": "1.37.0", 64 | "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.37.0.tgz", 65 | "integrity": "sha512-PRfeuqYuzk3vjf+puzxltIUWC+AhEGYpFX29/37w30DQSQnpf5AgMVf7GDBAdmTbWTBou+EMFz/Ne6XCM/KxzQ==", 66 | "dev": true 67 | }, 68 | "agent-base": { 69 | "version": "4.3.0", 70 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", 71 | "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", 72 | "dev": true, 73 | "requires": { 74 | "es6-promisify": "^5.0.0" 75 | } 76 | }, 77 | "ansi-colors": { 78 | "version": "3.2.3", 79 | "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz", 80 | "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==", 81 | "dev": true 82 | }, 83 | "ansi-regex": { 84 | "version": "3.0.0", 85 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", 86 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", 87 | "dev": true 88 | }, 89 | "ansi-styles": { 90 | "version": "3.2.1", 91 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 92 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 93 | "dev": true, 94 | "requires": { 95 | "color-convert": "^1.9.0" 96 | } 97 | }, 98 | "argparse": { 99 | "version": "1.0.10", 100 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 101 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 102 | "dev": true, 103 | "requires": { 104 | "sprintf-js": "~1.0.2" 105 | } 106 | }, 107 | "balanced-match": { 108 | "version": "1.0.0", 109 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 110 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", 111 | "dev": true 112 | }, 113 | "brace-expansion": { 114 | "version": "1.1.11", 115 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 116 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 117 | "dev": true, 118 | "requires": { 119 | "balanced-match": "^1.0.0", 120 | "concat-map": "0.0.1" 121 | } 122 | }, 123 | "browser-stdout": { 124 | "version": "1.3.1", 125 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", 126 | "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", 127 | "dev": true 128 | }, 129 | "builtin-modules": { 130 | "version": "1.1.1", 131 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", 132 | "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", 133 | "dev": true 134 | }, 135 | "camelcase": { 136 | "version": "5.3.1", 137 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", 138 | "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", 139 | "dev": true 140 | }, 141 | "chalk": { 142 | "version": "2.4.2", 143 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 144 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 145 | "dev": true, 146 | "requires": { 147 | "ansi-styles": "^3.2.1", 148 | "escape-string-regexp": "^1.0.5", 149 | "supports-color": "^5.3.0" 150 | }, 151 | "dependencies": { 152 | "supports-color": { 153 | "version": "5.5.0", 154 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 155 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 156 | "dev": true, 157 | "requires": { 158 | "has-flag": "^3.0.0" 159 | } 160 | } 161 | } 162 | }, 163 | "cliui": { 164 | "version": "4.1.0", 165 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", 166 | "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", 167 | "dev": true, 168 | "requires": { 169 | "string-width": "^2.1.1", 170 | "strip-ansi": "^4.0.0", 171 | "wrap-ansi": "^2.0.0" 172 | } 173 | }, 174 | "code-point-at": { 175 | "version": "1.1.0", 176 | "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", 177 | "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", 178 | "dev": true 179 | }, 180 | "color-convert": { 181 | "version": "1.9.3", 182 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 183 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 184 | "dev": true, 185 | "requires": { 186 | "color-name": "1.1.3" 187 | } 188 | }, 189 | "color-name": { 190 | "version": "1.1.3", 191 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 192 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", 193 | "dev": true 194 | }, 195 | "commander": { 196 | "version": "2.20.0", 197 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz", 198 | "integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==", 199 | "dev": true 200 | }, 201 | "concat-map": { 202 | "version": "0.0.1", 203 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 204 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 205 | "dev": true 206 | }, 207 | "cross-spawn": { 208 | "version": "6.0.5", 209 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", 210 | "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", 211 | "dev": true, 212 | "requires": { 213 | "nice-try": "^1.0.4", 214 | "path-key": "^2.0.1", 215 | "semver": "^5.5.0", 216 | "shebang-command": "^1.2.0", 217 | "which": "^1.2.9" 218 | } 219 | }, 220 | "debug": { 221 | "version": "3.2.6", 222 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", 223 | "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", 224 | "dev": true, 225 | "requires": { 226 | "ms": "^2.1.1" 227 | } 228 | }, 229 | "decamelize": { 230 | "version": "1.2.0", 231 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", 232 | "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", 233 | "dev": true 234 | }, 235 | "define-properties": { 236 | "version": "1.1.3", 237 | "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", 238 | "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", 239 | "dev": true, 240 | "requires": { 241 | "object-keys": "^1.0.12" 242 | } 243 | }, 244 | "diff": { 245 | "version": "3.5.0", 246 | "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", 247 | "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", 248 | "dev": true 249 | }, 250 | "emoji-regex": { 251 | "version": "7.0.3", 252 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", 253 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", 254 | "dev": true 255 | }, 256 | "end-of-stream": { 257 | "version": "1.4.1", 258 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", 259 | "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", 260 | "dev": true, 261 | "requires": { 262 | "once": "^1.4.0" 263 | } 264 | }, 265 | "es-abstract": { 266 | "version": "1.13.0", 267 | "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.13.0.tgz", 268 | "integrity": "sha512-vDZfg/ykNxQVwup/8E1BZhVzFfBxs9NqMzGcvIJrqg5k2/5Za2bWo40dK2J1pgLngZ7c+Shh8lwYtLGyrwPutg==", 269 | "dev": true, 270 | "requires": { 271 | "es-to-primitive": "^1.2.0", 272 | "function-bind": "^1.1.1", 273 | "has": "^1.0.3", 274 | "is-callable": "^1.1.4", 275 | "is-regex": "^1.0.4", 276 | "object-keys": "^1.0.12" 277 | } 278 | }, 279 | "es-to-primitive": { 280 | "version": "1.2.0", 281 | "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz", 282 | "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==", 283 | "dev": true, 284 | "requires": { 285 | "is-callable": "^1.1.4", 286 | "is-date-object": "^1.0.1", 287 | "is-symbol": "^1.0.2" 288 | } 289 | }, 290 | "es6-promise": { 291 | "version": "4.2.8", 292 | "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", 293 | "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==", 294 | "dev": true 295 | }, 296 | "es6-promisify": { 297 | "version": "5.0.0", 298 | "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", 299 | "integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=", 300 | "dev": true, 301 | "requires": { 302 | "es6-promise": "^4.0.3" 303 | } 304 | }, 305 | "escape-string-regexp": { 306 | "version": "1.0.5", 307 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 308 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", 309 | "dev": true 310 | }, 311 | "esprima": { 312 | "version": "4.0.1", 313 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 314 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 315 | "dev": true 316 | }, 317 | "esutils": { 318 | "version": "2.0.3", 319 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 320 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 321 | "dev": true 322 | }, 323 | "execa": { 324 | "version": "1.0.0", 325 | "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", 326 | "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", 327 | "dev": true, 328 | "requires": { 329 | "cross-spawn": "^6.0.0", 330 | "get-stream": "^4.0.0", 331 | "is-stream": "^1.1.0", 332 | "npm-run-path": "^2.0.0", 333 | "p-finally": "^1.0.0", 334 | "signal-exit": "^3.0.0", 335 | "strip-eof": "^1.0.0" 336 | } 337 | }, 338 | "find-up": { 339 | "version": "3.0.0", 340 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", 341 | "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", 342 | "dev": true, 343 | "requires": { 344 | "locate-path": "^3.0.0" 345 | } 346 | }, 347 | "flat": { 348 | "version": "4.1.0", 349 | "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.0.tgz", 350 | "integrity": "sha512-Px/TiLIznH7gEDlPXcUD4KnBusa6kR6ayRUVcnEAbreRIuhkqow/mun59BuRXwoYk7ZQOLW1ZM05ilIvK38hFw==", 351 | "dev": true, 352 | "requires": { 353 | "is-buffer": "~2.0.3" 354 | } 355 | }, 356 | "fs.realpath": { 357 | "version": "1.0.0", 358 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 359 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 360 | "dev": true 361 | }, 362 | "function-bind": { 363 | "version": "1.1.1", 364 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 365 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", 366 | "dev": true 367 | }, 368 | "get-caller-file": { 369 | "version": "2.0.5", 370 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 371 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 372 | "dev": true 373 | }, 374 | "get-stream": { 375 | "version": "4.1.0", 376 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", 377 | "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", 378 | "dev": true, 379 | "requires": { 380 | "pump": "^3.0.0" 381 | } 382 | }, 383 | "glob": { 384 | "version": "7.1.4", 385 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", 386 | "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", 387 | "dev": true, 388 | "requires": { 389 | "fs.realpath": "^1.0.0", 390 | "inflight": "^1.0.4", 391 | "inherits": "2", 392 | "minimatch": "^3.0.4", 393 | "once": "^1.3.0", 394 | "path-is-absolute": "^1.0.0" 395 | } 396 | }, 397 | "growl": { 398 | "version": "1.10.5", 399 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", 400 | "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", 401 | "dev": true 402 | }, 403 | "has": { 404 | "version": "1.0.3", 405 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 406 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 407 | "dev": true, 408 | "requires": { 409 | "function-bind": "^1.1.1" 410 | } 411 | }, 412 | "has-flag": { 413 | "version": "3.0.0", 414 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 415 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", 416 | "dev": true 417 | }, 418 | "has-symbols": { 419 | "version": "1.0.0", 420 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", 421 | "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", 422 | "dev": true 423 | }, 424 | "he": { 425 | "version": "1.2.0", 426 | "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", 427 | "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", 428 | "dev": true 429 | }, 430 | "http-proxy-agent": { 431 | "version": "2.1.0", 432 | "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-2.1.0.tgz", 433 | "integrity": "sha512-qwHbBLV7WviBl0rQsOzH6o5lwyOIvwp/BdFnvVxXORldu5TmjFfjzBcWUWS5kWAZhmv+JtiDhSuQCp4sBfbIgg==", 434 | "dev": true, 435 | "requires": { 436 | "agent-base": "4", 437 | "debug": "3.1.0" 438 | }, 439 | "dependencies": { 440 | "debug": { 441 | "version": "3.1.0", 442 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", 443 | "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", 444 | "dev": true, 445 | "requires": { 446 | "ms": "2.0.0" 447 | } 448 | }, 449 | "ms": { 450 | "version": "2.0.0", 451 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 452 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", 453 | "dev": true 454 | } 455 | } 456 | }, 457 | "https-proxy-agent": { 458 | "version": "2.2.4", 459 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz", 460 | "integrity": "sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg==", 461 | "dev": true, 462 | "requires": { 463 | "agent-base": "^4.3.0", 464 | "debug": "^3.1.0" 465 | } 466 | }, 467 | "inflight": { 468 | "version": "1.0.6", 469 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 470 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 471 | "dev": true, 472 | "requires": { 473 | "once": "^1.3.0", 474 | "wrappy": "1" 475 | } 476 | }, 477 | "inherits": { 478 | "version": "2.0.4", 479 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 480 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 481 | "dev": true 482 | }, 483 | "invert-kv": { 484 | "version": "2.0.0", 485 | "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", 486 | "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==", 487 | "dev": true 488 | }, 489 | "is-buffer": { 490 | "version": "2.0.3", 491 | "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.3.tgz", 492 | "integrity": "sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw==", 493 | "dev": true 494 | }, 495 | "is-callable": { 496 | "version": "1.1.4", 497 | "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", 498 | "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==", 499 | "dev": true 500 | }, 501 | "is-date-object": { 502 | "version": "1.0.1", 503 | "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", 504 | "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", 505 | "dev": true 506 | }, 507 | "is-fullwidth-code-point": { 508 | "version": "2.0.0", 509 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 510 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 511 | "dev": true 512 | }, 513 | "is-regex": { 514 | "version": "1.0.4", 515 | "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", 516 | "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", 517 | "dev": true, 518 | "requires": { 519 | "has": "^1.0.1" 520 | } 521 | }, 522 | "is-stream": { 523 | "version": "1.1.0", 524 | "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", 525 | "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", 526 | "dev": true 527 | }, 528 | "is-symbol": { 529 | "version": "1.0.2", 530 | "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz", 531 | "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", 532 | "dev": true, 533 | "requires": { 534 | "has-symbols": "^1.0.0" 535 | } 536 | }, 537 | "isexe": { 538 | "version": "2.0.0", 539 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 540 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", 541 | "dev": true 542 | }, 543 | "js-tokens": { 544 | "version": "4.0.0", 545 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 546 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", 547 | "dev": true 548 | }, 549 | "js-yaml": { 550 | "version": "3.13.1", 551 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", 552 | "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", 553 | "dev": true, 554 | "requires": { 555 | "argparse": "^1.0.7", 556 | "esprima": "^4.0.0" 557 | } 558 | }, 559 | "lcid": { 560 | "version": "2.0.0", 561 | "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", 562 | "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", 563 | "dev": true, 564 | "requires": { 565 | "invert-kv": "^2.0.0" 566 | } 567 | }, 568 | "locate-path": { 569 | "version": "3.0.0", 570 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", 571 | "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", 572 | "dev": true, 573 | "requires": { 574 | "p-locate": "^3.0.0", 575 | "path-exists": "^3.0.0" 576 | } 577 | }, 578 | "lodash": { 579 | "version": "4.17.21", 580 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 581 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", 582 | "dev": true 583 | }, 584 | "log-symbols": { 585 | "version": "2.2.0", 586 | "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", 587 | "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", 588 | "dev": true, 589 | "requires": { 590 | "chalk": "^2.0.1" 591 | } 592 | }, 593 | "map-age-cleaner": { 594 | "version": "0.1.3", 595 | "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", 596 | "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", 597 | "dev": true, 598 | "requires": { 599 | "p-defer": "^1.0.0" 600 | } 601 | }, 602 | "mem": { 603 | "version": "4.3.0", 604 | "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz", 605 | "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", 606 | "dev": true, 607 | "requires": { 608 | "map-age-cleaner": "^0.1.1", 609 | "mimic-fn": "^2.0.0", 610 | "p-is-promise": "^2.0.0" 611 | } 612 | }, 613 | "mimic-fn": { 614 | "version": "2.1.0", 615 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", 616 | "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", 617 | "dev": true 618 | }, 619 | "minimatch": { 620 | "version": "3.0.4", 621 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 622 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 623 | "dev": true, 624 | "requires": { 625 | "brace-expansion": "^1.1.7" 626 | } 627 | }, 628 | "minimist": { 629 | "version": "0.0.8", 630 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", 631 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", 632 | "dev": true 633 | }, 634 | "mkdirp": { 635 | "version": "0.5.1", 636 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", 637 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", 638 | "dev": true, 639 | "requires": { 640 | "minimist": "0.0.8" 641 | } 642 | }, 643 | "mocha": { 644 | "version": "6.2.0", 645 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-6.2.0.tgz", 646 | "integrity": "sha512-qwfFgY+7EKAAUAdv7VYMZQknI7YJSGesxHyhn6qD52DV8UcSZs5XwCifcZGMVIE4a5fbmhvbotxC0DLQ0oKohQ==", 647 | "dev": true, 648 | "requires": { 649 | "ansi-colors": "3.2.3", 650 | "browser-stdout": "1.3.1", 651 | "debug": "3.2.6", 652 | "diff": "3.5.0", 653 | "escape-string-regexp": "1.0.5", 654 | "find-up": "3.0.0", 655 | "glob": "7.1.3", 656 | "growl": "1.10.5", 657 | "he": "1.2.0", 658 | "js-yaml": "3.13.1", 659 | "log-symbols": "2.2.0", 660 | "minimatch": "3.0.4", 661 | "mkdirp": "0.5.1", 662 | "ms": "2.1.1", 663 | "node-environment-flags": "1.0.5", 664 | "object.assign": "4.1.0", 665 | "strip-json-comments": "2.0.1", 666 | "supports-color": "6.0.0", 667 | "which": "1.3.1", 668 | "wide-align": "1.1.3", 669 | "yargs": "13.2.2", 670 | "yargs-parser": "13.0.0", 671 | "yargs-unparser": "1.5.0" 672 | }, 673 | "dependencies": { 674 | "glob": { 675 | "version": "7.1.3", 676 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", 677 | "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", 678 | "dev": true, 679 | "requires": { 680 | "fs.realpath": "^1.0.0", 681 | "inflight": "^1.0.4", 682 | "inherits": "2", 683 | "minimatch": "^3.0.4", 684 | "once": "^1.3.0", 685 | "path-is-absolute": "^1.0.0" 686 | } 687 | } 688 | } 689 | }, 690 | "ms": { 691 | "version": "2.1.1", 692 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 693 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", 694 | "dev": true 695 | }, 696 | "nice-try": { 697 | "version": "1.0.5", 698 | "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", 699 | "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", 700 | "dev": true 701 | }, 702 | "node-environment-flags": { 703 | "version": "1.0.5", 704 | "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.5.tgz", 705 | "integrity": "sha512-VNYPRfGfmZLx0Ye20jWzHUjyTW/c+6Wq+iLhDzUI4XmhrDd9l/FozXV3F2xOaXjvp0co0+v1YSR3CMP6g+VvLQ==", 706 | "dev": true, 707 | "requires": { 708 | "object.getownpropertydescriptors": "^2.0.3", 709 | "semver": "^5.7.0" 710 | } 711 | }, 712 | "npm-run-path": { 713 | "version": "2.0.2", 714 | "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", 715 | "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", 716 | "dev": true, 717 | "requires": { 718 | "path-key": "^2.0.0" 719 | } 720 | }, 721 | "number-is-nan": { 722 | "version": "1.0.1", 723 | "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", 724 | "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", 725 | "dev": true 726 | }, 727 | "object-keys": { 728 | "version": "1.1.1", 729 | "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", 730 | "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", 731 | "dev": true 732 | }, 733 | "object.assign": { 734 | "version": "4.1.0", 735 | "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", 736 | "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", 737 | "dev": true, 738 | "requires": { 739 | "define-properties": "^1.1.2", 740 | "function-bind": "^1.1.1", 741 | "has-symbols": "^1.0.0", 742 | "object-keys": "^1.0.11" 743 | } 744 | }, 745 | "object.getownpropertydescriptors": { 746 | "version": "2.0.3", 747 | "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", 748 | "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=", 749 | "dev": true, 750 | "requires": { 751 | "define-properties": "^1.1.2", 752 | "es-abstract": "^1.5.1" 753 | } 754 | }, 755 | "once": { 756 | "version": "1.4.0", 757 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 758 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 759 | "dev": true, 760 | "requires": { 761 | "wrappy": "1" 762 | } 763 | }, 764 | "os-locale": { 765 | "version": "3.1.0", 766 | "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", 767 | "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", 768 | "dev": true, 769 | "requires": { 770 | "execa": "^1.0.0", 771 | "lcid": "^2.0.0", 772 | "mem": "^4.0.0" 773 | } 774 | }, 775 | "p-defer": { 776 | "version": "1.0.0", 777 | "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", 778 | "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", 779 | "dev": true 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 | "dev": true 786 | }, 787 | "p-is-promise": { 788 | "version": "2.1.0", 789 | "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", 790 | "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==", 791 | "dev": true 792 | }, 793 | "p-limit": { 794 | "version": "2.2.1", 795 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.1.tgz", 796 | "integrity": "sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg==", 797 | "dev": true, 798 | "requires": { 799 | "p-try": "^2.0.0" 800 | } 801 | }, 802 | "p-locate": { 803 | "version": "3.0.0", 804 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", 805 | "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", 806 | "dev": true, 807 | "requires": { 808 | "p-limit": "^2.0.0" 809 | } 810 | }, 811 | "p-try": { 812 | "version": "2.2.0", 813 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", 814 | "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", 815 | "dev": true 816 | }, 817 | "path-exists": { 818 | "version": "3.0.0", 819 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", 820 | "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", 821 | "dev": true 822 | }, 823 | "path-is-absolute": { 824 | "version": "1.0.1", 825 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 826 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 827 | "dev": true 828 | }, 829 | "path-key": { 830 | "version": "2.0.1", 831 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", 832 | "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", 833 | "dev": true 834 | }, 835 | "path-parse": { 836 | "version": "1.0.6", 837 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", 838 | "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", 839 | "dev": true 840 | }, 841 | "pump": { 842 | "version": "3.0.0", 843 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", 844 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", 845 | "dev": true, 846 | "requires": { 847 | "end-of-stream": "^1.1.0", 848 | "once": "^1.3.1" 849 | } 850 | }, 851 | "require-directory": { 852 | "version": "2.1.1", 853 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 854 | "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", 855 | "dev": true 856 | }, 857 | "require-main-filename": { 858 | "version": "2.0.0", 859 | "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", 860 | "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", 861 | "dev": true 862 | }, 863 | "resolve": { 864 | "version": "1.12.0", 865 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", 866 | "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", 867 | "dev": true, 868 | "requires": { 869 | "path-parse": "^1.0.6" 870 | } 871 | }, 872 | "rimraf": { 873 | "version": "2.7.1", 874 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", 875 | "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", 876 | "dev": true, 877 | "requires": { 878 | "glob": "^7.1.3" 879 | } 880 | }, 881 | "semver": { 882 | "version": "5.7.1", 883 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 884 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", 885 | "dev": true 886 | }, 887 | "set-blocking": { 888 | "version": "2.0.0", 889 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", 890 | "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", 891 | "dev": true 892 | }, 893 | "shebang-command": { 894 | "version": "1.2.0", 895 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", 896 | "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", 897 | "dev": true, 898 | "requires": { 899 | "shebang-regex": "^1.0.0" 900 | } 901 | }, 902 | "shebang-regex": { 903 | "version": "1.0.0", 904 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", 905 | "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", 906 | "dev": true 907 | }, 908 | "signal-exit": { 909 | "version": "3.0.2", 910 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", 911 | "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", 912 | "dev": true 913 | }, 914 | "sprintf-js": { 915 | "version": "1.0.3", 916 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 917 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", 918 | "dev": true 919 | }, 920 | "string-width": { 921 | "version": "2.1.1", 922 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", 923 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", 924 | "dev": true, 925 | "requires": { 926 | "is-fullwidth-code-point": "^2.0.0", 927 | "strip-ansi": "^4.0.0" 928 | } 929 | }, 930 | "strip-ansi": { 931 | "version": "4.0.0", 932 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", 933 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", 934 | "dev": true, 935 | "requires": { 936 | "ansi-regex": "^3.0.0" 937 | } 938 | }, 939 | "strip-eof": { 940 | "version": "1.0.0", 941 | "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", 942 | "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", 943 | "dev": true 944 | }, 945 | "strip-json-comments": { 946 | "version": "2.0.1", 947 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 948 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", 949 | "dev": true 950 | }, 951 | "supports-color": { 952 | "version": "6.0.0", 953 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz", 954 | "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", 955 | "dev": true, 956 | "requires": { 957 | "has-flag": "^3.0.0" 958 | } 959 | }, 960 | "tslib": { 961 | "version": "1.10.0", 962 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", 963 | "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", 964 | "dev": true 965 | }, 966 | "tslint": { 967 | "version": "5.19.0", 968 | "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.19.0.tgz", 969 | "integrity": "sha512-1LwwtBxfRJZnUvoS9c0uj8XQtAnyhWr9KlNvDIdB+oXyT+VpsOAaEhEgKi1HrZ8rq0ki/AAnbGSv4KM6/AfVZw==", 970 | "dev": true, 971 | "requires": { 972 | "@babel/code-frame": "^7.0.0", 973 | "builtin-modules": "^1.1.1", 974 | "chalk": "^2.3.0", 975 | "commander": "^2.12.1", 976 | "diff": "^3.2.0", 977 | "glob": "^7.1.1", 978 | "js-yaml": "^3.13.1", 979 | "minimatch": "^3.0.4", 980 | "mkdirp": "^0.5.1", 981 | "resolve": "^1.3.2", 982 | "semver": "^5.3.0", 983 | "tslib": "^1.8.0", 984 | "tsutils": "^2.29.0" 985 | } 986 | }, 987 | "tsutils": { 988 | "version": "2.29.0", 989 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", 990 | "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", 991 | "dev": true, 992 | "requires": { 993 | "tslib": "^1.8.1" 994 | } 995 | }, 996 | "typescript": { 997 | "version": "3.5.3", 998 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.5.3.tgz", 999 | "integrity": "sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g==", 1000 | "dev": true 1001 | }, 1002 | "vscode-test": { 1003 | "version": "1.2.0", 1004 | "resolved": "https://registry.npmjs.org/vscode-test/-/vscode-test-1.2.0.tgz", 1005 | "integrity": "sha512-aowqgc8gZe0eflzVUXsBjBrlsJ8eC35kfgfSEeHu9PKA1vQKm/3rVK43TlbxGue8hKtZBElNAJ5QuYklR/vLJA==", 1006 | "dev": true, 1007 | "requires": { 1008 | "http-proxy-agent": "^2.1.0", 1009 | "https-proxy-agent": "^2.2.1", 1010 | "rimraf": "^2.6.3" 1011 | } 1012 | }, 1013 | "which": { 1014 | "version": "1.3.1", 1015 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", 1016 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", 1017 | "dev": true, 1018 | "requires": { 1019 | "isexe": "^2.0.0" 1020 | } 1021 | }, 1022 | "which-module": { 1023 | "version": "2.0.0", 1024 | "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", 1025 | "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", 1026 | "dev": true 1027 | }, 1028 | "wide-align": { 1029 | "version": "1.1.3", 1030 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", 1031 | "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", 1032 | "dev": true, 1033 | "requires": { 1034 | "string-width": "^1.0.2 || 2" 1035 | } 1036 | }, 1037 | "wrap-ansi": { 1038 | "version": "2.1.0", 1039 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", 1040 | "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", 1041 | "dev": true, 1042 | "requires": { 1043 | "string-width": "^1.0.1", 1044 | "strip-ansi": "^3.0.1" 1045 | }, 1046 | "dependencies": { 1047 | "ansi-regex": { 1048 | "version": "2.1.1", 1049 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", 1050 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", 1051 | "dev": true 1052 | }, 1053 | "is-fullwidth-code-point": { 1054 | "version": "1.0.0", 1055 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", 1056 | "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", 1057 | "dev": true, 1058 | "requires": { 1059 | "number-is-nan": "^1.0.0" 1060 | } 1061 | }, 1062 | "string-width": { 1063 | "version": "1.0.2", 1064 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", 1065 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", 1066 | "dev": true, 1067 | "requires": { 1068 | "code-point-at": "^1.0.0", 1069 | "is-fullwidth-code-point": "^1.0.0", 1070 | "strip-ansi": "^3.0.0" 1071 | } 1072 | }, 1073 | "strip-ansi": { 1074 | "version": "3.0.1", 1075 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 1076 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", 1077 | "dev": true, 1078 | "requires": { 1079 | "ansi-regex": "^2.0.0" 1080 | } 1081 | } 1082 | } 1083 | }, 1084 | "wrappy": { 1085 | "version": "1.0.2", 1086 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1087 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 1088 | "dev": true 1089 | }, 1090 | "y18n": { 1091 | "version": "4.0.1", 1092 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz", 1093 | "integrity": "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==", 1094 | "dev": true 1095 | }, 1096 | "yargs": { 1097 | "version": "13.2.2", 1098 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.2.2.tgz", 1099 | "integrity": "sha512-WyEoxgyTD3w5XRpAQNYUB9ycVH/PQrToaTXdYXRdOXvEy1l19br+VJsc0vcO8PTGg5ro/l/GY7F/JMEBmI0BxA==", 1100 | "dev": true, 1101 | "requires": { 1102 | "cliui": "^4.0.0", 1103 | "find-up": "^3.0.0", 1104 | "get-caller-file": "^2.0.1", 1105 | "os-locale": "^3.1.0", 1106 | "require-directory": "^2.1.1", 1107 | "require-main-filename": "^2.0.0", 1108 | "set-blocking": "^2.0.0", 1109 | "string-width": "^3.0.0", 1110 | "which-module": "^2.0.0", 1111 | "y18n": "^4.0.0", 1112 | "yargs-parser": "^13.0.0" 1113 | }, 1114 | "dependencies": { 1115 | "ansi-regex": { 1116 | "version": "4.1.0", 1117 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 1118 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 1119 | "dev": true 1120 | }, 1121 | "string-width": { 1122 | "version": "3.1.0", 1123 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 1124 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 1125 | "dev": true, 1126 | "requires": { 1127 | "emoji-regex": "^7.0.1", 1128 | "is-fullwidth-code-point": "^2.0.0", 1129 | "strip-ansi": "^5.1.0" 1130 | } 1131 | }, 1132 | "strip-ansi": { 1133 | "version": "5.2.0", 1134 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 1135 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 1136 | "dev": true, 1137 | "requires": { 1138 | "ansi-regex": "^4.1.0" 1139 | } 1140 | } 1141 | } 1142 | }, 1143 | "yargs-parser": { 1144 | "version": "13.0.0", 1145 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.0.0.tgz", 1146 | "integrity": "sha512-w2LXjoL8oRdRQN+hOyppuXs+V/fVAYtpcrRxZuF7Kt/Oc+Jr2uAcVntaUTNT6w5ihoWfFDpNY8CPx1QskxZ/pw==", 1147 | "dev": true, 1148 | "requires": { 1149 | "camelcase": "^5.0.0", 1150 | "decamelize": "^1.2.0" 1151 | } 1152 | }, 1153 | "yargs-unparser": { 1154 | "version": "1.5.0", 1155 | "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.5.0.tgz", 1156 | "integrity": "sha512-HK25qidFTCVuj/D1VfNiEndpLIeJN78aqgR23nL3y4N0U/91cOAzqfHlF8n2BvoNDcZmJKin3ddNSvOxSr8flw==", 1157 | "dev": true, 1158 | "requires": { 1159 | "flat": "^4.1.0", 1160 | "lodash": "^4.17.11", 1161 | "yargs": "^12.0.5" 1162 | }, 1163 | "dependencies": { 1164 | "get-caller-file": { 1165 | "version": "1.0.3", 1166 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", 1167 | "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", 1168 | "dev": true 1169 | }, 1170 | "require-main-filename": { 1171 | "version": "1.0.1", 1172 | "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", 1173 | "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", 1174 | "dev": true 1175 | }, 1176 | "yargs": { 1177 | "version": "12.0.5", 1178 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz", 1179 | "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==", 1180 | "dev": true, 1181 | "requires": { 1182 | "cliui": "^4.0.0", 1183 | "decamelize": "^1.2.0", 1184 | "find-up": "^3.0.0", 1185 | "get-caller-file": "^1.0.1", 1186 | "os-locale": "^3.0.0", 1187 | "require-directory": "^2.1.1", 1188 | "require-main-filename": "^1.0.1", 1189 | "set-blocking": "^2.0.0", 1190 | "string-width": "^2.0.0", 1191 | "which-module": "^2.0.0", 1192 | "y18n": "^3.2.1 || ^4.0.0", 1193 | "yargs-parser": "^11.1.1" 1194 | } 1195 | }, 1196 | "yargs-parser": { 1197 | "version": "11.1.1", 1198 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz", 1199 | "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==", 1200 | "dev": true, 1201 | "requires": { 1202 | "camelcase": "^5.0.0", 1203 | "decamelize": "^1.2.0" 1204 | } 1205 | } 1206 | } 1207 | } 1208 | } 1209 | } 1210 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "flutter-tree", 3 | "displayName": "Flutter Tree", 4 | "description": "Extension for Flutter to build basic widget tree.", 5 | "version": "1.0.0", 6 | "icon": "assets/icon.png", 7 | "publisher": "marcelovelasquez", 8 | "engines": { 9 | "vscode": "^1.37.0" 10 | }, 11 | "categories": [ 12 | "Other" 13 | ], 14 | "keywords": [ 15 | "flutter", 16 | "widgets", 17 | "tree", 18 | "dart" 19 | ], 20 | "repository": { 21 | "type": "git", 22 | "url": "https://github.com/MarceloVelasquez/flutter-tree.git" 23 | }, 24 | "activationEvents": [ 25 | "onCommand:extension.fromAbbr", 26 | "onCommand:extension.fromSelection", 27 | "onLanguage:dart" 28 | ], 29 | "main": "./out/extension.js", 30 | "contributes": { 31 | "commands": [ 32 | { 33 | "command": "extension.fromAbbr", 34 | "title": "Flutter Tree: From abbreviation" 35 | }, 36 | { 37 | "command": "extension.fromSelection", 38 | "title": "Flutter Tree: From selection" 39 | } 40 | ] 41 | }, 42 | "scripts": { 43 | "vscode:prepublish": "npm run compile", 44 | "compile": "tsc -p ./", 45 | "watch": "tsc -watch -p ./", 46 | "pretest": "npm run compile" 47 | }, 48 | "devDependencies": { 49 | "@types/glob": "^7.1.1", 50 | "@types/mocha": "^5.2.6", 51 | "@types/node": "^10.12.21", 52 | "@types/vscode": "^1.37.0", 53 | "glob": "^7.1.4", 54 | "mocha": "^6.1.4", 55 | "typescript": "^3.3.1", 56 | "tslint": "^5.12.1", 57 | "vscode-test": "^1.0.2" 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/completion.ts: -------------------------------------------------------------------------------- 1 | import * as vscode from 'vscode'; 2 | import { expand, validate } from './core'; 3 | 4 | export class CompletionProvider implements vscode.CompletionItemProvider { 5 | provideCompletionItems( 6 | document: vscode.TextDocument, 7 | position: vscode.Position, 8 | token: vscode.CancellationToken, 9 | context: vscode.CompletionContext): 10 | Thenable { 11 | 12 | let expandedAbbr = getExpandedAbbreviation(document, position); 13 | let completionItems = expandedAbbr ? [expandedAbbr] : []; 14 | 15 | return Promise.resolve(new vscode.CompletionList(completionItems, true)); 16 | } 17 | } 18 | 19 | function extractAbbreviation(document: vscode.TextDocument, position: vscode.Position): [vscode.Range, string] { 20 | let lineText = document.lineAt(position.line).text; 21 | let lineSplit = lineText.split(' '); 22 | let abbreviation = lineSplit[lineSplit.length - 1]; 23 | 24 | let start = new vscode.Position(position.line, lineText.length - abbreviation.length); 25 | let end = new vscode.Position(position.line, lineText.length); 26 | 27 | return [new vscode.Range(start, end), abbreviation]; 28 | } 29 | 30 | function getExpandedAbbreviation(document: vscode.TextDocument, position: vscode.Position): vscode.CompletionItem { 31 | let [rangeToReplace, wordToExpand] = extractAbbreviation(document, position); 32 | let valid = validate(wordToExpand); 33 | 34 | let completionItem = new vscode.CompletionItem(wordToExpand); 35 | completionItem.detail = 'Flutter Tree'; 36 | 37 | if (valid) { 38 | let expandedWord = expand(wordToExpand); 39 | completionItem.insertText = new vscode.SnippetString(expandedWord); 40 | completionItem.documentation = removeTabStops(expandedWord); 41 | completionItem.range = rangeToReplace; 42 | } else { 43 | completionItem.documentation = 'Invalid syntax'; 44 | completionItem.insertText = new vscode.SnippetString(); 45 | } 46 | 47 | return completionItem; 48 | } 49 | 50 | function removeTabStops(expandedWord: string): string { 51 | return expandedWord.replace(/[(]+[$]+[0-9]+[)]/g, '()'); 52 | } 53 | -------------------------------------------------------------------------------- /src/core/constants.ts: -------------------------------------------------------------------------------- 1 | export const symbols = { 2 | childBuilder: '>', 3 | childrenBuilder: '[', 4 | childrenSeparator: ',', 5 | childrenEnd: ']', 6 | 7 | enter: '\n', 8 | tab: '\t' 9 | }; 10 | 11 | export const flag = '!'; 12 | 13 | export const triggers = ['>', ',', '[', ']']; 14 | -------------------------------------------------------------------------------- /src/core/index.ts: -------------------------------------------------------------------------------- 1 | import map from "./map"; 2 | import { mapperSingleLine, mapperMultiLine } from "./mapper"; 3 | import { symbols, triggers } from "./constants"; 4 | 5 | function isAbbr(text: string): boolean { 6 | return !text.includes(symbols.enter); 7 | } 8 | 9 | export function expand(text: string): string { 10 | text = filter(text); 11 | return map(isAbbr(text) ? mapperSingleLine(text) : mapperMultiLine(text)); 12 | } 13 | 14 | export function validate(text: string): boolean { 15 | return isAbbr(text) ? validateSingleLine(text) : validateMultiLine(text); 16 | } 17 | 18 | function validateSingleLine(abbr: string): boolean { 19 | 20 | let left = 0, right = 0; 21 | for (let i = 0; i < abbr.length; i++) { 22 | switch (abbr[i]) { 23 | case symbols.childrenBuilder: 24 | left++; 25 | break; 26 | case symbols.childrenEnd: 27 | right++; 28 | break; 29 | case symbols.childrenSeparator: 30 | if (left === 0) { 31 | return false; 32 | } 33 | break; 34 | case symbols.childBuilder: 35 | break; 36 | default: 37 | if (abbr[i].match(/\W/i)) { 38 | return false; 39 | } 40 | break; 41 | } 42 | } 43 | 44 | if (left !== right) { 45 | return false; 46 | } 47 | 48 | if (abbr === '' || abbr.match(/(>|\[|,){2}|>]|]\[|]>/g)) { 49 | return false; 50 | } 51 | 52 | return true; 53 | } 54 | 55 | function validateMultiLine(abbr: string): boolean { 56 | return true; 57 | } 58 | 59 | function filter(text: string): string { 60 | text = text.trim(); 61 | if (text.includes(symbols.childrenBuilder)) { 62 | return limitAbbr(text); 63 | } else { 64 | return removeEndTriggers(text); 65 | } 66 | } 67 | 68 | function removeEndTriggers(text: string): string { 69 | text = text.replace(/\,\]/g, symbols.childrenEnd); 70 | return triggers.some(e => text.endsWith(e)) 71 | ? removeEndTriggers(text.slice(0, -1)) 72 | : text; 73 | } 74 | 75 | function limitAbbr(abbr: string): string { 76 | let text = '', block = 0, flag = false; 77 | let index = Array.from(abbr).findIndex((char, pos) => { 78 | text += char; 79 | switch (char) { 80 | case symbols.childrenBuilder: 81 | flag = true; 82 | block++; 83 | break; 84 | case symbols.childrenEnd: 85 | block--; 86 | break; 87 | } 88 | if (!block && flag) { 89 | return pos; 90 | } 91 | }); 92 | return text.slice(0, index + 1); 93 | } 94 | -------------------------------------------------------------------------------- /src/core/map.ts: -------------------------------------------------------------------------------- 1 | import { Node } from './node'; 2 | import { flag } from './constants'; 3 | 4 | export default function generateSnippet(rootNode: Node) { 5 | let snippet = map(rootNode); 6 | let count = 1; 7 | 8 | for (let i = 0; i < snippet.length; i++) { 9 | const char = snippet[i]; 10 | if (char === flag) { 11 | snippet = snippet.replace(char, `$${count}`); 12 | count++; 13 | } 14 | } 15 | 16 | return snippet.replace(flag, '$1'); 17 | } 18 | 19 | function map(rootNode: Node, tab: number = 1): string { 20 | let result = `${rootNode.name}(${flag}),`; 21 | 22 | if (rootNode.children) { 23 | if (rootNode.children instanceof Node) { 24 | let child = map(rootNode.children, tab + 1); 25 | let text = `\n${tabs(tab)}child: ${child}\n${tabs(tab - 1)}`; 26 | result = splice(result, text); 27 | } else if (rootNode.children) { 28 | let children = ''; 29 | tab += 2; 30 | rootNode.children.forEach((child, index) => { 31 | if (index !== 0) { 32 | children += '\n' + tabs(tab - 1); 33 | } 34 | children += map(child, tab); 35 | }); 36 | tab -= 2; 37 | let text = `\n${tabs(tab)}children: [\n${tabs(tab + 1)}${children}\n${tabs(tab)}],\n${tabs(tab - 1)}`; 38 | result = splice(result, text); 39 | } 40 | } 41 | 42 | return result; 43 | } 44 | 45 | function tabs(number: number): string { 46 | let string = ''; 47 | for (let i = 0; i < number; i++) { 48 | string += '\t'; 49 | } 50 | return string; 51 | } 52 | 53 | function splice(str: string, add: string): string { 54 | let index = str.indexOf(flag); 55 | return str.slice(0, index) + add + str.slice(index + 1); 56 | } 57 | -------------------------------------------------------------------------------- /src/core/mapper.ts: -------------------------------------------------------------------------------- 1 | import { Node } from './node'; 2 | import { symbols } from './constants'; 3 | 4 | // Abbreviation to Node tree 5 | export function mapperSingleLine(abbr: string, options?: object): Node { 6 | return getChildren(abbr); 7 | } 8 | 9 | export function mapperMultiLine(selection: string): Node { 10 | return new Node(''); 11 | } 12 | 13 | function getChildren(abbr: string): Node { 14 | if (isSingleChild(abbr)) { 15 | return getSingleChild(abbr); 16 | } else { 17 | return getMultiChild(abbr); 18 | } 19 | } 20 | 21 | function getSingleChild(abbr: string): Node { 22 | let name: string; 23 | let node: Node; 24 | let position = abbr.indexOf(symbols.childBuilder); 25 | 26 | if (position === -1) { 27 | name = abbr.substring(0, abbr.length); 28 | node = new Node(name); 29 | } else { 30 | name = abbr.substring(0, position); 31 | let child = getChildren(abbr.substring(position + 1, abbr.length)); 32 | node = new Node(name, child); 33 | } 34 | 35 | return node; 36 | } 37 | 38 | function getMultiChild(abbr: string): Node { 39 | let position = abbr.indexOf(symbols.childrenBuilder); 40 | let name = abbr.substring(0, position); 41 | 42 | let abbrWithoutName = abbr.substring(position + 1, abbr.length - 1); 43 | let abbrArray = split(abbrWithoutName); 44 | 45 | let children = new Array(); 46 | 47 | abbrArray.forEach(abbr => { 48 | let child = abbr || ''; 49 | children.push(getChildren(child)); 50 | }); 51 | 52 | let node = new Node(name, children); 53 | 54 | return node; 55 | } 56 | 57 | function split(abbr: string): string[] { 58 | let results = Array(); 59 | let str = ''; 60 | let left = 0, right = 0; 61 | 62 | function keepResult() { 63 | results.push(str); 64 | str = ''; 65 | } 66 | 67 | for (let i = 0; i < abbr.length; i++) { 68 | switch (abbr[i]) { 69 | case ',': 70 | if ((left === right)) { 71 | keepResult(); 72 | left = right = 0; 73 | } else { 74 | str += abbr[i]; 75 | } 76 | break; 77 | case '[': 78 | left++; 79 | str += abbr[i]; 80 | break; 81 | case ']': 82 | right++; 83 | str += abbr[i]; 84 | break; 85 | default: 86 | str += abbr[i]; 87 | } 88 | } 89 | keepResult(); 90 | return results; 91 | } 92 | 93 | function isSingleChild(abbr: string) { 94 | let symbolChild = abbr.indexOf(symbols.childBuilder); 95 | let symbolChildren = abbr.indexOf(symbols.childrenBuilder); 96 | 97 | if (symbolChild === -1 && symbolChildren === -1) { 98 | return true; 99 | } 100 | 101 | if (symbolChild === -1) { 102 | return false; 103 | } 104 | 105 | if (symbolChildren === -1) { 106 | return true; 107 | } 108 | 109 | return symbolChild < symbolChildren ? true : false; 110 | } 111 | -------------------------------------------------------------------------------- /src/core/node.ts: -------------------------------------------------------------------------------- 1 | export class Node { 2 | 3 | name: string; 4 | children: Node | Node[] | undefined; 5 | 6 | constructor(name: string, children?: Node | Node[]) { 7 | this.name = name[0].toUpperCase() + name.slice(1); 8 | this.children = children; 9 | } 10 | 11 | isUnique() { 12 | return (this.children instanceof Node) ? true : false; 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/extension.ts: -------------------------------------------------------------------------------- 1 | import * as vscode from 'vscode'; 2 | import { expand, validate } from './core'; 3 | import { CompletionProvider } from './completion'; 4 | import { triggers } from './core/constants'; 5 | 6 | const language = 'dart'; 7 | 8 | function widgetsFromAbbr() { 9 | let editor = vscode.window.activeTextEditor; 10 | 11 | if (!editor) { 12 | vscode.window.showInformationMessage('No editor'); 13 | return; 14 | } 15 | 16 | vscode.window.showInputBox({ 17 | prompt: 'Enter Abbreviation', placeHolder: 'Container>Center' 18 | }).then(abbr => { 19 | if (editor) { 20 | let expandText = abbr || ''; 21 | if (validate(expandText)) { 22 | editor.insertSnippet(new vscode.SnippetString(expand(expandText))); 23 | } else { 24 | vscode.window.showWarningMessage('Invalid syntax'); 25 | } 26 | } 27 | }); 28 | } 29 | 30 | function widgetsFromSelection() { 31 | vscode.window.showInformationMessage('This feature is not available now'); 32 | } 33 | 34 | export function activate(context: vscode.ExtensionContext) { 35 | 36 | registerCompletionProviders(context); 37 | 38 | context.subscriptions.push(vscode.commands.registerCommand('extension.fromAbbr', () => { 39 | widgetsFromAbbr(); 40 | })); 41 | 42 | context.subscriptions.push(vscode.commands.registerCommand('extension.fromSelection', () => { 43 | widgetsFromSelection(); 44 | })); 45 | 46 | } 47 | 48 | function registerCompletionProviders(context: vscode.ExtensionContext) { 49 | let completionProvider = new CompletionProvider(); 50 | 51 | const provider = vscode.languages.registerCompletionItemProvider( 52 | [{ language, scheme: 'file' }, { language, scheme: 'untitled' }], 53 | completionProvider, 54 | ...triggers 55 | ); 56 | context.subscriptions.push(provider); 57 | } 58 | 59 | export function deactivate() { } 60 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es6", 5 | "outDir": "out", 6 | "lib": [ 7 | "es6" 8 | ], 9 | "sourceMap": true, 10 | "rootDir": "src", 11 | "strict": true 12 | }, 13 | "exclude": [ 14 | "node_modules", 15 | ".vscode-test" 16 | ] 17 | } -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "no-string-throw": true, 4 | "no-unused-expression": true, 5 | "no-duplicate-variable": true, 6 | "curly": true, 7 | "class-name": true, 8 | "semicolon": [ 9 | true, 10 | "always" 11 | ], 12 | "triple-equals": true 13 | }, 14 | "defaultSeverity": "warning" 15 | } --------------------------------------------------------------------------------