├── .gitignore ├── .vscode ├── extensions.json ├── launch.json ├── settings.json └── tasks.json ├── .vscodeignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── images ├── icon.png └── readme │ ├── screenshot-commands.png │ ├── screenshot-config-file.png │ └── screenshot-getting-started.png ├── package-lock.json ├── package.json ├── src ├── app │ ├── app.ts │ ├── classes │ │ ├── base.ts │ │ ├── helpers │ │ │ └── terminal-helper.ts │ │ └── project │ │ │ └── project.ts │ └── constants.ts ├── extension.ts └── test │ ├── extension.test.ts │ └── index.ts ├── tsconfig.json ├── tslint.json └── vsc-extension-quickstart.md /.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 | "eg2.tslint" 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": "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" 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 | } -------------------------------------------------------------------------------- /.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 | } -------------------------------------------------------------------------------- /.vscodeignore: -------------------------------------------------------------------------------- 1 | .vscode/** 2 | .vscode-test/** 3 | out/test/** 4 | out/**/*.map 5 | src/** 6 | .gitignore 7 | tsconfig.json 8 | vsc-extension-quickstart.md 9 | tslint.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | All notable changes to the "micropython-ide-vscode" extension will be documented in this file. 3 | 4 | Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file. 5 | 6 | ## [Unreleased] 7 | - Initial release -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Unfortunately, this extension has been terminated. 2 | 3 | ``` 4 | My developer account cannot connect to extensions store. So I cannot update latest changes into vscode extensions. 5 | Sorry @trevormerritt for adding support for Linux. 6 | Sorry @rainum for adding settings to set a root path for project files. 7 | I'm sorry @osechet for improve directories ignore, and @oplik0 fix messages issues. 8 | ``` 9 | 10 | **Don't know what to say, I sincerely apologize to the contributors to the project.** 11 | 12 | 13 | # Micropython IDE for VSCode README 14 | 15 | Micropython integrated development for VSCode 16 | 17 | ![Getting Started Screenshot](./images/readme/screenshot-getting-started.png) 18 | 19 | 20 | ## Features 21 | 22 | - Flashing __Micropython__ firmwares into devices, current support flashing ESP8266, ESP32 boards using `esptool.py`. 23 | - Generate new project with supported files. 24 | - Support send project files into board. 25 | - Support Serial Monitor for debugging your scripts. 26 | 27 | ## Requirements 28 | 29 | **This extension required `python` with `pip` (_python package installer_) installed on your system operation.** 30 | 31 | #### Python 32 | If you do not have already installed Python, you can downloading from the [official site](https://www.python.org/downloads/). You can use python 2.x but I'm recommend using 3.x will better. 33 | 34 | 35 | #### Pip 36 | Pip is a installer for python modules that both downloads and installs the modules, if you are not already installed pip, please [click here](https://pip.pypa.io/en/stable/installing/#do-i-need-to-install-pip). 37 | 38 | #### Ampy 39 | Ampy allows you to interact with the file system created on the chip. This module is required for this extension. You can install ampy by pip: 40 | 41 | ```bash 42 | pip install adafruit-ampy 43 | ``` 44 | 45 | #### rshell 46 | Remote Shell for MicroPython. This module is required for this extension. You can install rshell by pip: 47 | 48 | ```bash 49 | sudo pip3 install rshell 50 | ``` 51 | or: 52 | 53 | ```bash 54 | sudo pip install rshell 55 | ``` 56 | 57 | ## How to use 58 | 59 | 60 | ### Create new project: 61 | First, you need to generate new project by open **Getting Started** menu. 62 | 63 | To open **Getting Started...** menu, you can press shortcut **⌘ + ⇧ + P** keys, then find from commands list with keyword: `Micropython: Gettings Started`. 64 | 65 | You can integrate with existing project by creating `.micropythonrc` file into your project root directory. This file stores build and debug settings for your project. 66 | 67 | Example `.micropythonrc` file: 68 | 69 | ```json 70 | { 71 | "upload": { 72 | "port": "/serial/port", 73 | "baud": 115200 74 | }, 75 | "serial": { 76 | "port": "/serial/port", 77 | "baud": 115200 78 | }, 79 | "paths": { 80 | "root": "./myproject", 81 | "ignore": { 82 | "extensions": [ 83 | ".md" 84 | ], 85 | "directories": [ 86 | ".git", 87 | ] 88 | } 89 | }, 90 | "tools": { 91 | "ampy": "/path/to/ampy", 92 | "rshell": "/path/to/rshell" 93 | } 94 | } 95 | ``` 96 | 97 | `paths.root` - path with a python files for upload. 98 | 99 | ### Run project: 100 | You can run project by move to script file from prject directory. From VSCode status bar, press ▶ button in the bottom right. Or using `Run` command from commands list. 101 | 102 | ### Stop running script: 103 | To stop running script, you can stop by press ◼ button in the bottom right. Or using `Stop` command from commands list. 104 | 105 | ### To Flash Micropython firmware 106 | From **Getting Started** menu, select **Flash Firmware** then follow the step-by-step instructions. 107 | 108 | 109 | ## Extension Settings 110 | 111 | **This extension has no settings for this release. You just press ⌘ + ⇧ + P then type prefix _Micropython_ to see tasks list:** 112 | 113 | - **Micropython**: Getting started 114 | - **Micropython**: Run... 115 | - **Micropython**: Stop... 116 | - ... 117 | 118 | 119 | 120 | ## Known Issues 121 | 122 | This extension has been tested on MacOS. If you have any trouble with your OS. Please contact me soon by open issue or via email address: [dinophan94@gmail.com](mailto:dinophan94@gmail.com). All requests appropriate! 123 | 124 | 125 | ## Contact & Supports 126 | 127 | - [Github](https://github.com/dphans/micropython-ide-vscode) 128 | - [Support Email](mailto:dinophan94@gmail.com) 129 | 130 | 131 | ## Release Notes 132 | 133 | Users appreciate release notes as you update your extension. 134 | 135 | ### 0.0.1 136 | 137 | First release 138 | -------------------------------------------------------------------------------- /images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dphans/micropython-ide-vscode/268eeb17562ed22da1ac3ea5352433edd4f9071f/images/icon.png -------------------------------------------------------------------------------- /images/readme/screenshot-commands.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dphans/micropython-ide-vscode/268eeb17562ed22da1ac3ea5352433edd4f9071f/images/readme/screenshot-commands.png -------------------------------------------------------------------------------- /images/readme/screenshot-config-file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dphans/micropython-ide-vscode/268eeb17562ed22da1ac3ea5352433edd4f9071f/images/readme/screenshot-config-file.png -------------------------------------------------------------------------------- /images/readme/screenshot-getting-started.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dphans/micropython-ide-vscode/268eeb17562ed22da1ac3ea5352433edd4f9071f/images/readme/screenshot-getting-started.png -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "micropython-ide-vscode", 3 | "version": "0.0.1", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@types/lodash": { 8 | "version": "4.14.123", 9 | "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.123.tgz", 10 | "integrity": "sha512-pQvPkc4Nltyx7G1Ww45OjVqUsJP4UsZm+GWJpigXgkikZqJgRm4c48g027o6tdgubWHwFRF15iFd+Y4Pmqv6+Q==", 11 | "dev": true 12 | }, 13 | "@types/mocha": { 14 | "version": "2.2.48", 15 | "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-2.2.48.tgz", 16 | "integrity": "sha512-nlK/iyETgafGli8Zh9zJVCTicvU3iajSkRwOh3Hhiva598CMqNJ4NcVCGMTGKpGpTYj/9R8RLzS9NAykSSCqGw==", 17 | "dev": true 18 | }, 19 | "@types/node": { 20 | "version": "7.0.57", 21 | "resolved": "https://registry.npmjs.org/@types/node/-/node-7.0.57.tgz", 22 | "integrity": "sha512-Iikf0IAus1OX++3Jrc1R2bsZggO+m22G5ee56JccYKejx5GNT3nHhY8v6J4OXId1hXXlb0n45hcaVwZwQcZZ6w==", 23 | "dev": true 24 | }, 25 | "ajv": { 26 | "version": "5.5.2", 27 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", 28 | "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", 29 | "dev": true, 30 | "requires": { 31 | "co": "^4.6.0", 32 | "fast-deep-equal": "^1.0.0", 33 | "fast-json-stable-stringify": "^2.0.0", 34 | "json-schema-traverse": "^0.3.0" 35 | } 36 | }, 37 | "ansi-cyan": { 38 | "version": "0.1.1", 39 | "resolved": "https://registry.npmjs.org/ansi-cyan/-/ansi-cyan-0.1.1.tgz", 40 | "integrity": "sha1-U4rlKK+JgvKK4w2G8vF0VtJgmHM=", 41 | "dev": true, 42 | "requires": { 43 | "ansi-wrap": "0.1.0" 44 | } 45 | }, 46 | "ansi-gray": { 47 | "version": "0.1.1", 48 | "resolved": "https://registry.npmjs.org/ansi-gray/-/ansi-gray-0.1.1.tgz", 49 | "integrity": "sha1-KWLPVOyXksSFEKPetSRDaGHvclE=", 50 | "dev": true, 51 | "requires": { 52 | "ansi-wrap": "0.1.0" 53 | } 54 | }, 55 | "ansi-red": { 56 | "version": "0.1.1", 57 | "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", 58 | "integrity": "sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw=", 59 | "dev": true, 60 | "requires": { 61 | "ansi-wrap": "0.1.0" 62 | } 63 | }, 64 | "ansi-regex": { 65 | "version": "2.1.1", 66 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", 67 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", 68 | "dev": true 69 | }, 70 | "ansi-styles": { 71 | "version": "2.2.1", 72 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", 73 | "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", 74 | "dev": true 75 | }, 76 | "ansi-wrap": { 77 | "version": "0.1.0", 78 | "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", 79 | "integrity": "sha1-qCJQ3bABXponyoLoLqYDu/pF768=", 80 | "dev": true 81 | }, 82 | "argparse": { 83 | "version": "1.0.10", 84 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 85 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 86 | "dev": true, 87 | "requires": { 88 | "sprintf-js": "~1.0.2" 89 | } 90 | }, 91 | "arr-diff": { 92 | "version": "1.1.0", 93 | "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-1.1.0.tgz", 94 | "integrity": "sha1-aHwydYFjWI/vfeezb6vklesaOZo=", 95 | "dev": true, 96 | "requires": { 97 | "arr-flatten": "^1.0.1", 98 | "array-slice": "^0.2.3" 99 | } 100 | }, 101 | "arr-flatten": { 102 | "version": "1.1.0", 103 | "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", 104 | "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", 105 | "dev": true 106 | }, 107 | "arr-union": { 108 | "version": "2.1.0", 109 | "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-2.1.0.tgz", 110 | "integrity": "sha1-IPnqtexw9cfSFbEHexw5Fh0pLH0=", 111 | "dev": true 112 | }, 113 | "array-differ": { 114 | "version": "1.0.0", 115 | "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz", 116 | "integrity": "sha1-7/UuN1gknTO+QCuLuOVkuytdQDE=", 117 | "dev": true 118 | }, 119 | "array-slice": { 120 | "version": "0.2.3", 121 | "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-0.2.3.tgz", 122 | "integrity": "sha1-3Tz7gO15c6dRF82sabC5nshhhvU=", 123 | "dev": true 124 | }, 125 | "array-union": { 126 | "version": "1.0.2", 127 | "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", 128 | "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", 129 | "dev": true, 130 | "requires": { 131 | "array-uniq": "^1.0.1" 132 | } 133 | }, 134 | "array-uniq": { 135 | "version": "1.0.3", 136 | "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", 137 | "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", 138 | "dev": true 139 | }, 140 | "array-unique": { 141 | "version": "0.2.1", 142 | "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", 143 | "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", 144 | "dev": true 145 | }, 146 | "arrify": { 147 | "version": "1.0.1", 148 | "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", 149 | "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", 150 | "dev": true 151 | }, 152 | "asn1": { 153 | "version": "0.2.3", 154 | "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", 155 | "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=", 156 | "dev": true 157 | }, 158 | "assert-plus": { 159 | "version": "0.2.0", 160 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz", 161 | "integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ=", 162 | "dev": true 163 | }, 164 | "asynckit": { 165 | "version": "0.4.0", 166 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 167 | "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", 168 | "dev": true 169 | }, 170 | "aws-sign2": { 171 | "version": "0.6.0", 172 | "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz", 173 | "integrity": "sha1-FDQt0428yU0OW4fXY81jYSwOeU8=", 174 | "dev": true 175 | }, 176 | "aws4": { 177 | "version": "1.6.0", 178 | "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz", 179 | "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=", 180 | "dev": true 181 | }, 182 | "babel-code-frame": { 183 | "version": "6.26.0", 184 | "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", 185 | "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", 186 | "dev": true, 187 | "requires": { 188 | "chalk": "^1.1.3", 189 | "esutils": "^2.0.2", 190 | "js-tokens": "^3.0.2" 191 | }, 192 | "dependencies": { 193 | "chalk": { 194 | "version": "1.1.3", 195 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", 196 | "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", 197 | "dev": true, 198 | "requires": { 199 | "ansi-styles": "^2.2.1", 200 | "escape-string-regexp": "^1.0.2", 201 | "has-ansi": "^2.0.0", 202 | "strip-ansi": "^3.0.0", 203 | "supports-color": "^2.0.0" 204 | } 205 | } 206 | } 207 | }, 208 | "balanced-match": { 209 | "version": "1.0.0", 210 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 211 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", 212 | "dev": true 213 | }, 214 | "bcrypt-pbkdf": { 215 | "version": "1.0.1", 216 | "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz", 217 | "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", 218 | "dev": true, 219 | "optional": true, 220 | "requires": { 221 | "tweetnacl": "^0.14.3" 222 | } 223 | }, 224 | "beeper": { 225 | "version": "1.1.1", 226 | "resolved": "https://registry.npmjs.org/beeper/-/beeper-1.1.1.tgz", 227 | "integrity": "sha1-5tXqjF2tABMEpwsiY4RH9pyy+Ak=", 228 | "dev": true 229 | }, 230 | "block-stream": { 231 | "version": "0.0.9", 232 | "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz", 233 | "integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=", 234 | "dev": true, 235 | "requires": { 236 | "inherits": "~2.0.0" 237 | } 238 | }, 239 | "boom": { 240 | "version": "2.10.1", 241 | "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz", 242 | "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=", 243 | "dev": true, 244 | "requires": { 245 | "hoek": "2.x.x" 246 | } 247 | }, 248 | "brace-expansion": { 249 | "version": "1.1.11", 250 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 251 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 252 | "dev": true, 253 | "requires": { 254 | "balanced-match": "^1.0.0", 255 | "concat-map": "0.0.1" 256 | } 257 | }, 258 | "braces": { 259 | "version": "1.8.5", 260 | "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", 261 | "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", 262 | "dev": true, 263 | "requires": { 264 | "expand-range": "^1.8.1", 265 | "preserve": "^0.2.0", 266 | "repeat-element": "^1.1.2" 267 | } 268 | }, 269 | "browser-stdout": { 270 | "version": "1.3.0", 271 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.0.tgz", 272 | "integrity": "sha1-81HTKWnTL6XXpVZxVCY9korjvR8=", 273 | "dev": true 274 | }, 275 | "buffer-crc32": { 276 | "version": "0.2.13", 277 | "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", 278 | "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=", 279 | "dev": true 280 | }, 281 | "builtin-modules": { 282 | "version": "1.1.1", 283 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", 284 | "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", 285 | "dev": true 286 | }, 287 | "caseless": { 288 | "version": "0.11.0", 289 | "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.11.0.tgz", 290 | "integrity": "sha1-cVuW6phBWTzDMGeSP17GDr2k99c=", 291 | "dev": true 292 | }, 293 | "chalk": { 294 | "version": "2.3.2", 295 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", 296 | "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", 297 | "dev": true, 298 | "requires": { 299 | "ansi-styles": "^3.2.1", 300 | "escape-string-regexp": "^1.0.5", 301 | "supports-color": "^5.3.0" 302 | }, 303 | "dependencies": { 304 | "ansi-styles": { 305 | "version": "3.2.1", 306 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 307 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 308 | "dev": true, 309 | "requires": { 310 | "color-convert": "^1.9.0" 311 | } 312 | }, 313 | "supports-color": { 314 | "version": "5.3.0", 315 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", 316 | "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", 317 | "dev": true, 318 | "requires": { 319 | "has-flag": "^3.0.0" 320 | } 321 | } 322 | } 323 | }, 324 | "clone": { 325 | "version": "0.2.0", 326 | "resolved": "https://registry.npmjs.org/clone/-/clone-0.2.0.tgz", 327 | "integrity": "sha1-xhJqkK1Pctv1rNskPMN3JP6T/B8=", 328 | "dev": true 329 | }, 330 | "clone-buffer": { 331 | "version": "1.0.0", 332 | "resolved": "https://registry.npmjs.org/clone-buffer/-/clone-buffer-1.0.0.tgz", 333 | "integrity": "sha1-4+JbIHrE5wGvch4staFnksrD3Fg=", 334 | "dev": true 335 | }, 336 | "clone-stats": { 337 | "version": "0.0.1", 338 | "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-0.0.1.tgz", 339 | "integrity": "sha1-uI+UqCzzi4eR1YBG6kAprYjKmdE=", 340 | "dev": true 341 | }, 342 | "cloneable-readable": { 343 | "version": "1.1.2", 344 | "resolved": "https://registry.npmjs.org/cloneable-readable/-/cloneable-readable-1.1.2.tgz", 345 | "integrity": "sha512-Bq6+4t+lbM8vhTs/Bef5c5AdEMtapp/iFb6+s4/Hh9MVTt8OLKH7ZOOZSCT+Ys7hsHvqv0GuMPJ1lnQJVHvxpg==", 346 | "dev": true, 347 | "requires": { 348 | "inherits": "^2.0.1", 349 | "process-nextick-args": "^2.0.0", 350 | "readable-stream": "^2.3.5" 351 | } 352 | }, 353 | "co": { 354 | "version": "4.6.0", 355 | "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", 356 | "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", 357 | "dev": true 358 | }, 359 | "color-convert": { 360 | "version": "1.9.1", 361 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz", 362 | "integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==", 363 | "dev": true, 364 | "requires": { 365 | "color-name": "^1.1.1" 366 | } 367 | }, 368 | "color-name": { 369 | "version": "1.1.3", 370 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 371 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", 372 | "dev": true 373 | }, 374 | "color-support": { 375 | "version": "1.1.3", 376 | "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", 377 | "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", 378 | "dev": true 379 | }, 380 | "combined-stream": { 381 | "version": "1.0.6", 382 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", 383 | "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", 384 | "dev": true, 385 | "requires": { 386 | "delayed-stream": "~1.0.0" 387 | } 388 | }, 389 | "commander": { 390 | "version": "2.15.1", 391 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", 392 | "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", 393 | "dev": true 394 | }, 395 | "concat-map": { 396 | "version": "0.0.1", 397 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 398 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 399 | "dev": true 400 | }, 401 | "convert-source-map": { 402 | "version": "1.5.1", 403 | "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.1.tgz", 404 | "integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=", 405 | "dev": true 406 | }, 407 | "core-util-is": { 408 | "version": "1.0.2", 409 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 410 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", 411 | "dev": true 412 | }, 413 | "cryptiles": { 414 | "version": "2.0.5", 415 | "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz", 416 | "integrity": "sha1-O9/s3GCBR8HGcgL6KR59ylnqo7g=", 417 | "dev": true, 418 | "requires": { 419 | "boom": "2.x.x" 420 | } 421 | }, 422 | "dashdash": { 423 | "version": "1.14.1", 424 | "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", 425 | "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", 426 | "dev": true, 427 | "requires": { 428 | "assert-plus": "^1.0.0" 429 | }, 430 | "dependencies": { 431 | "assert-plus": { 432 | "version": "1.0.0", 433 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 434 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", 435 | "dev": true 436 | } 437 | } 438 | }, 439 | "dateformat": { 440 | "version": "2.2.0", 441 | "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-2.2.0.tgz", 442 | "integrity": "sha1-QGXiATz5+5Ft39gu+1Bq1MZ2kGI=", 443 | "dev": true 444 | }, 445 | "debug": { 446 | "version": "3.1.0", 447 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", 448 | "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", 449 | "dev": true, 450 | "requires": { 451 | "ms": "2.0.0" 452 | } 453 | }, 454 | "deep-assign": { 455 | "version": "1.0.0", 456 | "resolved": "https://registry.npmjs.org/deep-assign/-/deep-assign-1.0.0.tgz", 457 | "integrity": "sha1-sJJ0O+hCfcYh6gBnzex+cN0Z83s=", 458 | "dev": true, 459 | "requires": { 460 | "is-obj": "^1.0.0" 461 | } 462 | }, 463 | "delayed-stream": { 464 | "version": "1.0.0", 465 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 466 | "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", 467 | "dev": true 468 | }, 469 | "diff": { 470 | "version": "3.5.0", 471 | "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", 472 | "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", 473 | "dev": true 474 | }, 475 | "duplexer": { 476 | "version": "0.1.1", 477 | "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", 478 | "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=", 479 | "dev": true 480 | }, 481 | "duplexer2": { 482 | "version": "0.0.2", 483 | "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz", 484 | "integrity": "sha1-xhTc9n4vsUmVqRcR5aYX6KYKMds=", 485 | "dev": true, 486 | "requires": { 487 | "readable-stream": "~1.1.9" 488 | }, 489 | "dependencies": { 490 | "isarray": { 491 | "version": "0.0.1", 492 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", 493 | "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", 494 | "dev": true 495 | }, 496 | "readable-stream": { 497 | "version": "1.1.14", 498 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", 499 | "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", 500 | "dev": true, 501 | "requires": { 502 | "core-util-is": "~1.0.0", 503 | "inherits": "~2.0.1", 504 | "isarray": "0.0.1", 505 | "string_decoder": "~0.10.x" 506 | } 507 | }, 508 | "string_decoder": { 509 | "version": "0.10.31", 510 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", 511 | "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", 512 | "dev": true 513 | } 514 | } 515 | }, 516 | "duplexify": { 517 | "version": "3.5.4", 518 | "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.5.4.tgz", 519 | "integrity": "sha512-JzYSLYMhoVVBe8+mbHQ4KgpvHpm0DZpJuL8PY93Vyv1fW7jYJ90LoXa1di/CVbJM+TgMs91rbDapE/RNIfnJsA==", 520 | "dev": true, 521 | "requires": { 522 | "end-of-stream": "^1.0.0", 523 | "inherits": "^2.0.1", 524 | "readable-stream": "^2.0.0", 525 | "stream-shift": "^1.0.0" 526 | } 527 | }, 528 | "ecc-jsbn": { 529 | "version": "0.1.1", 530 | "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", 531 | "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", 532 | "dev": true, 533 | "optional": true, 534 | "requires": { 535 | "jsbn": "~0.1.0" 536 | } 537 | }, 538 | "end-of-stream": { 539 | "version": "1.4.1", 540 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", 541 | "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", 542 | "dev": true, 543 | "requires": { 544 | "once": "^1.4.0" 545 | } 546 | }, 547 | "escape-string-regexp": { 548 | "version": "1.0.5", 549 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 550 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", 551 | "dev": true 552 | }, 553 | "esprima": { 554 | "version": "4.0.0", 555 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.0.tgz", 556 | "integrity": "sha512-oftTcaMu/EGrEIu904mWteKIv8vMuOgGYo7EhVJJN00R/EED9DCua/xxHRdYnKtcECzVg7xOWhflvJMnqcFZjw==", 557 | "dev": true 558 | }, 559 | "esutils": { 560 | "version": "2.0.2", 561 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", 562 | "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", 563 | "dev": true 564 | }, 565 | "event-stream": { 566 | "version": "3.3.4", 567 | "resolved": "http://registry.npmjs.org/event-stream/-/event-stream-3.3.4.tgz", 568 | "integrity": "sha1-SrTJoPWlTbkzi0w02Gv86PSzVXE=", 569 | "dev": true, 570 | "requires": { 571 | "duplexer": "~0.1.1", 572 | "from": "~0", 573 | "map-stream": "~0.1.0", 574 | "pause-stream": "0.0.11", 575 | "split": "0.3", 576 | "stream-combiner": "~0.0.4", 577 | "through": "~2.3.1" 578 | } 579 | }, 580 | "expand-brackets": { 581 | "version": "0.1.5", 582 | "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", 583 | "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", 584 | "dev": true, 585 | "requires": { 586 | "is-posix-bracket": "^0.1.0" 587 | } 588 | }, 589 | "expand-range": { 590 | "version": "1.8.2", 591 | "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", 592 | "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", 593 | "dev": true, 594 | "requires": { 595 | "fill-range": "^2.1.0" 596 | } 597 | }, 598 | "extend": { 599 | "version": "3.0.1", 600 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz", 601 | "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=", 602 | "dev": true 603 | }, 604 | "extend-shallow": { 605 | "version": "1.1.4", 606 | "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-1.1.4.tgz", 607 | "integrity": "sha1-Gda/lN/AnXa6cR85uHLSH/TdkHE=", 608 | "dev": true, 609 | "requires": { 610 | "kind-of": "^1.1.0" 611 | } 612 | }, 613 | "extglob": { 614 | "version": "0.3.2", 615 | "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", 616 | "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", 617 | "dev": true, 618 | "requires": { 619 | "is-extglob": "^1.0.0" 620 | }, 621 | "dependencies": { 622 | "is-extglob": { 623 | "version": "1.0.0", 624 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", 625 | "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", 626 | "dev": true 627 | } 628 | } 629 | }, 630 | "extsprintf": { 631 | "version": "1.3.0", 632 | "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", 633 | "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", 634 | "dev": true 635 | }, 636 | "fancy-log": { 637 | "version": "1.3.2", 638 | "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.2.tgz", 639 | "integrity": "sha1-9BEl49hPLn2JpD0G2VjI94vha+E=", 640 | "dev": true, 641 | "requires": { 642 | "ansi-gray": "^0.1.1", 643 | "color-support": "^1.1.3", 644 | "time-stamp": "^1.0.0" 645 | } 646 | }, 647 | "fast-deep-equal": { 648 | "version": "1.1.0", 649 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", 650 | "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=", 651 | "dev": true 652 | }, 653 | "fast-json-stable-stringify": { 654 | "version": "2.0.0", 655 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", 656 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", 657 | "dev": true 658 | }, 659 | "fd-slicer": { 660 | "version": "1.0.1", 661 | "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz", 662 | "integrity": "sha1-i1vL2ewyfFBBv5qwI/1nUPEXfmU=", 663 | "dev": true, 664 | "requires": { 665 | "pend": "~1.2.0" 666 | } 667 | }, 668 | "filename-regex": { 669 | "version": "2.0.1", 670 | "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz", 671 | "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=", 672 | "dev": true 673 | }, 674 | "fill-range": { 675 | "version": "2.2.3", 676 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.3.tgz", 677 | "integrity": "sha1-ULd9/X5Gm8dJJHCWNpn+eoSFpyM=", 678 | "dev": true, 679 | "requires": { 680 | "is-number": "^2.1.0", 681 | "isobject": "^2.0.0", 682 | "randomatic": "^1.1.3", 683 | "repeat-element": "^1.1.2", 684 | "repeat-string": "^1.5.2" 685 | } 686 | }, 687 | "first-chunk-stream": { 688 | "version": "1.0.0", 689 | "resolved": "https://registry.npmjs.org/first-chunk-stream/-/first-chunk-stream-1.0.0.tgz", 690 | "integrity": "sha1-Wb+1DNkF9g18OUzT2ayqtOatk04=", 691 | "dev": true 692 | }, 693 | "for-in": { 694 | "version": "1.0.2", 695 | "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", 696 | "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", 697 | "dev": true 698 | }, 699 | "for-own": { 700 | "version": "0.1.5", 701 | "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.5.tgz", 702 | "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", 703 | "dev": true, 704 | "requires": { 705 | "for-in": "^1.0.1" 706 | } 707 | }, 708 | "forever-agent": { 709 | "version": "0.6.1", 710 | "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", 711 | "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", 712 | "dev": true 713 | }, 714 | "form-data": { 715 | "version": "2.1.4", 716 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz", 717 | "integrity": "sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE=", 718 | "dev": true, 719 | "requires": { 720 | "asynckit": "^0.4.0", 721 | "combined-stream": "^1.0.5", 722 | "mime-types": "^2.1.12" 723 | } 724 | }, 725 | "from": { 726 | "version": "0.1.7", 727 | "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", 728 | "integrity": "sha1-g8YK/Fi5xWmXAH7Rp2izqzA6RP4=", 729 | "dev": true 730 | }, 731 | "fs.realpath": { 732 | "version": "1.0.0", 733 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 734 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 735 | "dev": true 736 | }, 737 | "fstream": { 738 | "version": "1.0.11", 739 | "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz", 740 | "integrity": "sha1-XB+x8RdHcRTwYyoOtLcbPLD9MXE=", 741 | "dev": true, 742 | "requires": { 743 | "graceful-fs": "^4.1.2", 744 | "inherits": "~2.0.0", 745 | "mkdirp": ">=0.5 0", 746 | "rimraf": "2" 747 | } 748 | }, 749 | "generate-function": { 750 | "version": "2.0.0", 751 | "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.0.0.tgz", 752 | "integrity": "sha1-aFj+fAlpt9TpCTM3ZHrHn2DfvnQ=", 753 | "dev": true 754 | }, 755 | "generate-object-property": { 756 | "version": "1.2.0", 757 | "resolved": "https://registry.npmjs.org/generate-object-property/-/generate-object-property-1.2.0.tgz", 758 | "integrity": "sha1-nA4cQDCM6AT0eDYYuTf6iPmdUNA=", 759 | "dev": true, 760 | "requires": { 761 | "is-property": "^1.0.0" 762 | } 763 | }, 764 | "getpass": { 765 | "version": "0.1.7", 766 | "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", 767 | "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", 768 | "dev": true, 769 | "requires": { 770 | "assert-plus": "^1.0.0" 771 | }, 772 | "dependencies": { 773 | "assert-plus": { 774 | "version": "1.0.0", 775 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 776 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", 777 | "dev": true 778 | } 779 | } 780 | }, 781 | "glob": { 782 | "version": "7.1.2", 783 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", 784 | "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", 785 | "dev": true, 786 | "requires": { 787 | "fs.realpath": "^1.0.0", 788 | "inflight": "^1.0.4", 789 | "inherits": "2", 790 | "minimatch": "^3.0.4", 791 | "once": "^1.3.0", 792 | "path-is-absolute": "^1.0.0" 793 | } 794 | }, 795 | "glob-base": { 796 | "version": "0.3.0", 797 | "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", 798 | "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", 799 | "dev": true, 800 | "requires": { 801 | "glob-parent": "^2.0.0", 802 | "is-glob": "^2.0.0" 803 | }, 804 | "dependencies": { 805 | "glob-parent": { 806 | "version": "2.0.0", 807 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", 808 | "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", 809 | "dev": true, 810 | "requires": { 811 | "is-glob": "^2.0.0" 812 | } 813 | }, 814 | "is-extglob": { 815 | "version": "1.0.0", 816 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", 817 | "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", 818 | "dev": true 819 | }, 820 | "is-glob": { 821 | "version": "2.0.1", 822 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", 823 | "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", 824 | "dev": true, 825 | "requires": { 826 | "is-extglob": "^1.0.0" 827 | } 828 | } 829 | } 830 | }, 831 | "glob-parent": { 832 | "version": "3.1.0", 833 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", 834 | "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", 835 | "dev": true, 836 | "requires": { 837 | "is-glob": "^3.1.0", 838 | "path-dirname": "^1.0.0" 839 | } 840 | }, 841 | "glob-stream": { 842 | "version": "5.3.5", 843 | "resolved": "https://registry.npmjs.org/glob-stream/-/glob-stream-5.3.5.tgz", 844 | "integrity": "sha1-pVZlqajM3EGRWofHAeMtTgFvrSI=", 845 | "dev": true, 846 | "requires": { 847 | "extend": "^3.0.0", 848 | "glob": "^5.0.3", 849 | "glob-parent": "^3.0.0", 850 | "micromatch": "^2.3.7", 851 | "ordered-read-streams": "^0.3.0", 852 | "through2": "^0.6.0", 853 | "to-absolute-glob": "^0.1.1", 854 | "unique-stream": "^2.0.2" 855 | }, 856 | "dependencies": { 857 | "glob": { 858 | "version": "5.0.15", 859 | "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", 860 | "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", 861 | "dev": true, 862 | "requires": { 863 | "inflight": "^1.0.4", 864 | "inherits": "2", 865 | "minimatch": "2 || 3", 866 | "once": "^1.3.0", 867 | "path-is-absolute": "^1.0.0" 868 | } 869 | }, 870 | "isarray": { 871 | "version": "0.0.1", 872 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", 873 | "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", 874 | "dev": true 875 | }, 876 | "readable-stream": { 877 | "version": "1.0.34", 878 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", 879 | "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", 880 | "dev": true, 881 | "requires": { 882 | "core-util-is": "~1.0.0", 883 | "inherits": "~2.0.1", 884 | "isarray": "0.0.1", 885 | "string_decoder": "~0.10.x" 886 | } 887 | }, 888 | "string_decoder": { 889 | "version": "0.10.31", 890 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", 891 | "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", 892 | "dev": true 893 | }, 894 | "through2": { 895 | "version": "0.6.5", 896 | "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", 897 | "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", 898 | "dev": true, 899 | "requires": { 900 | "readable-stream": ">=1.0.33-1 <1.1.0-0", 901 | "xtend": ">=4.0.0 <4.1.0-0" 902 | } 903 | } 904 | } 905 | }, 906 | "glogg": { 907 | "version": "1.0.1", 908 | "resolved": "https://registry.npmjs.org/glogg/-/glogg-1.0.1.tgz", 909 | "integrity": "sha512-ynYqXLoluBKf9XGR1gA59yEJisIL7YHEH4xr3ZziHB5/yl4qWfaK8Js9jGe6gBGCSCKVqiyO30WnRZADvemUNw==", 910 | "dev": true, 911 | "requires": { 912 | "sparkles": "^1.0.0" 913 | } 914 | }, 915 | "graceful-fs": { 916 | "version": "4.1.11", 917 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", 918 | "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", 919 | "dev": true 920 | }, 921 | "growl": { 922 | "version": "1.10.3", 923 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.3.tgz", 924 | "integrity": "sha512-hKlsbA5Vu3xsh1Cg3J7jSmX/WaW6A5oBeqzM88oNbCRQFz+zUaXm6yxS4RVytp1scBoJzSYl4YAEOQIt6O8V1Q==", 925 | "dev": true 926 | }, 927 | "gulp-chmod": { 928 | "version": "2.0.0", 929 | "resolved": "https://registry.npmjs.org/gulp-chmod/-/gulp-chmod-2.0.0.tgz", 930 | "integrity": "sha1-AMOQuSigeZslGsz2MaoJ4BzGKZw=", 931 | "dev": true, 932 | "requires": { 933 | "deep-assign": "^1.0.0", 934 | "stat-mode": "^0.2.0", 935 | "through2": "^2.0.0" 936 | } 937 | }, 938 | "gulp-filter": { 939 | "version": "5.1.0", 940 | "resolved": "https://registry.npmjs.org/gulp-filter/-/gulp-filter-5.1.0.tgz", 941 | "integrity": "sha1-oF4Rr/sHz33PQafeHLe2OsN4PnM=", 942 | "dev": true, 943 | "requires": { 944 | "multimatch": "^2.0.0", 945 | "plugin-error": "^0.1.2", 946 | "streamfilter": "^1.0.5" 947 | } 948 | }, 949 | "gulp-gunzip": { 950 | "version": "1.0.0", 951 | "resolved": "https://registry.npmjs.org/gulp-gunzip/-/gulp-gunzip-1.0.0.tgz", 952 | "integrity": "sha1-FbdBFF6Dqcb1CIYkG1fMWHHxUak=", 953 | "dev": true, 954 | "requires": { 955 | "through2": "~0.6.5", 956 | "vinyl": "~0.4.6" 957 | }, 958 | "dependencies": { 959 | "isarray": { 960 | "version": "0.0.1", 961 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", 962 | "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", 963 | "dev": true 964 | }, 965 | "readable-stream": { 966 | "version": "1.0.34", 967 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", 968 | "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", 969 | "dev": true, 970 | "requires": { 971 | "core-util-is": "~1.0.0", 972 | "inherits": "~2.0.1", 973 | "isarray": "0.0.1", 974 | "string_decoder": "~0.10.x" 975 | } 976 | }, 977 | "string_decoder": { 978 | "version": "0.10.31", 979 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", 980 | "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", 981 | "dev": true 982 | }, 983 | "through2": { 984 | "version": "0.6.5", 985 | "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", 986 | "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", 987 | "dev": true, 988 | "requires": { 989 | "readable-stream": ">=1.0.33-1 <1.1.0-0", 990 | "xtend": ">=4.0.0 <4.1.0-0" 991 | } 992 | } 993 | } 994 | }, 995 | "gulp-remote-src": { 996 | "version": "0.4.3", 997 | "resolved": "https://registry.npmjs.org/gulp-remote-src/-/gulp-remote-src-0.4.3.tgz", 998 | "integrity": "sha1-VyjP1kNDPdSEXd7wlp8PlxoqtKE=", 999 | "dev": true, 1000 | "requires": { 1001 | "event-stream": "~3.3.4", 1002 | "node.extend": "~1.1.2", 1003 | "request": "~2.79.0", 1004 | "through2": "~2.0.3", 1005 | "vinyl": "~2.0.1" 1006 | }, 1007 | "dependencies": { 1008 | "clone": { 1009 | "version": "1.0.4", 1010 | "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", 1011 | "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", 1012 | "dev": true 1013 | }, 1014 | "clone-stats": { 1015 | "version": "1.0.0", 1016 | "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", 1017 | "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=", 1018 | "dev": true 1019 | }, 1020 | "request": { 1021 | "version": "2.79.0", 1022 | "resolved": "https://registry.npmjs.org/request/-/request-2.79.0.tgz", 1023 | "integrity": "sha1-Tf5b9r6LjNw3/Pk+BLZVd3InEN4=", 1024 | "dev": true, 1025 | "requires": { 1026 | "aws-sign2": "~0.6.0", 1027 | "aws4": "^1.2.1", 1028 | "caseless": "~0.11.0", 1029 | "combined-stream": "~1.0.5", 1030 | "extend": "~3.0.0", 1031 | "forever-agent": "~0.6.1", 1032 | "form-data": "~2.1.1", 1033 | "har-validator": "~2.0.6", 1034 | "hawk": "~3.1.3", 1035 | "http-signature": "~1.1.0", 1036 | "is-typedarray": "~1.0.0", 1037 | "isstream": "~0.1.2", 1038 | "json-stringify-safe": "~5.0.1", 1039 | "mime-types": "~2.1.7", 1040 | "oauth-sign": "~0.8.1", 1041 | "qs": "~6.3.0", 1042 | "stringstream": "~0.0.4", 1043 | "tough-cookie": "~2.3.0", 1044 | "tunnel-agent": "~0.4.1", 1045 | "uuid": "^3.0.0" 1046 | } 1047 | }, 1048 | "vinyl": { 1049 | "version": "2.0.2", 1050 | "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.0.2.tgz", 1051 | "integrity": "sha1-CjcT2NTpIhxY8QyhbAEWyeJe2nw=", 1052 | "dev": true, 1053 | "requires": { 1054 | "clone": "^1.0.0", 1055 | "clone-buffer": "^1.0.0", 1056 | "clone-stats": "^1.0.0", 1057 | "cloneable-readable": "^1.0.0", 1058 | "is-stream": "^1.1.0", 1059 | "remove-trailing-separator": "^1.0.1", 1060 | "replace-ext": "^1.0.0" 1061 | } 1062 | } 1063 | } 1064 | }, 1065 | "gulp-sourcemaps": { 1066 | "version": "1.6.0", 1067 | "resolved": "https://registry.npmjs.org/gulp-sourcemaps/-/gulp-sourcemaps-1.6.0.tgz", 1068 | "integrity": "sha1-uG/zSdgBzrVuHZ59x7vLS33uYAw=", 1069 | "dev": true, 1070 | "requires": { 1071 | "convert-source-map": "^1.1.1", 1072 | "graceful-fs": "^4.1.2", 1073 | "strip-bom": "^2.0.0", 1074 | "through2": "^2.0.0", 1075 | "vinyl": "^1.0.0" 1076 | }, 1077 | "dependencies": { 1078 | "clone": { 1079 | "version": "1.0.4", 1080 | "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", 1081 | "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", 1082 | "dev": true 1083 | }, 1084 | "replace-ext": { 1085 | "version": "0.0.1", 1086 | "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-0.0.1.tgz", 1087 | "integrity": "sha1-KbvZIHinOfC8zitO5B6DeVNSKSQ=", 1088 | "dev": true 1089 | }, 1090 | "vinyl": { 1091 | "version": "1.2.0", 1092 | "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-1.2.0.tgz", 1093 | "integrity": "sha1-XIgDbPVl5d8FVYv8kR+GVt8hiIQ=", 1094 | "dev": true, 1095 | "requires": { 1096 | "clone": "^1.0.0", 1097 | "clone-stats": "^0.0.1", 1098 | "replace-ext": "0.0.1" 1099 | } 1100 | } 1101 | } 1102 | }, 1103 | "gulp-symdest": { 1104 | "version": "1.1.0", 1105 | "resolved": "https://registry.npmjs.org/gulp-symdest/-/gulp-symdest-1.1.0.tgz", 1106 | "integrity": "sha1-wWUyBzLRks5W/ZQnH/oSMjS/KuA=", 1107 | "dev": true, 1108 | "requires": { 1109 | "event-stream": "^3.3.1", 1110 | "mkdirp": "^0.5.1", 1111 | "queue": "^3.1.0", 1112 | "vinyl-fs": "^2.4.3" 1113 | } 1114 | }, 1115 | "gulp-untar": { 1116 | "version": "0.0.6", 1117 | "resolved": "https://registry.npmjs.org/gulp-untar/-/gulp-untar-0.0.6.tgz", 1118 | "integrity": "sha1-1r3v3n6ajgVMnxYjhaB4LEvnQAA=", 1119 | "dev": true, 1120 | "requires": { 1121 | "event-stream": "~3.3.4", 1122 | "gulp-util": "~3.0.8", 1123 | "streamifier": "~0.1.1", 1124 | "tar": "^2.2.1", 1125 | "through2": "~2.0.3" 1126 | } 1127 | }, 1128 | "gulp-util": { 1129 | "version": "3.0.8", 1130 | "resolved": "https://registry.npmjs.org/gulp-util/-/gulp-util-3.0.8.tgz", 1131 | "integrity": "sha1-AFTh50RQLifATBh8PsxQXdVLu08=", 1132 | "dev": true, 1133 | "requires": { 1134 | "array-differ": "^1.0.0", 1135 | "array-uniq": "^1.0.2", 1136 | "beeper": "^1.0.0", 1137 | "chalk": "^1.0.0", 1138 | "dateformat": "^2.0.0", 1139 | "fancy-log": "^1.1.0", 1140 | "gulplog": "^1.0.0", 1141 | "has-gulplog": "^0.1.0", 1142 | "lodash._reescape": "^3.0.0", 1143 | "lodash._reevaluate": "^3.0.0", 1144 | "lodash._reinterpolate": "^3.0.0", 1145 | "lodash.template": "^3.0.0", 1146 | "minimist": "^1.1.0", 1147 | "multipipe": "^0.1.2", 1148 | "object-assign": "^3.0.0", 1149 | "replace-ext": "0.0.1", 1150 | "through2": "^2.0.0", 1151 | "vinyl": "^0.5.0" 1152 | }, 1153 | "dependencies": { 1154 | "chalk": { 1155 | "version": "1.1.3", 1156 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", 1157 | "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", 1158 | "dev": true, 1159 | "requires": { 1160 | "ansi-styles": "^2.2.1", 1161 | "escape-string-regexp": "^1.0.2", 1162 | "has-ansi": "^2.0.0", 1163 | "strip-ansi": "^3.0.0", 1164 | "supports-color": "^2.0.0" 1165 | } 1166 | }, 1167 | "clone": { 1168 | "version": "1.0.4", 1169 | "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", 1170 | "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", 1171 | "dev": true 1172 | }, 1173 | "minimist": { 1174 | "version": "1.2.0", 1175 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", 1176 | "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", 1177 | "dev": true 1178 | }, 1179 | "object-assign": { 1180 | "version": "3.0.0", 1181 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz", 1182 | "integrity": "sha1-m+3VygiXlJvKR+f/QIBi1Un1h/I=", 1183 | "dev": true 1184 | }, 1185 | "replace-ext": { 1186 | "version": "0.0.1", 1187 | "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-0.0.1.tgz", 1188 | "integrity": "sha1-KbvZIHinOfC8zitO5B6DeVNSKSQ=", 1189 | "dev": true 1190 | }, 1191 | "vinyl": { 1192 | "version": "0.5.3", 1193 | "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.5.3.tgz", 1194 | "integrity": "sha1-sEVbOPxeDPMNQyUTLkYZcMIJHN4=", 1195 | "dev": true, 1196 | "requires": { 1197 | "clone": "^1.0.0", 1198 | "clone-stats": "^0.0.1", 1199 | "replace-ext": "0.0.1" 1200 | } 1201 | } 1202 | } 1203 | }, 1204 | "gulp-vinyl-zip": { 1205 | "version": "2.1.0", 1206 | "resolved": "https://registry.npmjs.org/gulp-vinyl-zip/-/gulp-vinyl-zip-2.1.0.tgz", 1207 | "integrity": "sha1-JOQGhdwFtxSZlSRQmeBZAmO+ja0=", 1208 | "dev": true, 1209 | "requires": { 1210 | "event-stream": "^3.3.1", 1211 | "queue": "^4.2.1", 1212 | "through2": "^2.0.3", 1213 | "vinyl": "^2.0.2", 1214 | "vinyl-fs": "^2.0.0", 1215 | "yauzl": "^2.2.1", 1216 | "yazl": "^2.2.1" 1217 | }, 1218 | "dependencies": { 1219 | "clone": { 1220 | "version": "2.1.2", 1221 | "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", 1222 | "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=", 1223 | "dev": true 1224 | }, 1225 | "clone-stats": { 1226 | "version": "1.0.0", 1227 | "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", 1228 | "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=", 1229 | "dev": true 1230 | }, 1231 | "queue": { 1232 | "version": "4.4.2", 1233 | "resolved": "https://registry.npmjs.org/queue/-/queue-4.4.2.tgz", 1234 | "integrity": "sha512-fSMRXbwhMwipcDZ08enW2vl+YDmAmhcNcr43sCJL8DIg+CFOsoRLG23ctxA+fwNk1w55SePSiS7oqQQSgQoVJQ==", 1235 | "dev": true, 1236 | "requires": { 1237 | "inherits": "~2.0.0" 1238 | } 1239 | }, 1240 | "vinyl": { 1241 | "version": "2.1.0", 1242 | "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.1.0.tgz", 1243 | "integrity": "sha1-Ah+cLPlR1rk5lDyJ617lrdT9kkw=", 1244 | "dev": true, 1245 | "requires": { 1246 | "clone": "^2.1.1", 1247 | "clone-buffer": "^1.0.0", 1248 | "clone-stats": "^1.0.0", 1249 | "cloneable-readable": "^1.0.0", 1250 | "remove-trailing-separator": "^1.0.1", 1251 | "replace-ext": "^1.0.0" 1252 | } 1253 | } 1254 | } 1255 | }, 1256 | "gulplog": { 1257 | "version": "1.0.0", 1258 | "resolved": "https://registry.npmjs.org/gulplog/-/gulplog-1.0.0.tgz", 1259 | "integrity": "sha1-4oxNRdBey77YGDY86PnFkmIp/+U=", 1260 | "dev": true, 1261 | "requires": { 1262 | "glogg": "^1.0.0" 1263 | } 1264 | }, 1265 | "har-schema": { 1266 | "version": "2.0.0", 1267 | "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", 1268 | "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", 1269 | "dev": true 1270 | }, 1271 | "har-validator": { 1272 | "version": "2.0.6", 1273 | "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-2.0.6.tgz", 1274 | "integrity": "sha1-zcvAgYgmWtEZtqWnyKtw7s+10n0=", 1275 | "dev": true, 1276 | "requires": { 1277 | "chalk": "^1.1.1", 1278 | "commander": "^2.9.0", 1279 | "is-my-json-valid": "^2.12.4", 1280 | "pinkie-promise": "^2.0.0" 1281 | }, 1282 | "dependencies": { 1283 | "chalk": { 1284 | "version": "1.1.3", 1285 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", 1286 | "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", 1287 | "dev": true, 1288 | "requires": { 1289 | "ansi-styles": "^2.2.1", 1290 | "escape-string-regexp": "^1.0.2", 1291 | "has-ansi": "^2.0.0", 1292 | "strip-ansi": "^3.0.0", 1293 | "supports-color": "^2.0.0" 1294 | } 1295 | } 1296 | } 1297 | }, 1298 | "has-ansi": { 1299 | "version": "2.0.0", 1300 | "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", 1301 | "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", 1302 | "dev": true, 1303 | "requires": { 1304 | "ansi-regex": "^2.0.0" 1305 | } 1306 | }, 1307 | "has-flag": { 1308 | "version": "3.0.0", 1309 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 1310 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", 1311 | "dev": true 1312 | }, 1313 | "has-gulplog": { 1314 | "version": "0.1.0", 1315 | "resolved": "https://registry.npmjs.org/has-gulplog/-/has-gulplog-0.1.0.tgz", 1316 | "integrity": "sha1-ZBTIKRNpfaUVkDl9r7EvIpZ4Ec4=", 1317 | "dev": true, 1318 | "requires": { 1319 | "sparkles": "^1.0.0" 1320 | } 1321 | }, 1322 | "hawk": { 1323 | "version": "3.1.3", 1324 | "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz", 1325 | "integrity": "sha1-B4REvXwWQLD+VA0sm3PVlnjo4cQ=", 1326 | "dev": true, 1327 | "requires": { 1328 | "boom": "2.x.x", 1329 | "cryptiles": "2.x.x", 1330 | "hoek": "2.x.x", 1331 | "sntp": "1.x.x" 1332 | } 1333 | }, 1334 | "he": { 1335 | "version": "1.1.1", 1336 | "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", 1337 | "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", 1338 | "dev": true 1339 | }, 1340 | "hoek": { 1341 | "version": "2.16.3", 1342 | "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz", 1343 | "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=", 1344 | "dev": true 1345 | }, 1346 | "http-signature": { 1347 | "version": "1.1.1", 1348 | "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz", 1349 | "integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=", 1350 | "dev": true, 1351 | "requires": { 1352 | "assert-plus": "^0.2.0", 1353 | "jsprim": "^1.2.2", 1354 | "sshpk": "^1.7.0" 1355 | } 1356 | }, 1357 | "inflight": { 1358 | "version": "1.0.6", 1359 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1360 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 1361 | "dev": true, 1362 | "requires": { 1363 | "once": "^1.3.0", 1364 | "wrappy": "1" 1365 | } 1366 | }, 1367 | "inherits": { 1368 | "version": "2.0.3", 1369 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 1370 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", 1371 | "dev": true 1372 | }, 1373 | "is": { 1374 | "version": "3.2.1", 1375 | "resolved": "https://registry.npmjs.org/is/-/is-3.2.1.tgz", 1376 | "integrity": "sha1-0Kwq1V63sL7JJqUmb2xmKqqD3KU=", 1377 | "dev": true 1378 | }, 1379 | "is-buffer": { 1380 | "version": "1.1.6", 1381 | "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", 1382 | "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", 1383 | "dev": true 1384 | }, 1385 | "is-dotfile": { 1386 | "version": "1.0.3", 1387 | "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz", 1388 | "integrity": "sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=", 1389 | "dev": true 1390 | }, 1391 | "is-equal-shallow": { 1392 | "version": "0.1.3", 1393 | "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz", 1394 | "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", 1395 | "dev": true, 1396 | "requires": { 1397 | "is-primitive": "^2.0.0" 1398 | } 1399 | }, 1400 | "is-extendable": { 1401 | "version": "0.1.1", 1402 | "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", 1403 | "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", 1404 | "dev": true 1405 | }, 1406 | "is-extglob": { 1407 | "version": "2.1.1", 1408 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1409 | "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", 1410 | "dev": true 1411 | }, 1412 | "is-glob": { 1413 | "version": "3.1.0", 1414 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", 1415 | "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", 1416 | "dev": true, 1417 | "requires": { 1418 | "is-extglob": "^2.1.0" 1419 | } 1420 | }, 1421 | "is-my-ip-valid": { 1422 | "version": "1.0.0", 1423 | "resolved": "https://registry.npmjs.org/is-my-ip-valid/-/is-my-ip-valid-1.0.0.tgz", 1424 | "integrity": "sha512-gmh/eWXROncUzRnIa1Ubrt5b8ep/MGSnfAUI3aRp+sqTCs1tv1Isl8d8F6JmkN3dXKc3ehZMrtiPN9eL03NuaQ==", 1425 | "dev": true 1426 | }, 1427 | "is-my-json-valid": { 1428 | "version": "2.17.2", 1429 | "resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.17.2.tgz", 1430 | "integrity": "sha512-IBhBslgngMQN8DDSppmgDv7RNrlFotuuDsKcrCP3+HbFaVivIBU7u9oiiErw8sH4ynx3+gOGQ3q2otkgiSi6kg==", 1431 | "dev": true, 1432 | "requires": { 1433 | "generate-function": "^2.0.0", 1434 | "generate-object-property": "^1.1.0", 1435 | "is-my-ip-valid": "^1.0.0", 1436 | "jsonpointer": "^4.0.0", 1437 | "xtend": "^4.0.0" 1438 | } 1439 | }, 1440 | "is-number": { 1441 | "version": "2.1.0", 1442 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", 1443 | "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", 1444 | "dev": true, 1445 | "requires": { 1446 | "kind-of": "^3.0.2" 1447 | }, 1448 | "dependencies": { 1449 | "kind-of": { 1450 | "version": "3.2.2", 1451 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", 1452 | "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", 1453 | "dev": true, 1454 | "requires": { 1455 | "is-buffer": "^1.1.5" 1456 | } 1457 | } 1458 | } 1459 | }, 1460 | "is-obj": { 1461 | "version": "1.0.1", 1462 | "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", 1463 | "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", 1464 | "dev": true 1465 | }, 1466 | "is-posix-bracket": { 1467 | "version": "0.1.1", 1468 | "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz", 1469 | "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=", 1470 | "dev": true 1471 | }, 1472 | "is-primitive": { 1473 | "version": "2.0.0", 1474 | "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz", 1475 | "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", 1476 | "dev": true 1477 | }, 1478 | "is-property": { 1479 | "version": "1.0.2", 1480 | "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz", 1481 | "integrity": "sha1-V/4cTkhHTt1lsJkR8msc1Ald2oQ=", 1482 | "dev": true 1483 | }, 1484 | "is-stream": { 1485 | "version": "1.1.0", 1486 | "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", 1487 | "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", 1488 | "dev": true 1489 | }, 1490 | "is-typedarray": { 1491 | "version": "1.0.0", 1492 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", 1493 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", 1494 | "dev": true 1495 | }, 1496 | "is-utf8": { 1497 | "version": "0.2.1", 1498 | "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", 1499 | "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", 1500 | "dev": true 1501 | }, 1502 | "is-valid-glob": { 1503 | "version": "0.3.0", 1504 | "resolved": "https://registry.npmjs.org/is-valid-glob/-/is-valid-glob-0.3.0.tgz", 1505 | "integrity": "sha1-1LVcafUYhvm2XHDWwmItN+KfSP4=", 1506 | "dev": true 1507 | }, 1508 | "isarray": { 1509 | "version": "1.0.0", 1510 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 1511 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", 1512 | "dev": true 1513 | }, 1514 | "isobject": { 1515 | "version": "2.1.0", 1516 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", 1517 | "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", 1518 | "dev": true, 1519 | "requires": { 1520 | "isarray": "1.0.0" 1521 | } 1522 | }, 1523 | "isstream": { 1524 | "version": "0.1.2", 1525 | "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", 1526 | "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", 1527 | "dev": true 1528 | }, 1529 | "js-tokens": { 1530 | "version": "3.0.2", 1531 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", 1532 | "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", 1533 | "dev": true 1534 | }, 1535 | "js-yaml": { 1536 | "version": "3.11.0", 1537 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.11.0.tgz", 1538 | "integrity": "sha512-saJstZWv7oNeOyBh3+Dx1qWzhW0+e6/8eDzo7p5rDFqxntSztloLtuKu+Ejhtq82jsilwOIZYsCz+lIjthg1Hw==", 1539 | "dev": true, 1540 | "requires": { 1541 | "argparse": "^1.0.7", 1542 | "esprima": "^4.0.0" 1543 | } 1544 | }, 1545 | "jsbn": { 1546 | "version": "0.1.1", 1547 | "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", 1548 | "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", 1549 | "dev": true, 1550 | "optional": true 1551 | }, 1552 | "json-schema": { 1553 | "version": "0.2.3", 1554 | "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", 1555 | "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", 1556 | "dev": true 1557 | }, 1558 | "json-schema-traverse": { 1559 | "version": "0.3.1", 1560 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", 1561 | "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=", 1562 | "dev": true 1563 | }, 1564 | "json-stable-stringify": { 1565 | "version": "1.0.1", 1566 | "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", 1567 | "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", 1568 | "dev": true, 1569 | "requires": { 1570 | "jsonify": "~0.0.0" 1571 | } 1572 | }, 1573 | "json-stringify-safe": { 1574 | "version": "5.0.1", 1575 | "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", 1576 | "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", 1577 | "dev": true 1578 | }, 1579 | "jsonify": { 1580 | "version": "0.0.0", 1581 | "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", 1582 | "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", 1583 | "dev": true 1584 | }, 1585 | "jsonpointer": { 1586 | "version": "4.0.1", 1587 | "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.0.1.tgz", 1588 | "integrity": "sha1-T9kss04OnbPInIYi7PUfm5eMbLk=", 1589 | "dev": true 1590 | }, 1591 | "jsprim": { 1592 | "version": "1.4.1", 1593 | "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", 1594 | "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", 1595 | "dev": true, 1596 | "requires": { 1597 | "assert-plus": "1.0.0", 1598 | "extsprintf": "1.3.0", 1599 | "json-schema": "0.2.3", 1600 | "verror": "1.10.0" 1601 | }, 1602 | "dependencies": { 1603 | "assert-plus": { 1604 | "version": "1.0.0", 1605 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 1606 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", 1607 | "dev": true 1608 | } 1609 | } 1610 | }, 1611 | "kind-of": { 1612 | "version": "1.1.0", 1613 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-1.1.0.tgz", 1614 | "integrity": "sha1-FAo9LUGjbS78+pN3tiwk+ElaXEQ=", 1615 | "dev": true 1616 | }, 1617 | "lazystream": { 1618 | "version": "1.0.0", 1619 | "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.0.tgz", 1620 | "integrity": "sha1-9plf4PggOS9hOWvolGJAe7dxaOQ=", 1621 | "dev": true, 1622 | "requires": { 1623 | "readable-stream": "^2.0.5" 1624 | } 1625 | }, 1626 | "lodash": { 1627 | "version": "4.17.19", 1628 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz", 1629 | "integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==" 1630 | }, 1631 | "lodash._basecopy": { 1632 | "version": "3.0.1", 1633 | "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", 1634 | "integrity": "sha1-jaDmqHbPNEwK2KVIghEd08XHyjY=", 1635 | "dev": true 1636 | }, 1637 | "lodash._basetostring": { 1638 | "version": "3.0.1", 1639 | "resolved": "https://registry.npmjs.org/lodash._basetostring/-/lodash._basetostring-3.0.1.tgz", 1640 | "integrity": "sha1-0YYdh3+CSlL2aYMtyvPuFVZqB9U=", 1641 | "dev": true 1642 | }, 1643 | "lodash._basevalues": { 1644 | "version": "3.0.0", 1645 | "resolved": "https://registry.npmjs.org/lodash._basevalues/-/lodash._basevalues-3.0.0.tgz", 1646 | "integrity": "sha1-W3dXYoAr3j0yl1A+JjAIIP32Ybc=", 1647 | "dev": true 1648 | }, 1649 | "lodash._getnative": { 1650 | "version": "3.9.1", 1651 | "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", 1652 | "integrity": "sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=", 1653 | "dev": true 1654 | }, 1655 | "lodash._isiterateecall": { 1656 | "version": "3.0.9", 1657 | "resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz", 1658 | "integrity": "sha1-UgOte6Ql+uhCRg5pbbnPPmqsBXw=", 1659 | "dev": true 1660 | }, 1661 | "lodash._reescape": { 1662 | "version": "3.0.0", 1663 | "resolved": "https://registry.npmjs.org/lodash._reescape/-/lodash._reescape-3.0.0.tgz", 1664 | "integrity": "sha1-Kx1vXf4HyKNVdT5fJ/rH8c3hYWo=", 1665 | "dev": true 1666 | }, 1667 | "lodash._reevaluate": { 1668 | "version": "3.0.0", 1669 | "resolved": "https://registry.npmjs.org/lodash._reevaluate/-/lodash._reevaluate-3.0.0.tgz", 1670 | "integrity": "sha1-WLx0xAZklTrgsSTYBpltrKQx4u0=", 1671 | "dev": true 1672 | }, 1673 | "lodash._reinterpolate": { 1674 | "version": "3.0.0", 1675 | "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", 1676 | "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=", 1677 | "dev": true 1678 | }, 1679 | "lodash._root": { 1680 | "version": "3.0.1", 1681 | "resolved": "https://registry.npmjs.org/lodash._root/-/lodash._root-3.0.1.tgz", 1682 | "integrity": "sha1-+6HEUkwZ7ppfgTa0YJ8BfPTe1pI=", 1683 | "dev": true 1684 | }, 1685 | "lodash.escape": { 1686 | "version": "3.2.0", 1687 | "resolved": "https://registry.npmjs.org/lodash.escape/-/lodash.escape-3.2.0.tgz", 1688 | "integrity": "sha1-mV7g3BjBtIzJLv+ucaEKq1tIdpg=", 1689 | "dev": true, 1690 | "requires": { 1691 | "lodash._root": "^3.0.0" 1692 | } 1693 | }, 1694 | "lodash.isarguments": { 1695 | "version": "3.1.0", 1696 | "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", 1697 | "integrity": "sha1-L1c9hcaiQon/AGY7SRwdM4/zRYo=", 1698 | "dev": true 1699 | }, 1700 | "lodash.isarray": { 1701 | "version": "3.0.4", 1702 | "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", 1703 | "integrity": "sha1-eeTriMNqgSKvhvhEqpvNhRtfu1U=", 1704 | "dev": true 1705 | }, 1706 | "lodash.isequal": { 1707 | "version": "4.5.0", 1708 | "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", 1709 | "integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA=", 1710 | "dev": true 1711 | }, 1712 | "lodash.keys": { 1713 | "version": "3.1.2", 1714 | "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", 1715 | "integrity": "sha1-TbwEcrFWvlCgsoaFXRvQsMZWCYo=", 1716 | "dev": true, 1717 | "requires": { 1718 | "lodash._getnative": "^3.0.0", 1719 | "lodash.isarguments": "^3.0.0", 1720 | "lodash.isarray": "^3.0.0" 1721 | } 1722 | }, 1723 | "lodash.restparam": { 1724 | "version": "3.6.1", 1725 | "resolved": "https://registry.npmjs.org/lodash.restparam/-/lodash.restparam-3.6.1.tgz", 1726 | "integrity": "sha1-k2pOMJ7zMKdkXtQUWYbIWuWyCAU=", 1727 | "dev": true 1728 | }, 1729 | "lodash.template": { 1730 | "version": "3.6.2", 1731 | "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-3.6.2.tgz", 1732 | "integrity": "sha1-+M3sxhaaJVvpCYrosMU9N4kx0U8=", 1733 | "dev": true, 1734 | "requires": { 1735 | "lodash._basecopy": "^3.0.0", 1736 | "lodash._basetostring": "^3.0.0", 1737 | "lodash._basevalues": "^3.0.0", 1738 | "lodash._isiterateecall": "^3.0.0", 1739 | "lodash._reinterpolate": "^3.0.0", 1740 | "lodash.escape": "^3.0.0", 1741 | "lodash.keys": "^3.0.0", 1742 | "lodash.restparam": "^3.0.0", 1743 | "lodash.templatesettings": "^3.0.0" 1744 | } 1745 | }, 1746 | "lodash.templatesettings": { 1747 | "version": "3.1.1", 1748 | "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-3.1.1.tgz", 1749 | "integrity": "sha1-+zB4RHU7Zrnxr6VOJix0UwfbqOU=", 1750 | "dev": true, 1751 | "requires": { 1752 | "lodash._reinterpolate": "^3.0.0", 1753 | "lodash.escape": "^3.0.0" 1754 | } 1755 | }, 1756 | "map-stream": { 1757 | "version": "0.1.0", 1758 | "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz", 1759 | "integrity": "sha1-5WqpTEyAVaFkBKBnS3jyFffI4ZQ=", 1760 | "dev": true 1761 | }, 1762 | "merge-stream": { 1763 | "version": "1.0.1", 1764 | "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-1.0.1.tgz", 1765 | "integrity": "sha1-QEEgLVCKNCugAXQAjfDCUbjBNeE=", 1766 | "dev": true, 1767 | "requires": { 1768 | "readable-stream": "^2.0.1" 1769 | } 1770 | }, 1771 | "micromatch": { 1772 | "version": "2.3.11", 1773 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", 1774 | "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", 1775 | "dev": true, 1776 | "requires": { 1777 | "arr-diff": "^2.0.0", 1778 | "array-unique": "^0.2.1", 1779 | "braces": "^1.8.2", 1780 | "expand-brackets": "^0.1.4", 1781 | "extglob": "^0.3.1", 1782 | "filename-regex": "^2.0.0", 1783 | "is-extglob": "^1.0.0", 1784 | "is-glob": "^2.0.1", 1785 | "kind-of": "^3.0.2", 1786 | "normalize-path": "^2.0.1", 1787 | "object.omit": "^2.0.0", 1788 | "parse-glob": "^3.0.4", 1789 | "regex-cache": "^0.4.2" 1790 | }, 1791 | "dependencies": { 1792 | "arr-diff": { 1793 | "version": "2.0.0", 1794 | "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", 1795 | "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", 1796 | "dev": true, 1797 | "requires": { 1798 | "arr-flatten": "^1.0.1" 1799 | } 1800 | }, 1801 | "is-extglob": { 1802 | "version": "1.0.0", 1803 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", 1804 | "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", 1805 | "dev": true 1806 | }, 1807 | "is-glob": { 1808 | "version": "2.0.1", 1809 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", 1810 | "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", 1811 | "dev": true, 1812 | "requires": { 1813 | "is-extglob": "^1.0.0" 1814 | } 1815 | }, 1816 | "kind-of": { 1817 | "version": "3.2.2", 1818 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", 1819 | "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", 1820 | "dev": true, 1821 | "requires": { 1822 | "is-buffer": "^1.1.5" 1823 | } 1824 | } 1825 | } 1826 | }, 1827 | "mime-db": { 1828 | "version": "1.33.0", 1829 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", 1830 | "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==", 1831 | "dev": true 1832 | }, 1833 | "mime-types": { 1834 | "version": "2.1.18", 1835 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", 1836 | "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", 1837 | "dev": true, 1838 | "requires": { 1839 | "mime-db": "~1.33.0" 1840 | } 1841 | }, 1842 | "minimatch": { 1843 | "version": "3.0.4", 1844 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 1845 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 1846 | "dev": true, 1847 | "requires": { 1848 | "brace-expansion": "^1.1.7" 1849 | } 1850 | }, 1851 | "minimist": { 1852 | "version": "0.0.8", 1853 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", 1854 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", 1855 | "dev": true 1856 | }, 1857 | "mkdirp": { 1858 | "version": "0.5.1", 1859 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", 1860 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", 1861 | "dev": true, 1862 | "requires": { 1863 | "minimist": "0.0.8" 1864 | } 1865 | }, 1866 | "mocha": { 1867 | "version": "4.1.0", 1868 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-4.1.0.tgz", 1869 | "integrity": "sha512-0RVnjg1HJsXY2YFDoTNzcc1NKhYuXKRrBAG2gDygmJJA136Cs2QlRliZG1mA0ap7cuaT30mw16luAeln+4RiNA==", 1870 | "dev": true, 1871 | "requires": { 1872 | "browser-stdout": "1.3.0", 1873 | "commander": "2.11.0", 1874 | "debug": "3.1.0", 1875 | "diff": "3.3.1", 1876 | "escape-string-regexp": "1.0.5", 1877 | "glob": "7.1.2", 1878 | "growl": "1.10.3", 1879 | "he": "1.1.1", 1880 | "mkdirp": "0.5.1", 1881 | "supports-color": "4.4.0" 1882 | }, 1883 | "dependencies": { 1884 | "commander": { 1885 | "version": "2.11.0", 1886 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz", 1887 | "integrity": "sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ==", 1888 | "dev": true 1889 | }, 1890 | "diff": { 1891 | "version": "3.3.1", 1892 | "resolved": "https://registry.npmjs.org/diff/-/diff-3.3.1.tgz", 1893 | "integrity": "sha512-MKPHZDMB0o6yHyDryUOScqZibp914ksXwAMYMTHj6KO8UeKsRYNJD3oNCKjTqZon+V488P7N/HzXF8t7ZR95ww==", 1894 | "dev": true 1895 | }, 1896 | "has-flag": { 1897 | "version": "2.0.0", 1898 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", 1899 | "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=", 1900 | "dev": true 1901 | }, 1902 | "supports-color": { 1903 | "version": "4.4.0", 1904 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.4.0.tgz", 1905 | "integrity": "sha512-rKC3+DyXWgK0ZLKwmRsrkyHVZAjNkfzeehuFWdGGcqGDTZFH73+RH6S/RDAAxl9GusSjZSUWYLmT9N5pzXFOXQ==", 1906 | "dev": true, 1907 | "requires": { 1908 | "has-flag": "^2.0.0" 1909 | } 1910 | } 1911 | } 1912 | }, 1913 | "ms": { 1914 | "version": "2.0.0", 1915 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1916 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", 1917 | "dev": true 1918 | }, 1919 | "multimatch": { 1920 | "version": "2.1.0", 1921 | "resolved": "https://registry.npmjs.org/multimatch/-/multimatch-2.1.0.tgz", 1922 | "integrity": "sha1-nHkGoi+0wCkZ4vX3UWG0zb1LKis=", 1923 | "dev": true, 1924 | "requires": { 1925 | "array-differ": "^1.0.0", 1926 | "array-union": "^1.0.1", 1927 | "arrify": "^1.0.0", 1928 | "minimatch": "^3.0.0" 1929 | } 1930 | }, 1931 | "multipipe": { 1932 | "version": "0.1.2", 1933 | "resolved": "https://registry.npmjs.org/multipipe/-/multipipe-0.1.2.tgz", 1934 | "integrity": "sha1-Ko8t33Du1WTf8tV/HhoTfZ8FB4s=", 1935 | "dev": true, 1936 | "requires": { 1937 | "duplexer2": "0.0.2" 1938 | } 1939 | }, 1940 | "node.extend": { 1941 | "version": "1.1.6", 1942 | "resolved": "https://registry.npmjs.org/node.extend/-/node.extend-1.1.6.tgz", 1943 | "integrity": "sha1-p7iCyC1sk6SGOlUEvV3o7IYli5Y=", 1944 | "dev": true, 1945 | "requires": { 1946 | "is": "^3.1.0" 1947 | } 1948 | }, 1949 | "normalize-path": { 1950 | "version": "2.1.1", 1951 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", 1952 | "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", 1953 | "dev": true, 1954 | "requires": { 1955 | "remove-trailing-separator": "^1.0.1" 1956 | } 1957 | }, 1958 | "oauth-sign": { 1959 | "version": "0.8.2", 1960 | "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", 1961 | "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=", 1962 | "dev": true 1963 | }, 1964 | "object-assign": { 1965 | "version": "4.1.1", 1966 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1967 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", 1968 | "dev": true 1969 | }, 1970 | "object.omit": { 1971 | "version": "2.0.1", 1972 | "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", 1973 | "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", 1974 | "dev": true, 1975 | "requires": { 1976 | "for-own": "^0.1.4", 1977 | "is-extendable": "^0.1.1" 1978 | } 1979 | }, 1980 | "once": { 1981 | "version": "1.4.0", 1982 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1983 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1984 | "dev": true, 1985 | "requires": { 1986 | "wrappy": "1" 1987 | } 1988 | }, 1989 | "ordered-read-streams": { 1990 | "version": "0.3.0", 1991 | "resolved": "https://registry.npmjs.org/ordered-read-streams/-/ordered-read-streams-0.3.0.tgz", 1992 | "integrity": "sha1-cTfmmzKYuzQiR6G77jiByA4v14s=", 1993 | "dev": true, 1994 | "requires": { 1995 | "is-stream": "^1.0.1", 1996 | "readable-stream": "^2.0.1" 1997 | } 1998 | }, 1999 | "parse-glob": { 2000 | "version": "3.0.4", 2001 | "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", 2002 | "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", 2003 | "dev": true, 2004 | "requires": { 2005 | "glob-base": "^0.3.0", 2006 | "is-dotfile": "^1.0.0", 2007 | "is-extglob": "^1.0.0", 2008 | "is-glob": "^2.0.0" 2009 | }, 2010 | "dependencies": { 2011 | "is-extglob": { 2012 | "version": "1.0.0", 2013 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", 2014 | "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", 2015 | "dev": true 2016 | }, 2017 | "is-glob": { 2018 | "version": "2.0.1", 2019 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", 2020 | "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", 2021 | "dev": true, 2022 | "requires": { 2023 | "is-extglob": "^1.0.0" 2024 | } 2025 | } 2026 | } 2027 | }, 2028 | "path-dirname": { 2029 | "version": "1.0.2", 2030 | "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", 2031 | "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", 2032 | "dev": true 2033 | }, 2034 | "path-is-absolute": { 2035 | "version": "1.0.1", 2036 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 2037 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 2038 | "dev": true 2039 | }, 2040 | "path-parse": { 2041 | "version": "1.0.5", 2042 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", 2043 | "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", 2044 | "dev": true 2045 | }, 2046 | "pause-stream": { 2047 | "version": "0.0.11", 2048 | "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", 2049 | "integrity": "sha1-/lo0sMvOErWqaitAPuLnO2AvFEU=", 2050 | "dev": true, 2051 | "requires": { 2052 | "through": "~2.3" 2053 | } 2054 | }, 2055 | "pend": { 2056 | "version": "1.2.0", 2057 | "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", 2058 | "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=", 2059 | "dev": true 2060 | }, 2061 | "performance-now": { 2062 | "version": "2.1.0", 2063 | "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", 2064 | "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", 2065 | "dev": true 2066 | }, 2067 | "pinkie": { 2068 | "version": "2.0.4", 2069 | "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", 2070 | "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", 2071 | "dev": true 2072 | }, 2073 | "pinkie-promise": { 2074 | "version": "2.0.1", 2075 | "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", 2076 | "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", 2077 | "dev": true, 2078 | "requires": { 2079 | "pinkie": "^2.0.0" 2080 | } 2081 | }, 2082 | "plugin-error": { 2083 | "version": "0.1.2", 2084 | "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-0.1.2.tgz", 2085 | "integrity": "sha1-O5uzM1zPAPQl4HQ34ZJ2ln2kes4=", 2086 | "dev": true, 2087 | "requires": { 2088 | "ansi-cyan": "^0.1.1", 2089 | "ansi-red": "^0.1.1", 2090 | "arr-diff": "^1.0.1", 2091 | "arr-union": "^2.0.1", 2092 | "extend-shallow": "^1.1.2" 2093 | } 2094 | }, 2095 | "preserve": { 2096 | "version": "0.2.0", 2097 | "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", 2098 | "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", 2099 | "dev": true 2100 | }, 2101 | "process-nextick-args": { 2102 | "version": "2.0.0", 2103 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", 2104 | "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", 2105 | "dev": true 2106 | }, 2107 | "punycode": { 2108 | "version": "1.4.1", 2109 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", 2110 | "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", 2111 | "dev": true 2112 | }, 2113 | "qs": { 2114 | "version": "6.3.2", 2115 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.3.2.tgz", 2116 | "integrity": "sha1-51vV9uJoEioqDgvaYwslUMFmUCw=", 2117 | "dev": true 2118 | }, 2119 | "querystringify": { 2120 | "version": "1.0.0", 2121 | "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-1.0.0.tgz", 2122 | "integrity": "sha1-YoYkIRLFtxL6ZU5SZlK/ahP/Bcs=", 2123 | "dev": true 2124 | }, 2125 | "queue": { 2126 | "version": "3.1.0", 2127 | "resolved": "https://registry.npmjs.org/queue/-/queue-3.1.0.tgz", 2128 | "integrity": "sha1-bEnQHwCeIlZ4h4nyv/rGuLmZBYU=", 2129 | "dev": true, 2130 | "requires": { 2131 | "inherits": "~2.0.0" 2132 | } 2133 | }, 2134 | "randomatic": { 2135 | "version": "1.1.7", 2136 | "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.7.tgz", 2137 | "integrity": "sha512-D5JUjPyJbaJDkuAazpVnSfVkLlpeO3wDlPROTMLGKG1zMFNFRgrciKo1ltz/AzNTkqE0HzDx655QOL51N06how==", 2138 | "dev": true, 2139 | "requires": { 2140 | "is-number": "^3.0.0", 2141 | "kind-of": "^4.0.0" 2142 | }, 2143 | "dependencies": { 2144 | "is-number": { 2145 | "version": "3.0.0", 2146 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", 2147 | "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", 2148 | "dev": true, 2149 | "requires": { 2150 | "kind-of": "^3.0.2" 2151 | }, 2152 | "dependencies": { 2153 | "kind-of": { 2154 | "version": "3.2.2", 2155 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", 2156 | "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", 2157 | "dev": true, 2158 | "requires": { 2159 | "is-buffer": "^1.1.5" 2160 | } 2161 | } 2162 | } 2163 | }, 2164 | "kind-of": { 2165 | "version": "4.0.0", 2166 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", 2167 | "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", 2168 | "dev": true, 2169 | "requires": { 2170 | "is-buffer": "^1.1.5" 2171 | } 2172 | } 2173 | } 2174 | }, 2175 | "readable-stream": { 2176 | "version": "2.3.5", 2177 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", 2178 | "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", 2179 | "dev": true, 2180 | "requires": { 2181 | "core-util-is": "~1.0.0", 2182 | "inherits": "~2.0.3", 2183 | "isarray": "~1.0.0", 2184 | "process-nextick-args": "~2.0.0", 2185 | "safe-buffer": "~5.1.1", 2186 | "string_decoder": "~1.0.3", 2187 | "util-deprecate": "~1.0.1" 2188 | } 2189 | }, 2190 | "regex-cache": { 2191 | "version": "0.4.4", 2192 | "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", 2193 | "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", 2194 | "dev": true, 2195 | "requires": { 2196 | "is-equal-shallow": "^0.1.3" 2197 | } 2198 | }, 2199 | "remove-trailing-separator": { 2200 | "version": "1.1.0", 2201 | "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", 2202 | "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", 2203 | "dev": true 2204 | }, 2205 | "repeat-element": { 2206 | "version": "1.1.2", 2207 | "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", 2208 | "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=", 2209 | "dev": true 2210 | }, 2211 | "repeat-string": { 2212 | "version": "1.6.1", 2213 | "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", 2214 | "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", 2215 | "dev": true 2216 | }, 2217 | "replace-ext": { 2218 | "version": "1.0.0", 2219 | "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", 2220 | "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", 2221 | "dev": true 2222 | }, 2223 | "request": { 2224 | "version": "2.85.0", 2225 | "resolved": "https://registry.npmjs.org/request/-/request-2.85.0.tgz", 2226 | "integrity": "sha512-8H7Ehijd4js+s6wuVPLjwORxD4zeuyjYugprdOXlPSqaApmL/QOy+EB/beICHVCHkGMKNh5rvihb5ov+IDw4mg==", 2227 | "dev": true, 2228 | "requires": { 2229 | "aws-sign2": "~0.7.0", 2230 | "aws4": "^1.6.0", 2231 | "caseless": "~0.12.0", 2232 | "combined-stream": "~1.0.5", 2233 | "extend": "~3.0.1", 2234 | "forever-agent": "~0.6.1", 2235 | "form-data": "~2.3.1", 2236 | "har-validator": "~5.0.3", 2237 | "hawk": "~6.0.2", 2238 | "http-signature": "~1.2.0", 2239 | "is-typedarray": "~1.0.0", 2240 | "isstream": "~0.1.2", 2241 | "json-stringify-safe": "~5.0.1", 2242 | "mime-types": "~2.1.17", 2243 | "oauth-sign": "~0.8.2", 2244 | "performance-now": "^2.1.0", 2245 | "qs": "~6.5.1", 2246 | "safe-buffer": "^5.1.1", 2247 | "stringstream": "~0.0.5", 2248 | "tough-cookie": "~2.3.3", 2249 | "tunnel-agent": "^0.6.0", 2250 | "uuid": "^3.1.0" 2251 | }, 2252 | "dependencies": { 2253 | "assert-plus": { 2254 | "version": "1.0.0", 2255 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 2256 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", 2257 | "dev": true 2258 | }, 2259 | "aws-sign2": { 2260 | "version": "0.7.0", 2261 | "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", 2262 | "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", 2263 | "dev": true 2264 | }, 2265 | "boom": { 2266 | "version": "4.3.1", 2267 | "resolved": "https://registry.npmjs.org/boom/-/boom-4.3.1.tgz", 2268 | "integrity": "sha1-T4owBctKfjiJ90kDD9JbluAdLjE=", 2269 | "dev": true, 2270 | "requires": { 2271 | "hoek": "4.x.x" 2272 | } 2273 | }, 2274 | "caseless": { 2275 | "version": "0.12.0", 2276 | "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", 2277 | "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", 2278 | "dev": true 2279 | }, 2280 | "cryptiles": { 2281 | "version": "3.1.2", 2282 | "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-3.1.2.tgz", 2283 | "integrity": "sha1-qJ+7Ig9c4l7FboxKqKT9e1sNKf4=", 2284 | "dev": true, 2285 | "requires": { 2286 | "boom": "5.x.x" 2287 | }, 2288 | "dependencies": { 2289 | "boom": { 2290 | "version": "5.2.0", 2291 | "resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz", 2292 | "integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==", 2293 | "dev": true, 2294 | "requires": { 2295 | "hoek": "4.x.x" 2296 | } 2297 | } 2298 | } 2299 | }, 2300 | "form-data": { 2301 | "version": "2.3.2", 2302 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz", 2303 | "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=", 2304 | "dev": true, 2305 | "requires": { 2306 | "asynckit": "^0.4.0", 2307 | "combined-stream": "1.0.6", 2308 | "mime-types": "^2.1.12" 2309 | } 2310 | }, 2311 | "har-validator": { 2312 | "version": "5.0.3", 2313 | "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz", 2314 | "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=", 2315 | "dev": true, 2316 | "requires": { 2317 | "ajv": "^5.1.0", 2318 | "har-schema": "^2.0.0" 2319 | } 2320 | }, 2321 | "hawk": { 2322 | "version": "6.0.2", 2323 | "resolved": "https://registry.npmjs.org/hawk/-/hawk-6.0.2.tgz", 2324 | "integrity": "sha512-miowhl2+U7Qle4vdLqDdPt9m09K6yZhkLDTWGoUiUzrQCn+mHHSmfJgAyGaLRZbPmTqfFFjRV1QWCW0VWUJBbQ==", 2325 | "dev": true, 2326 | "requires": { 2327 | "boom": "4.x.x", 2328 | "cryptiles": "3.x.x", 2329 | "hoek": "4.x.x", 2330 | "sntp": "2.x.x" 2331 | } 2332 | }, 2333 | "hoek": { 2334 | "version": "4.2.1", 2335 | "resolved": "https://registry.npmjs.org/hoek/-/hoek-4.2.1.tgz", 2336 | "integrity": "sha512-QLg82fGkfnJ/4iy1xZ81/9SIJiq1NGFUMGs6ParyjBZr6jW2Ufj/snDqTHixNlHdPNwN2RLVD0Pi3igeK9+JfA==", 2337 | "dev": true 2338 | }, 2339 | "http-signature": { 2340 | "version": "1.2.0", 2341 | "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", 2342 | "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", 2343 | "dev": true, 2344 | "requires": { 2345 | "assert-plus": "^1.0.0", 2346 | "jsprim": "^1.2.2", 2347 | "sshpk": "^1.7.0" 2348 | } 2349 | }, 2350 | "qs": { 2351 | "version": "6.5.1", 2352 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz", 2353 | "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==", 2354 | "dev": true 2355 | }, 2356 | "sntp": { 2357 | "version": "2.1.0", 2358 | "resolved": "https://registry.npmjs.org/sntp/-/sntp-2.1.0.tgz", 2359 | "integrity": "sha512-FL1b58BDrqS3A11lJ0zEdnJ3UOKqVxawAkF3k7F0CVN7VQ34aZrV+G8BZ1WC9ZL7NyrwsW0oviwsWDgRuVYtJg==", 2360 | "dev": true, 2361 | "requires": { 2362 | "hoek": "4.x.x" 2363 | } 2364 | }, 2365 | "tunnel-agent": { 2366 | "version": "0.6.0", 2367 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", 2368 | "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", 2369 | "dev": true, 2370 | "requires": { 2371 | "safe-buffer": "^5.0.1" 2372 | } 2373 | } 2374 | } 2375 | }, 2376 | "requires-port": { 2377 | "version": "1.0.0", 2378 | "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", 2379 | "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=", 2380 | "dev": true 2381 | }, 2382 | "resolve": { 2383 | "version": "1.6.0", 2384 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.6.0.tgz", 2385 | "integrity": "sha512-mw7JQNu5ExIkcw4LPih0owX/TZXjD/ZUF/ZQ/pDnkw3ZKhDcZZw5klmBlj6gVMwjQ3Pz5Jgu7F3d0jcDVuEWdw==", 2386 | "dev": true, 2387 | "requires": { 2388 | "path-parse": "^1.0.5" 2389 | } 2390 | }, 2391 | "rimraf": { 2392 | "version": "2.6.2", 2393 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", 2394 | "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", 2395 | "dev": true, 2396 | "requires": { 2397 | "glob": "^7.0.5" 2398 | } 2399 | }, 2400 | "safe-buffer": { 2401 | "version": "5.1.1", 2402 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", 2403 | "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==", 2404 | "dev": true 2405 | }, 2406 | "semver": { 2407 | "version": "5.5.0", 2408 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", 2409 | "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", 2410 | "dev": true 2411 | }, 2412 | "sntp": { 2413 | "version": "1.0.9", 2414 | "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", 2415 | "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=", 2416 | "dev": true, 2417 | "requires": { 2418 | "hoek": "2.x.x" 2419 | } 2420 | }, 2421 | "source-map": { 2422 | "version": "0.6.1", 2423 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 2424 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", 2425 | "dev": true 2426 | }, 2427 | "source-map-support": { 2428 | "version": "0.5.4", 2429 | "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.4.tgz", 2430 | "integrity": "sha512-PETSPG6BjY1AHs2t64vS2aqAgu6dMIMXJULWFBGbh2Gr8nVLbCFDo6i/RMMvviIQ2h1Z8+5gQhVKSn2je9nmdg==", 2431 | "dev": true, 2432 | "requires": { 2433 | "source-map": "^0.6.0" 2434 | } 2435 | }, 2436 | "sparkles": { 2437 | "version": "1.0.0", 2438 | "resolved": "https://registry.npmjs.org/sparkles/-/sparkles-1.0.0.tgz", 2439 | "integrity": "sha1-Gsu/tZJDbRC76PeFt8xvgoFQEsM=", 2440 | "dev": true 2441 | }, 2442 | "split": { 2443 | "version": "0.3.3", 2444 | "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", 2445 | "integrity": "sha1-zQ7qXmOiEd//frDwkcQTPi0N0o8=", 2446 | "dev": true, 2447 | "requires": { 2448 | "through": "2" 2449 | } 2450 | }, 2451 | "sprintf-js": { 2452 | "version": "1.0.3", 2453 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 2454 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", 2455 | "dev": true 2456 | }, 2457 | "sshpk": { 2458 | "version": "1.14.1", 2459 | "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.1.tgz", 2460 | "integrity": "sha1-Ew9Zde3a2WPx1W+SuaxsUfqfg+s=", 2461 | "dev": true, 2462 | "requires": { 2463 | "asn1": "~0.2.3", 2464 | "assert-plus": "^1.0.0", 2465 | "bcrypt-pbkdf": "^1.0.0", 2466 | "dashdash": "^1.12.0", 2467 | "ecc-jsbn": "~0.1.1", 2468 | "getpass": "^0.1.1", 2469 | "jsbn": "~0.1.0", 2470 | "tweetnacl": "~0.14.0" 2471 | }, 2472 | "dependencies": { 2473 | "assert-plus": { 2474 | "version": "1.0.0", 2475 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 2476 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", 2477 | "dev": true 2478 | } 2479 | } 2480 | }, 2481 | "stat-mode": { 2482 | "version": "0.2.2", 2483 | "resolved": "https://registry.npmjs.org/stat-mode/-/stat-mode-0.2.2.tgz", 2484 | "integrity": "sha1-5sgLYjEj19gM8TLOU480YokHJQI=", 2485 | "dev": true 2486 | }, 2487 | "stream-combiner": { 2488 | "version": "0.0.4", 2489 | "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz", 2490 | "integrity": "sha1-TV5DPBhSYd3mI8o/RMWGvPXErRQ=", 2491 | "dev": true, 2492 | "requires": { 2493 | "duplexer": "~0.1.1" 2494 | } 2495 | }, 2496 | "stream-shift": { 2497 | "version": "1.0.0", 2498 | "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", 2499 | "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", 2500 | "dev": true 2501 | }, 2502 | "streamfilter": { 2503 | "version": "1.0.7", 2504 | "resolved": "https://registry.npmjs.org/streamfilter/-/streamfilter-1.0.7.tgz", 2505 | "integrity": "sha512-Gk6KZM+yNA1JpW0KzlZIhjo3EaBJDkYfXtYSbOwNIQ7Zd6006E6+sCFlW1NDvFG/vnXhKmw6TJJgiEQg/8lXfQ==", 2506 | "dev": true, 2507 | "requires": { 2508 | "readable-stream": "^2.0.2" 2509 | } 2510 | }, 2511 | "streamifier": { 2512 | "version": "0.1.1", 2513 | "resolved": "https://registry.npmjs.org/streamifier/-/streamifier-0.1.1.tgz", 2514 | "integrity": "sha1-l+mNj6TRBdYqJpHR3AfoINuN/E8=", 2515 | "dev": true 2516 | }, 2517 | "string_decoder": { 2518 | "version": "1.0.3", 2519 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", 2520 | "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", 2521 | "dev": true, 2522 | "requires": { 2523 | "safe-buffer": "~5.1.0" 2524 | } 2525 | }, 2526 | "stringstream": { 2527 | "version": "0.0.5", 2528 | "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz", 2529 | "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=", 2530 | "dev": true 2531 | }, 2532 | "strip-ansi": { 2533 | "version": "3.0.1", 2534 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 2535 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", 2536 | "dev": true, 2537 | "requires": { 2538 | "ansi-regex": "^2.0.0" 2539 | } 2540 | }, 2541 | "strip-bom": { 2542 | "version": "2.0.0", 2543 | "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", 2544 | "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", 2545 | "dev": true, 2546 | "requires": { 2547 | "is-utf8": "^0.2.0" 2548 | } 2549 | }, 2550 | "strip-bom-stream": { 2551 | "version": "1.0.0", 2552 | "resolved": "https://registry.npmjs.org/strip-bom-stream/-/strip-bom-stream-1.0.0.tgz", 2553 | "integrity": "sha1-5xRDmFd9Uaa+0PoZlPoF9D/ZiO4=", 2554 | "dev": true, 2555 | "requires": { 2556 | "first-chunk-stream": "^1.0.0", 2557 | "strip-bom": "^2.0.0" 2558 | } 2559 | }, 2560 | "supports-color": { 2561 | "version": "2.0.0", 2562 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", 2563 | "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", 2564 | "dev": true 2565 | }, 2566 | "tar": { 2567 | "version": "2.2.1", 2568 | "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz", 2569 | "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=", 2570 | "dev": true, 2571 | "requires": { 2572 | "block-stream": "*", 2573 | "fstream": "^1.0.2", 2574 | "inherits": "2" 2575 | } 2576 | }, 2577 | "through": { 2578 | "version": "2.3.8", 2579 | "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", 2580 | "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", 2581 | "dev": true 2582 | }, 2583 | "through2": { 2584 | "version": "2.0.3", 2585 | "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.3.tgz", 2586 | "integrity": "sha1-AARWmzfHx0ujnEPzzteNGtlBQL4=", 2587 | "dev": true, 2588 | "requires": { 2589 | "readable-stream": "^2.1.5", 2590 | "xtend": "~4.0.1" 2591 | } 2592 | }, 2593 | "through2-filter": { 2594 | "version": "2.0.0", 2595 | "resolved": "https://registry.npmjs.org/through2-filter/-/through2-filter-2.0.0.tgz", 2596 | "integrity": "sha1-YLxVoNrLdghdsfna6Zq0P4PWIuw=", 2597 | "dev": true, 2598 | "requires": { 2599 | "through2": "~2.0.0", 2600 | "xtend": "~4.0.0" 2601 | } 2602 | }, 2603 | "time-stamp": { 2604 | "version": "1.1.0", 2605 | "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-1.1.0.tgz", 2606 | "integrity": "sha1-dkpaEa9QVhkhsTPztE5hhofg9cM=", 2607 | "dev": true 2608 | }, 2609 | "to-absolute-glob": { 2610 | "version": "0.1.1", 2611 | "resolved": "https://registry.npmjs.org/to-absolute-glob/-/to-absolute-glob-0.1.1.tgz", 2612 | "integrity": "sha1-HN+kcqnvUMI57maZm2YsoOs5k38=", 2613 | "dev": true, 2614 | "requires": { 2615 | "extend-shallow": "^2.0.1" 2616 | }, 2617 | "dependencies": { 2618 | "extend-shallow": { 2619 | "version": "2.0.1", 2620 | "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", 2621 | "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", 2622 | "dev": true, 2623 | "requires": { 2624 | "is-extendable": "^0.1.0" 2625 | } 2626 | } 2627 | } 2628 | }, 2629 | "tough-cookie": { 2630 | "version": "2.3.4", 2631 | "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz", 2632 | "integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==", 2633 | "dev": true, 2634 | "requires": { 2635 | "punycode": "^1.4.1" 2636 | } 2637 | }, 2638 | "tslib": { 2639 | "version": "1.9.0", 2640 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.0.tgz", 2641 | "integrity": "sha512-f/qGG2tUkrISBlQZEjEqoZ3B2+npJjIf04H1wuAv9iA8i04Icp+61KRXxFdha22670NJopsZCIjhC3SnjPRKrQ==", 2642 | "dev": true 2643 | }, 2644 | "tslint": { 2645 | "version": "5.9.1", 2646 | "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.9.1.tgz", 2647 | "integrity": "sha1-ElX4ej/1frCw4fDmEKi0dIBGya4=", 2648 | "dev": true, 2649 | "requires": { 2650 | "babel-code-frame": "^6.22.0", 2651 | "builtin-modules": "^1.1.1", 2652 | "chalk": "^2.3.0", 2653 | "commander": "^2.12.1", 2654 | "diff": "^3.2.0", 2655 | "glob": "^7.1.1", 2656 | "js-yaml": "^3.7.0", 2657 | "minimatch": "^3.0.4", 2658 | "resolve": "^1.3.2", 2659 | "semver": "^5.3.0", 2660 | "tslib": "^1.8.0", 2661 | "tsutils": "^2.12.1" 2662 | } 2663 | }, 2664 | "tsutils": { 2665 | "version": "2.22.2", 2666 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.22.2.tgz", 2667 | "integrity": "sha512-u06FUSulCJ+Y8a2ftuqZN6kIGqdP2yJjUPEngXqmdPND4UQfb04igcotH+dw+IFr417yP6muCLE8/5/Qlfnx0w==", 2668 | "dev": true, 2669 | "requires": { 2670 | "tslib": "^1.8.1" 2671 | } 2672 | }, 2673 | "tunnel-agent": { 2674 | "version": "0.4.3", 2675 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.3.tgz", 2676 | "integrity": "sha1-Y3PbdpCf5XDgjXNYM2Xtgop07us=", 2677 | "dev": true 2678 | }, 2679 | "tweetnacl": { 2680 | "version": "0.14.5", 2681 | "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", 2682 | "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", 2683 | "dev": true, 2684 | "optional": true 2685 | }, 2686 | "typescript": { 2687 | "version": "2.7.2", 2688 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.7.2.tgz", 2689 | "integrity": "sha512-p5TCYZDAO0m4G344hD+wx/LATebLWZNkkh2asWUFqSsD2OrDNhbAHuSjobrmsUmdzjJjEeZVU9g1h3O6vpstnw==", 2690 | "dev": true 2691 | }, 2692 | "unique-stream": { 2693 | "version": "2.2.1", 2694 | "resolved": "https://registry.npmjs.org/unique-stream/-/unique-stream-2.2.1.tgz", 2695 | "integrity": "sha1-WqADz76Uxf+GbE59ZouxxNuts2k=", 2696 | "dev": true, 2697 | "requires": { 2698 | "json-stable-stringify": "^1.0.0", 2699 | "through2-filter": "^2.0.0" 2700 | } 2701 | }, 2702 | "url-parse": { 2703 | "version": "1.2.0", 2704 | "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.2.0.tgz", 2705 | "integrity": "sha512-DT1XbYAfmQP65M/mE6OALxmXzZ/z1+e5zk2TcSKe/KiYbNGZxgtttzC0mR/sjopbpOXcbniq7eIKmocJnUWlEw==", 2706 | "dev": true, 2707 | "requires": { 2708 | "querystringify": "~1.0.0", 2709 | "requires-port": "~1.0.0" 2710 | } 2711 | }, 2712 | "util": { 2713 | "version": "0.10.3", 2714 | "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", 2715 | "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", 2716 | "requires": { 2717 | "inherits": "2.0.1" 2718 | }, 2719 | "dependencies": { 2720 | "inherits": { 2721 | "version": "2.0.1", 2722 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", 2723 | "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=" 2724 | } 2725 | } 2726 | }, 2727 | "util-deprecate": { 2728 | "version": "1.0.2", 2729 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 2730 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", 2731 | "dev": true 2732 | }, 2733 | "uuid": { 2734 | "version": "3.2.1", 2735 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.2.1.tgz", 2736 | "integrity": "sha512-jZnMwlb9Iku/O3smGWvZhauCf6cvvpKi4BKRiliS3cxnI+Gz9j5MEpTz2UFuXiKPJocb7gnsLHwiS05ige5BEA==", 2737 | "dev": true 2738 | }, 2739 | "vali-date": { 2740 | "version": "1.0.0", 2741 | "resolved": "https://registry.npmjs.org/vali-date/-/vali-date-1.0.0.tgz", 2742 | "integrity": "sha1-G5BKWWCfsyjvB4E4Qgk09rhnCaY=", 2743 | "dev": true 2744 | }, 2745 | "verror": { 2746 | "version": "1.10.0", 2747 | "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", 2748 | "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", 2749 | "dev": true, 2750 | "requires": { 2751 | "assert-plus": "^1.0.0", 2752 | "core-util-is": "1.0.2", 2753 | "extsprintf": "^1.2.0" 2754 | }, 2755 | "dependencies": { 2756 | "assert-plus": { 2757 | "version": "1.0.0", 2758 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 2759 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", 2760 | "dev": true 2761 | } 2762 | } 2763 | }, 2764 | "vinyl": { 2765 | "version": "0.4.6", 2766 | "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.4.6.tgz", 2767 | "integrity": "sha1-LzVsh6VQolVGHza76ypbqL94SEc=", 2768 | "dev": true, 2769 | "requires": { 2770 | "clone": "^0.2.0", 2771 | "clone-stats": "^0.0.1" 2772 | } 2773 | }, 2774 | "vinyl-fs": { 2775 | "version": "2.4.4", 2776 | "resolved": "https://registry.npmjs.org/vinyl-fs/-/vinyl-fs-2.4.4.tgz", 2777 | "integrity": "sha1-vm/zJwy1Xf19MGNkDegfJddTIjk=", 2778 | "dev": true, 2779 | "requires": { 2780 | "duplexify": "^3.2.0", 2781 | "glob-stream": "^5.3.2", 2782 | "graceful-fs": "^4.0.0", 2783 | "gulp-sourcemaps": "1.6.0", 2784 | "is-valid-glob": "^0.3.0", 2785 | "lazystream": "^1.0.0", 2786 | "lodash.isequal": "^4.0.0", 2787 | "merge-stream": "^1.0.0", 2788 | "mkdirp": "^0.5.0", 2789 | "object-assign": "^4.0.0", 2790 | "readable-stream": "^2.0.4", 2791 | "strip-bom": "^2.0.0", 2792 | "strip-bom-stream": "^1.0.0", 2793 | "through2": "^2.0.0", 2794 | "through2-filter": "^2.0.0", 2795 | "vali-date": "^1.0.0", 2796 | "vinyl": "^1.0.0" 2797 | }, 2798 | "dependencies": { 2799 | "clone": { 2800 | "version": "1.0.4", 2801 | "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", 2802 | "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", 2803 | "dev": true 2804 | }, 2805 | "replace-ext": { 2806 | "version": "0.0.1", 2807 | "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-0.0.1.tgz", 2808 | "integrity": "sha1-KbvZIHinOfC8zitO5B6DeVNSKSQ=", 2809 | "dev": true 2810 | }, 2811 | "vinyl": { 2812 | "version": "1.2.0", 2813 | "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-1.2.0.tgz", 2814 | "integrity": "sha1-XIgDbPVl5d8FVYv8kR+GVt8hiIQ=", 2815 | "dev": true, 2816 | "requires": { 2817 | "clone": "^1.0.0", 2818 | "clone-stats": "^0.0.1", 2819 | "replace-ext": "0.0.1" 2820 | } 2821 | } 2822 | } 2823 | }, 2824 | "vinyl-source-stream": { 2825 | "version": "1.1.2", 2826 | "resolved": "https://registry.npmjs.org/vinyl-source-stream/-/vinyl-source-stream-1.1.2.tgz", 2827 | "integrity": "sha1-YrU6E1YQqJbpjKlr7jqH8Aio54A=", 2828 | "dev": true, 2829 | "requires": { 2830 | "through2": "^2.0.3", 2831 | "vinyl": "^0.4.3" 2832 | } 2833 | }, 2834 | "vscode": { 2835 | "version": "1.1.14", 2836 | "resolved": "https://registry.npmjs.org/vscode/-/vscode-1.1.14.tgz", 2837 | "integrity": "sha512-acfn3fzGtTm7UjChAN7/YjsC0qIyJeuSrJwvm6qb7tLN6Geq1FmCz1JnBOc3kaY+HCLjQBAfwG/CsgnasOdXMw==", 2838 | "dev": true, 2839 | "requires": { 2840 | "glob": "^7.1.2", 2841 | "gulp-chmod": "^2.0.0", 2842 | "gulp-filter": "^5.0.1", 2843 | "gulp-gunzip": "1.0.0", 2844 | "gulp-remote-src": "^0.4.3", 2845 | "gulp-symdest": "^1.1.0", 2846 | "gulp-untar": "^0.0.6", 2847 | "gulp-vinyl-zip": "^2.1.0", 2848 | "mocha": "^4.0.1", 2849 | "request": "^2.83.0", 2850 | "semver": "^5.4.1", 2851 | "source-map-support": "^0.5.0", 2852 | "url-parse": "^1.1.9", 2853 | "vinyl-source-stream": "^1.1.0" 2854 | } 2855 | }, 2856 | "wrappy": { 2857 | "version": "1.0.2", 2858 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2859 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 2860 | "dev": true 2861 | }, 2862 | "xtend": { 2863 | "version": "4.0.1", 2864 | "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", 2865 | "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", 2866 | "dev": true 2867 | }, 2868 | "yauzl": { 2869 | "version": "2.9.1", 2870 | "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.9.1.tgz", 2871 | "integrity": "sha1-qBmB6nCleUYTOIPwKcWCGok1mn8=", 2872 | "dev": true, 2873 | "requires": { 2874 | "buffer-crc32": "~0.2.3", 2875 | "fd-slicer": "~1.0.1" 2876 | } 2877 | }, 2878 | "yazl": { 2879 | "version": "2.4.3", 2880 | "resolved": "https://registry.npmjs.org/yazl/-/yazl-2.4.3.tgz", 2881 | "integrity": "sha1-7CblzIfVYBud+EMtvdPNLlFzoHE=", 2882 | "dev": true, 2883 | "requires": { 2884 | "buffer-crc32": "~0.2.3" 2885 | } 2886 | } 2887 | } 2888 | } 2889 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "micropython-ide-vscode", 3 | "displayName": "Micropython IDE", 4 | "description": "Micropython integrated development", 5 | "version": "0.0.1", 6 | "icon": "images/icon.png", 7 | "publisher": "dphans", 8 | "engines": { 9 | "vscode": "^1.21.0" 10 | }, 11 | "categories": [ 12 | "Other" 13 | ], 14 | "activationEvents": [ 15 | "*" 16 | ], 17 | "main": "./out/extension", 18 | "contributes": { 19 | "commands": [ 20 | { 21 | "command": "extension.gettingStarted", 22 | "title": "Micropython: Getting Started... (Manage projects,...)" 23 | }, 24 | { 25 | "command": "extension.projectRun", 26 | "title": "Micropython: Run... (Send current script to device then run main.py script)" 27 | }, 28 | { 29 | "command": "extension.projectStop", 30 | "title": "Micropython: Stop...(Stop current running script in Terminal window)" 31 | } 32 | ] 33 | }, 34 | "scripts": { 35 | "vscode:prepublish": "npm run compile", 36 | "compile": "tsc -p ./", 37 | "watch": "tsc -watch -p ./", 38 | "postinstall": "node ./node_modules/vscode/bin/install", 39 | "test": "npm run compile && node ./node_modules/vscode/bin/test" 40 | }, 41 | "devDependencies": { 42 | "@types/lodash": "^4.14.123", 43 | "@types/mocha": "^2.2.42", 44 | "@types/node": "^7.0.43", 45 | "tslint": "^5.8.0", 46 | "typescript": "^2.6.1", 47 | "vscode": "^1.1.6" 48 | }, 49 | "dependencies": { 50 | "lodash": "^4.17.19", 51 | "util": "^0.10.3" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/app/app.ts: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | import Base from './classes/base'; 3 | import * as vscode from 'vscode'; 4 | import ProjectManager from './classes/project/project'; 5 | 6 | 7 | export default new class App extends Base { 8 | 9 | private _projectManager?: ProjectManager; 10 | 11 | public registerExtensionContext(context: vscode.ExtensionContext) { 12 | this._projectManager = new ProjectManager(); 13 | this.registerWorkspaceBehaviours(); 14 | 15 | context.subscriptions.push(vscode.commands.registerCommand(Base.CONSTANTS.COMMANDS.GET_STARTED, () => { 16 | this._projectManager!.actionShowMainMenu(); 17 | })); 18 | context.subscriptions.push(vscode.commands.registerCommand(Base.CONSTANTS.COMMANDS.PROJECT_RUN, () => { 19 | this._projectManager!.actionRun(); 20 | })); 21 | context.subscriptions.push(vscode.commands.registerCommand(Base.CONSTANTS.COMMANDS.PROJECT_STOP, () => { 22 | this._projectManager!.terminalKillCurrentProcess(); 23 | })); 24 | if (vscode.window.activeTextEditor) { 25 | this.showToolbarForActiveDocumentIfNeeded(vscode.window.activeTextEditor.document.uri); 26 | } 27 | this.statusDone(); 28 | } 29 | 30 | private registerWorkspaceBehaviours() { 31 | // document open 32 | // purpose: 33 | // - show run button if opened document can be run 34 | vscode.workspace.onDidOpenTextDocument((textDocument: vscode.TextDocument) => { 35 | this.log("onDidOpenTextDocument"); 36 | this.showToolbarForActiveDocumentIfNeeded(textDocument.uri); 37 | }); 38 | 39 | // document text changed 40 | // purpose: 41 | vscode.workspace.onDidChangeTextDocument((textDocumentChangeEvent: vscode.TextDocumentChangeEvent) => { 42 | this.log("onDidChangeTextDocument"); 43 | console.log("User did updated text document but not saved yet"); 44 | }); 45 | 46 | // document did saved 47 | // purpose: 48 | // - show run button if saved document can be execute 49 | vscode.workspace.onDidSaveTextDocument((textDocument: vscode.TextDocument) => { 50 | this.log("onDidSaveTextDocument"); 51 | this.showToolbarForActiveDocumentIfNeeded(textDocument.uri); 52 | }); 53 | 54 | // document did closed 55 | // purpose: 56 | // - hide the run button because cannot run empty document 57 | vscode.workspace.onDidCloseTextDocument((textDocument: vscode.TextDocument) => { 58 | this.log("onDidCloseTextDocument"); 59 | this.showToolbarForActiveDocumentIfNeeded(textDocument.uri); 60 | }); 61 | 62 | // documents has been switched 63 | // purpose: 64 | // - hide the run button if active text editor cannot be run 65 | vscode.window.onDidChangeActiveTextEditor((textEditor?: vscode.TextEditor) => { 66 | this.log("onDidChangeActiveTextEditor"); 67 | if (!textEditor) { 68 | this.toolbarRunShown(false); 69 | return; 70 | } 71 | this.showToolbarForActiveDocumentIfNeeded(textEditor.document.uri); 72 | }); 73 | 74 | // terminal did closed 75 | // purpose: 76 | // - hide the stop button if closed terminal is default app's terminal 77 | vscode.window.onDidCloseTerminal(async (terminal: vscode.Terminal) => { 78 | this.log("onDidCloseTerminal"); 79 | let defaultTerminalPID = await this.terminalGetProcessId(); 80 | let closedTerminalPID = await terminal.processId; 81 | if (defaultTerminalPID === closedTerminalPID) { 82 | this.toolbarStopShown(false); 83 | } 84 | }); 85 | } 86 | 87 | private showToolbarForActiveDocumentIfNeeded(documentUri: vscode.Uri) { 88 | if (this.isMicropythonProject(documentUri)) { 89 | this.toolbarRunShown(true); 90 | } else { 91 | this.toolbarRunShown(false); 92 | } 93 | } 94 | 95 | public onDestroyed() { 96 | super.onDestroyed(); 97 | } 98 | 99 | }; 100 | -------------------------------------------------------------------------------- /src/app/classes/base.ts: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | import * as vscode from 'vscode'; 3 | import * as fs from 'fs'; 4 | import * as path from 'path'; 5 | import Terminal from './helpers/terminal-helper'; 6 | 7 | 8 | export default class Base { 9 | 10 | public static readonly CONSTANTS: any = require("../constants"); 11 | 12 | /* default Status */ 13 | private static _statusBar: vscode.StatusBarItem; 14 | private static _isStatusBarShown: boolean = false; 15 | 16 | /* default Output Window */ 17 | private static _outputChannel: vscode.OutputChannel; 18 | private static _isOutputChannelShown: boolean = false; 19 | 20 | /* default Terminal Window */ 21 | private static _terminal?: vscode.Terminal; 22 | private static _isTerminalShown: boolean = false; 23 | 24 | /* default Toolbar items */ 25 | private static _toolbarRunProject: vscode.StatusBarItem; 26 | private static _isToolbarRunProjectShown: boolean = false; 27 | private static _toolbarStopProject: vscode.StatusBarItem; 28 | private static _isToolbarStopProjectShown: boolean = false; 29 | 30 | public static getTerminalHelper() { 31 | return Terminal; 32 | } 33 | 34 | constructor() { 35 | this.onInitial(); 36 | } 37 | 38 | protected onInitial() { 39 | if (!Base._statusBar) { 40 | Base._statusBar = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Left); 41 | Base._statusBar.command = Base.CONSTANTS.COMMANDS.GET_STARTED; 42 | } 43 | if (!Base._outputChannel) { 44 | Base._outputChannel = vscode.window.createOutputChannel(Base.CONSTANTS.APP.UNIQUE_NAME); 45 | } 46 | if (!Base._toolbarRunProject) { 47 | Base._toolbarRunProject = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right); 48 | Base._toolbarRunProject.text = "▶"; 49 | Base._toolbarRunProject.tooltip = Base.CONSTANTS.APP.UNIQUE_NAME + ": Build this file then run main.py script"; 50 | Base._toolbarRunProject.color = '#89D185'; 51 | Base._toolbarRunProject.command = Base.CONSTANTS.COMMANDS.PROJECT_RUN; 52 | } 53 | if (!Base._toolbarStopProject) { 54 | Base._toolbarStopProject = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right); 55 | Base._toolbarStopProject.text = "■"; 56 | Base._toolbarStopProject.tooltip = Base.CONSTANTS.APP.UNIQUE_NAME + ": Stop current running serial monitor"; 57 | Base._toolbarStopProject.color = '#F48771'; 58 | Base._toolbarStopProject.command = Base.CONSTANTS.COMMANDS.PROJECT_STOP; 59 | } 60 | } 61 | 62 | protected onDestroyed() { 63 | this.statusShown(false); 64 | delete Base._statusBar; 65 | this.outputShown(false); 66 | delete Base._outputChannel; 67 | } 68 | 69 | /** 70 | * Show status bar with message 71 | * @param message text need to show 72 | */ 73 | protected statusText(message: string, tooltipText: string = "") { 74 | if (!Base._statusBar) { return; } 75 | Base._statusBar.text = Base.CONSTANTS.APP.UNIQUE_NAME + ": " + message; 76 | if (tooltipText.length) { Base._statusBar.tooltip = tooltipText; } 77 | this.statusShown(true); 78 | } 79 | 80 | protected statusWarning(isWarning: boolean = true) { 81 | if (!Base._statusBar) { return; } 82 | Base._statusBar.color = isWarning ? '#F48771' : '#FFFFFF'; 83 | } 84 | 85 | /** 86 | * Toggle status bar 87 | * @param isShown true if need to show status bar 88 | */ 89 | protected statusShown(isShown: boolean = false) { 90 | if (!Base._statusBar) { return; } 91 | if (isShown) { 92 | if (Base._isStatusBarShown) { return; } 93 | Base._statusBar.show(); 94 | Base._isOutputChannelShown = true; 95 | return; 96 | } 97 | if (!Base._isStatusBarShown) { return; } 98 | Base._statusBar.hide(); 99 | Base._isOutputChannelShown = false; 100 | } 101 | 102 | /** 103 | * Reset status bar text 104 | */ 105 | protected statusDone() { 106 | this.statusText("Done!", "Click here to getting started!"); 107 | } 108 | 109 | /** 110 | * Print into Output window 111 | * @param message text need to log into output 112 | */ 113 | protected outputPrint(message: string) { 114 | if (!Base._outputChannel) { return; } 115 | this.outputShown(true); 116 | Base._outputChannel.append(message); 117 | } 118 | 119 | /** 120 | * Print into Output window with new line 121 | * @param message text need to log into output 122 | */ 123 | protected outputPrintLn(message: string, isAlsoUpdateStatus: boolean = false) { 124 | if (!Base._outputChannel) { return; } 125 | this.outputShown(true); 126 | Base._outputChannel.appendLine(message); 127 | if (isAlsoUpdateStatus) { this.statusText(message); } 128 | } 129 | 130 | /** 131 | * Clear Output window 132 | * @param alsoHideWindow hide Output after clear, default is false 133 | */ 134 | protected outputClear(alsoHideWindow: boolean = false) { 135 | if (!Base._outputChannel) { return; } 136 | Base._outputChannel.clear(); 137 | if (alsoHideWindow) { this.outputShown(false); } 138 | } 139 | 140 | /** 141 | * Create Terminal window if not available 142 | */ 143 | protected terminalInitIfNeeded() { 144 | if (Base._terminal) { return; } 145 | Base._terminal = vscode.window.createTerminal(Base.CONSTANTS.APP.UNIQUE_NAME); 146 | Base._isTerminalShown = false; 147 | } 148 | 149 | /** 150 | * Send command into Terminal window 151 | * @param commandText command need to send to terminal 152 | * @param newLine append new line command also, default is true 153 | */ 154 | protected terminalWrite(commandText: string, newLine: boolean = true) { 155 | this.terminalInitIfNeeded(); 156 | this.terminalShown(true); 157 | if (Base._terminal) { Base._terminal.sendText(commandText, newLine); } 158 | } 159 | 160 | /** 161 | * Show Terminal window 162 | * @param isShown set to true if need display terminal, default is false 163 | */ 164 | protected terminalShown(isShown: boolean = false) { 165 | this.terminalInitIfNeeded(); 166 | if (isShown === Base._isTerminalShown) { return; } 167 | if (!Base._terminal) { return; } 168 | if (isShown) { 169 | Base._terminal.show(false); 170 | } else { 171 | Base._terminal.hide(); 172 | } 173 | Base._isTerminalShown = isShown; 174 | } 175 | 176 | /** 177 | * Kill current running process on default terminal then reinit 178 | */ 179 | public async terminalKillCurrentProcess() { 180 | let processId = await this.terminalGetProcessId(); 181 | if (!processId) { return; } 182 | try { await Terminal.killProcessPromise(processId); } catch (e) { /* no such process */ } 183 | try { Base._terminal!.dispose(); } catch (e) { /* terminal window killed */ } 184 | Base._isTerminalShown = false; 185 | Base._terminal = undefined; 186 | this.toolbarStopShown(false); 187 | } 188 | 189 | /** 190 | * Get current terminal process 191 | */ 192 | protected async terminalGetProcessId() { 193 | if (!Base._terminal) { return undefined; } 194 | try { 195 | return await Base._terminal.processId || undefined; 196 | } catch (e) { return undefined; } 197 | } 198 | 199 | /** 200 | * Toggle Output window 201 | * @param isShown true if need to show Output window 202 | */ 203 | protected outputShown(isShown: boolean = false) { 204 | if (isShown) { 205 | if (Base._isOutputChannelShown) { return; } 206 | Base._outputChannel.show(false); 207 | Base._isOutputChannelShown = true; 208 | return; 209 | } 210 | if (!Base._isOutputChannelShown) { return; } 211 | Base._outputChannel.hide(); 212 | Base._isOutputChannelShown = false; 213 | } 214 | 215 | /** 216 | * Toogle toolbar RUN 217 | * @param isShown set to true if need to show Run item 218 | */ 219 | protected toolbarRunShown(isShown: boolean = false) { 220 | if (isShown === Base._isToolbarRunProjectShown) { return; } 221 | if (isShown) { Base._toolbarRunProject.show(); } 222 | else { Base._toolbarRunProject.hide(); } 223 | Base._isToolbarRunProjectShown = isShown; 224 | } 225 | 226 | /** 227 | * Toogle toolbar STOP 228 | * @param isShown set to true if need to show Stop item 229 | */ 230 | protected toolbarStopShown(isShown: boolean = false) { 231 | if (isShown === Base._isToolbarStopProjectShown) { return; } 232 | if (isShown) { Base._toolbarStopProject.show(); } 233 | else { Base._toolbarStopProject.hide(); } 234 | Base._isToolbarStopProjectShown = isShown; 235 | } 236 | 237 | /** 238 | * Check if current document is in Micropython project 239 | * @param documentPath path of document included inside project need to check 240 | */ 241 | protected isMicropythonProject(documentPath: vscode.Uri) { 242 | let projectPath = vscode.workspace.getWorkspaceFolder(documentPath); 243 | if (!projectPath) { return false; } 244 | return fs.existsSync(path.join(projectPath.uri.fsPath, Base.CONSTANTS.APP.CONFIG_FILE_NAME)); 245 | } 246 | 247 | /** 248 | * Get current user Operation System 249 | * @returns name of platform, possibles: 250 | * 'darwin' => MacOS, 251 | * 'freebsd' => FreeBSD 252 | * 'linux' => Ubuntu or CentOS,... 253 | * 'sunos' => SunOS 254 | * 'win32' => Microsoft Windows 255 | */ 256 | protected getUserPlatform() { 257 | return process.platform || ''; 258 | } 259 | 260 | /** 261 | * Print log for debugging 262 | * @param message message need to print 263 | * @param optionalParams additional params 264 | */ 265 | protected log(message?: any, ...optionalParams: any[]) { 266 | console.log(message, optionalParams); 267 | } 268 | 269 | /** 270 | * Send report to developer if user have any exception 271 | * @param exception error need to report 272 | */ 273 | protected reportException(exception: Error) { 274 | // TODO: Send report... 275 | } 276 | 277 | } 278 | -------------------------------------------------------------------------------- /src/app/classes/helpers/terminal-helper.ts: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | import * as child_process from 'child_process'; 3 | import { window, workspace } from 'vscode'; 4 | 5 | 6 | export default new class TerminalHelper { 7 | 8 | public execPromise(command: string) { 9 | return new Promise((resolve, reject) => { 10 | // Fix parsing args child_process library for python3 11 | // TODO: Remove line below when owner fixed this problem (reference: https://github.com/madjar/nox/issues/19) 12 | command = "export LANG=\"en_US.UTF-8\" && " + command; 13 | child_process.exec(command, { 14 | encoding: 'utf8', 15 | cwd: workspace.rootPath 16 | }, (error, stdout, stderr) => { 17 | if (error) { 18 | return reject(error); 19 | } 20 | return resolve(stdout); 21 | }); 22 | }); 23 | } 24 | 25 | /** 26 | * kill process by process id 27 | * @param processId id of process 28 | * @param delayTimeMillis after process killed, delay this time 29 | */ 30 | public killProcessPromise(processId: number, delayTimeMillis: number = 1000) { 31 | return new Promise(async (resolve, reject) => { 32 | try { 33 | await this.execPromise("kill -9 " + processId); 34 | setTimeout(() => { 35 | resolve(true); 36 | }, delayTimeMillis); 37 | } catch (executeException) { 38 | reject(executeException); 39 | } 40 | }); 41 | } 42 | 43 | public checkExecutableToolPromise(executeCommandName: string, installScript: string) { 44 | return new Promise(async (resolve, reject) => { 45 | try { 46 | let toolPath = await this.getExecutableToolPathPromise(executeCommandName); 47 | if ((toolPath || '') as string === "") { throw new Error("Build tool is not available"); } 48 | resolve(true); 49 | } catch (commandNotFoundException) { 50 | if (await window.showInformationMessage( 51 | "`" + executeCommandName + "` command not found in your executable environment. Do you want to install `" + executeCommandName + "` tool?", 52 | { modal: false }, 53 | "No", 54 | "Install" 55 | ) === "Install") { 56 | try { 57 | await this.execPromise(installScript); 58 | } catch (installAmpyException) { 59 | window.showErrorMessage("Error while installing `" + executeCommandName + "`, please recheck your internet connection and try again!"); 60 | } finally { 61 | try { 62 | let isAvailable = await this.getExecutableToolPathPromise(executeCommandName) !== ''; 63 | if (isAvailable) { 64 | window.showInformationMessage("`" + executeCommandName + "` has been installed successfully!"); 65 | } 66 | resolve(isAvailable); 67 | } catch (e) { 68 | resolve(false); 69 | } 70 | } 71 | } else { 72 | resolve(false); 73 | } 74 | } 75 | }); 76 | } 77 | 78 | public getExecutableToolPathPromise(executeCommandName: string) { 79 | return new Promise(async (resolve, reject) => { 80 | try { 81 | let toolPath = await this.execPromise("which " + executeCommandName); 82 | if (typeof toolPath !== "string") { toolPath = ''; } 83 | resolve((toolPath as string).trim()); 84 | } catch (toolPathNotFound) { 85 | reject(toolPathNotFound); 86 | } 87 | }); 88 | } 89 | 90 | }; 91 | -------------------------------------------------------------------------------- /src/app/classes/project/project.ts: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | import Base from '../base'; 3 | import * as vscode from 'vscode'; 4 | import * as fs from 'fs'; 5 | import * as path from 'path'; 6 | import * as _ from 'lodash'; 7 | 8 | // Escape path spaces for REPL: /my awesome/file/path => '/my\\ awesome/file/path' 9 | const normalizePath = (path: string = ''): string => path.replace(/(\s+)/g, '\\$1'); 10 | 11 | export default class Project extends Base { 12 | 13 | /** 14 | * display main menu for project managerment 15 | */ 16 | public async actionShowMainMenu() { 17 | let menuItems: vscode.QuickPickItem[] = []; 18 | 19 | menuItems.push({ 20 | label: "New project...", 21 | description: "", 22 | detail: "Generate new project included supported files" 23 | }); 24 | 25 | menuItems.push({ 26 | label: "Flash Firmware...", 27 | description: "", 28 | detail: "Flash Micropython firmware using esptool.py" 29 | }); 30 | 31 | menuItems.push({ 32 | label: "Download Firmware...", 33 | description: "", 34 | detail: "Enter Micropython download page" 35 | }); 36 | 37 | let selectedAction = await vscode.window.showQuickPick(menuItems); 38 | if (!selectedAction) { return; } 39 | 40 | switch (selectedAction.label) { 41 | case 'New project...': 42 | this.actionNewProject(); 43 | break; 44 | case 'Flash Firmware...': 45 | this.actionFlashFirmware(); 46 | break; 47 | case 'Download Firmware...': 48 | vscode.commands.executeCommand('vscode.open', vscode.Uri.parse('http://www.micropython.org/download')); 49 | break; 50 | } 51 | } 52 | 53 | /** 54 | * start new project setup widzard 55 | */ 56 | public async actionNewProject() { 57 | try { 58 | let selectedFolder = await vscode.window.showOpenDialog({ 59 | openLabel: "Create...", 60 | canSelectFiles: false, 61 | canSelectFolders: true, 62 | canSelectMany: false 63 | }); 64 | if (!selectedFolder) { this.statusDone(); return; } 65 | if (!selectedFolder.length) { this.statusDone(); return; } 66 | 67 | let projectName = await vscode.window.showInputBox({ 68 | ignoreFocusOut: true, 69 | placeHolder: "My Project", 70 | prompt: "Name of your project...", 71 | validateInput(value: string) { 72 | return (value.match(/^[^\\/:\*\?"<>\|]+$/) || '') ? null : 'The following characters are not allowed: \ / : * ? \" < > |'; 73 | } 74 | }); 75 | 76 | if (!projectName || !projectName.length) { 77 | this.statusDone(); 78 | return; 79 | } 80 | 81 | let workingFolder = path.join(selectedFolder[0].fsPath, projectName); 82 | let projectFolder = path.join(workingFolder, projectName); 83 | let configFile = path.join(workingFolder, Base.CONSTANTS.APP.CONFIG_FILE_NAME); 84 | 85 | // find connected ports 86 | var selectedPort: string = ''; 87 | var x = this.getUserPlatform(); 88 | vscode.window.setStatusBarMessage('USERPLATFORM:' + x); 89 | var serialPorts: string[] = []; 90 | switch (x) { 91 | case 'win32': 92 | selectedPort = await vscode.window.showInputBox({ 93 | ignoreFocusOut: true, 94 | placeHolder: 'COM1', 95 | prompt: "Current, we are not support auto detect devices connected for Windows. You need to enter port manually." 96 | }) || ''; 97 | break; 98 | case 'linux': 99 | serialPorts = []; 100 | selectedPort = '> Reload list'; 101 | while (selectedPort === '> Reload list') { 102 | try { 103 | fs.readdirSync('/dev/').forEach((portItem) => { 104 | if (portItem.startsWith('tty') ) { // && portItem.length >= 15) { 105 | serialPorts.push('/dev/' + portItem); 106 | } 107 | }); 108 | } catch (exception) { 109 | serialPorts = []; 110 | this.reportException(exception); 111 | } finally { 112 | serialPorts.push('> Reload list'); 113 | serialPorts.push('> Not Listed Above?'); 114 | } 115 | selectedPort = await vscode.window.showQuickPick(serialPorts, { 116 | ignoreFocusOut: true, 117 | placeHolder: "Please select port of connected device." 118 | }) || ''; 119 | } 120 | if (selectedPort === "> Not listed above?") { 121 | selectedPort = await vscode.window.showInputBox({ 122 | ignoreFocusOut: true, 123 | prompt: "Please enter port manually." 124 | }) || ''; 125 | } 126 | break; 127 | default: 128 | serialPorts = []; 129 | selectedPort = '> Reload list'; 130 | while (selectedPort === '> Reload list') { 131 | try { 132 | fs.readdirSync('/dev/').forEach((portItem) => { 133 | if (portItem.startsWith('tty.') && portItem.length >= 15) { 134 | serialPorts.push('/dev/' + portItem); 135 | } 136 | }); 137 | } catch (exception) { 138 | serialPorts = []; 139 | this.reportException(exception); 140 | } finally { 141 | serialPorts.push('> Reload list'); 142 | serialPorts.push('> Not listed above?'); 143 | } 144 | selectedPort = await vscode.window.showQuickPick(serialPorts, { 145 | ignoreFocusOut: true, 146 | placeHolder: "Please select port of connected device." 147 | }) || ''; 148 | } 149 | if (selectedPort === "> Not listed above?") { 150 | selectedPort = await vscode.window.showInputBox({ 151 | ignoreFocusOut: true, 152 | prompt: "Please enter port manually." 153 | }) || ''; 154 | } 155 | break; 156 | } 157 | 158 | if (!selectedPort || !selectedPort.length) { 159 | this.statusDone(); 160 | return; 161 | } 162 | 163 | if (!fs.existsSync(selectedPort)) { 164 | vscode.window.showErrorMessage("Port does not exist, please connect device and try again!"); 165 | this.statusDone(); 166 | return; 167 | } 168 | 169 | let selectedBaudRate = parseInt(await vscode.window.showQuickPick([ 170 | "300", "600", "1200", "2400", "4800", "9600", "14400", "19200", "28800", "38400", "57600", "115200", "128000", "256000" 171 | ], { 172 | ignoreFocusOut: true, 173 | placeHolder: "Please select default baud rate, default is 115200." 174 | }) || '115200') || 115200; 175 | 176 | // content of micropython config file 177 | let configFileObject = { 178 | upload: { port: selectedPort, baud: selectedBaudRate }, 179 | serial: { port: selectedPort, baud: selectedBaudRate }, 180 | paths: { 181 | root: `./${projectName}`, 182 | ignore: { extensions: [], directories: [] }, 183 | }, 184 | tools: { ampy: "", rshell: "" } 185 | }; 186 | 187 | // check build tools 188 | try { 189 | let ampyPath = await Base.getTerminalHelper().execPromise("which ampy"); 190 | configFileObject.tools.ampy = (ampyPath as string || '').trim(); 191 | } catch (commandNotFoundException) { 192 | this.reportException(commandNotFoundException); 193 | } 194 | 195 | if (!configFileObject.tools.ampy || !configFileObject.tools.ampy.length || !fs.existsSync(configFileObject.tools.ampy)) { 196 | if (await vscode.window.showInformationMessage( 197 | "`ampy` command not found in your executable environment. Do you want to install `ampy` tool?", 198 | { modal: false }, 199 | "No", 200 | "Install" 201 | ) === "Install") { 202 | try { 203 | this.statusText("Installing adafruit-ampy via pip..."); 204 | let installResult = await Base.getTerminalHelper().execPromise("pip install adafruit-ampy"); 205 | this.outputClear(); 206 | this.outputPrintLn((installResult || '') as string); 207 | this.outputShown(true); 208 | } catch (installAmpyException) { 209 | this.reportException(installAmpyException); 210 | } finally { 211 | this.outputShown(false); 212 | this.statusDone(); 213 | } 214 | try { 215 | let ampyPath = await Base.getTerminalHelper().execPromise("which ampy"); 216 | configFileObject.tools.ampy = (ampyPath as string || '').trim(); 217 | } catch (commandNotFoundException) { 218 | this.reportException(commandNotFoundException); 219 | } 220 | } 221 | } 222 | 223 | try { 224 | let rshellPath = await Base.getTerminalHelper().execPromise("which rshell"); 225 | configFileObject.tools.rshell = (rshellPath as string || '').trim(); 226 | } catch (commandNotFoundException) { 227 | this.reportException(commandNotFoundException); 228 | } 229 | 230 | if (!configFileObject.tools.rshell || !configFileObject.tools.rshell.length || !fs.existsSync(configFileObject.tools.rshell)) { 231 | if (await vscode.window.showInformationMessage( 232 | "`rshell` command not found in your executable environment. Do you want to install `rshell` tool?", 233 | { modal: false }, 234 | "No", 235 | "Install" 236 | ) === "Install") { 237 | try { 238 | this.statusText("Installing rshell via pip..."); 239 | let installResult = await Base.getTerminalHelper().execPromise("pip install rshell"); 240 | this.outputClear(); 241 | this.outputPrintLn((installResult || '') as string); 242 | this.outputShown(true); 243 | } catch (installRshellException) { 244 | this.reportException(installRshellException); 245 | } finally { 246 | this.outputShown(false); 247 | this.statusDone(); 248 | } 249 | try { 250 | let rshellPath = await Base.getTerminalHelper().execPromise("which rshell"); 251 | configFileObject.tools.ampy = (rshellPath as string || '').trim(); 252 | } catch (commandNotFoundException) { 253 | this.reportException(commandNotFoundException); 254 | } 255 | } 256 | } 257 | 258 | fs.mkdirSync(workingFolder); 259 | fs.mkdirSync(projectFolder); 260 | fs.writeFileSync(path.join(projectFolder, "boot.py"), "# This is script that run when device boot up or wake from sleep.\n\n\n"); 261 | fs.writeFileSync(path.join(projectFolder, "main.py"), "# This is your main script.\n\n\nprint(\"Hello, world!\")\n"); 262 | fs.writeFileSync(configFile, JSON.stringify(configFileObject, null, 2)); 263 | await vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.parse(workingFolder)); 264 | } catch (exception) { 265 | vscode.window.showErrorMessage("Error while preparing new project: " + (exception as Error).message); 266 | this.reportException(exception); 267 | } finally { 268 | this.statusDone(); 269 | } 270 | } 271 | 272 | /** 273 | * flash firmware using esptool 274 | */ 275 | public async actionFlashFirmware() { 276 | if (!(await Base.getTerminalHelper().checkExecutableToolPromise("esptool.py", "pip install esptool"))) { 277 | throw new Error("Required tool not found (`esptool.py`). Please install `esptool` to run project."); 278 | } 279 | let selectedFirmwareUri = await vscode.window.showOpenDialog({ 280 | canSelectFiles: true, 281 | canSelectFolders: false, 282 | canSelectMany: false, 283 | openLabel: "Use this firmware", 284 | filters: { 'Binary files': ['bin'] } 285 | }); 286 | if (!selectedFirmwareUri || !selectedFirmwareUri.length) { return; } 287 | let selectedFirmware = selectedFirmwareUri[0].fsPath; 288 | 289 | let selectedBoard = await vscode.window.showQuickPick([ 290 | '[ESP32] ESP32', 291 | '[ESP8266] ESP8266', 292 | '[ESP8266] NodeMCU (like ESP8266 but included dio flag)' 293 | ], { 294 | ignoreFocusOut: true, 295 | placeHolder: "Select your board, current supports ESP32, ESP8266 boards." 296 | }); 297 | if (!selectedBoard || !selectedBoard.length) { return; } 298 | 299 | var selectedPort: string = ''; 300 | switch (this.getUserPlatform()) { 301 | case 'win32': 302 | selectedPort = await vscode.window.showInputBox({ 303 | ignoreFocusOut: true, 304 | placeHolder: 'COM1', 305 | prompt: "Current, we are not support auto detect devices connected for Windows. You need to enter port manually." 306 | }) || ''; 307 | break; 308 | default: 309 | selectedPort = '> Reload list'; 310 | while (selectedPort === '> Reload list') { 311 | var serialPorts: string[] = []; 312 | try { 313 | fs.readdirSync('/dev/').forEach((portItem) => { 314 | if (portItem.startsWith('tty.') && portItem.length >= 15) { 315 | serialPorts.push('/dev/' + portItem); 316 | } 317 | }); 318 | } catch (exception) { 319 | serialPorts = []; 320 | this.reportException(exception); 321 | } finally { 322 | serialPorts.push('> Reload list'); 323 | serialPorts.push('> Not listed above?'); 324 | } 325 | selectedPort = await vscode.window.showQuickPick(serialPorts, { 326 | ignoreFocusOut: true, 327 | placeHolder: "Please select port of connected device." 328 | }) || ''; 329 | } 330 | if (selectedPort === "> Not listed above?") { 331 | selectedPort = await vscode.window.showInputBox({ 332 | ignoreFocusOut: true, 333 | prompt: "Please enter port manually." 334 | }) || ''; 335 | } 336 | break; 337 | } 338 | 339 | if (!selectedPort || !selectedPort.length) { return; } 340 | 341 | if (!fs.existsSync(selectedPort)) { 342 | vscode.window.showErrorMessage("Port does not exist, please connect device and try again!"); 343 | return; 344 | } 345 | 346 | if (await vscode.window.showInformationMessage(path.basename(selectedFirmware) + " will be flashed into your " + selectedBoard + " via " + selectedPort + ". Continue?", { modal: false }, "No", "Confirm") === "Confirm") { 347 | try { await this.terminalKillCurrentProcess(); } catch (e) { /* no such process */ } 348 | try { 349 | vscode.window.showInformationMessage("Flashing firmware, please check flashing status..."); 350 | this.statusWarning(true); 351 | let esptoolCmdPrefix = "esptool.py --port " + selectedPort + " "; 352 | this.statusText("Erasing firmware..."); 353 | await Base.getTerminalHelper().execPromise(esptoolCmdPrefix + "erase_flash"); 354 | 355 | this.statusText("Writing firmware..."); 356 | switch (selectedBoard) { 357 | case "[ESP8266] ESP8266": await Base.getTerminalHelper().execPromise(esptoolCmdPrefix + "--baud 460800 write_flash --flash_size=detect 0 " + selectedFirmware); break; 358 | case "[ESP8266] NodeMCU": await Base.getTerminalHelper().execPromise(esptoolCmdPrefix + "--baud 460800 write_flash --flash_size=detect -fm dio 0 " + selectedFirmware); break; 359 | case "[ESP32] ESP32": await Base.getTerminalHelper().execPromise(esptoolCmdPrefix + "--chip esp32 write_flash -z 0x1000 " + selectedFirmware); break; 360 | } 361 | 362 | vscode.window.showInformationMessage("Firmware has been flashed successfully!"); 363 | } catch (exception) { 364 | let exceptionMessage = (exception as Error).message || 'Unknown error'; 365 | vscode.window.showErrorMessage("Error while flashing firmware: " + exceptionMessage); 366 | this.reportException(exception); 367 | } finally { 368 | this.statusWarning(false); 369 | this.statusDone(); 370 | } 371 | } 372 | } 373 | 374 | /** 375 | * check and push document into device 376 | * then run main.py script (restart device also) 377 | */ 378 | public async actionRun() { 379 | let beginTimeInMillis = (new Date()).getTime(); 380 | vscode.window.showInformationMessage("Start building project files... You can check details in Output window named " + Base.CONSTANTS.APP.UNIQUE_NAME + "."); 381 | try { 382 | this.outputClear(false); 383 | this.statusWarning(true); 384 | this.toolbarRunShown(false); 385 | this.statusText("[Run] Preparing..."); 386 | this.outputPrintLn("Checking current script..."); 387 | if (!vscode.window.activeTextEditor) { 388 | throw new Error("No active editor can run in this time, please switch to your working file to run!"); 389 | } 390 | this.outputPrintLn("Preparing file " + vscode.window.activeTextEditor.document.fileName + "..."); 391 | 392 | this.outputPrintLn("Checking `ampy` tool..."); 393 | if (!(await Base.getTerminalHelper().checkExecutableToolPromise("ampy", "pip install adafruit-ampy"))) { 394 | throw new Error("Required tool not found (`ampy`). Please install `ampy` to run project."); 395 | } 396 | 397 | this.outputPrintLn("Checking `rshell` tool..."); 398 | if (!(await Base.getTerminalHelper().checkExecutableToolPromise("rshell", "pip install rshell"))) { 399 | throw new Error("Required tool not found (`rshell`). Please install `rshell` to run project."); 400 | } 401 | 402 | this.outputPrintLn("Reading settings from config file (" + Base.CONSTANTS.APP.CONFIG_FILE_NAME + ")..."); 403 | let projectConfig = this.helperGetProjectConfig(); 404 | 405 | this.outputPrintLn("Checking config file..."); 406 | if (typeof projectConfig !== 'object') { 407 | throw new Error("Error while reading settings from Micropython config file " + Base.CONSTANTS.APP.CONFIG_FILE_NAME + ". Please recheck config file!"); 408 | } 409 | 410 | this.outputPrintLn("Checking `ampy` path config..."); 411 | let ampyExecutePath = ((projectConfig || {}).tools || {}).ampy || ''; 412 | if (!ampyExecutePath || !ampyExecutePath.length) { 413 | throw new Error("Error while reading `ampy` execuable path. Please recheck `tools.ampy` setting inside Micropython config file (`" + Base.CONSTANTS.APP.CONFIG_FILE_NAME + "`) then try again!"); 414 | } 415 | 416 | this.outputPrintLn("Checking `rshell` path config..."); 417 | let rshellExecutePath = ((projectConfig || {}).tools || {}).rshell || ''; 418 | if (!rshellExecutePath || !rshellExecutePath.length) { 419 | throw new Error("Error while reading `rshell` execuable path. Please recheck `tools.rshell` setting inside Micropython config file (`" + Base.CONSTANTS.APP.CONFIG_FILE_NAME + "`) then try again!"); 420 | } 421 | 422 | this.outputPrintLn("Checking upload port config..."); 423 | let uploadPort = ((projectConfig || {}).upload || {}).port || ''; 424 | if (!uploadPort || !uploadPort.length) { 425 | throw new Error("Cannot read port setting in config file. Please recheck `upload.port` setting inside config file " + Base.CONSTANTS.APP.CONFIG_FILE_NAME + " then try again!"); 426 | } 427 | 428 | this.outputPrintLn("Connect device from port " + uploadPort + "..."); 429 | if (!fs.existsSync(uploadPort)) { 430 | throw new Error("Device at port " + uploadPort + " is disconnected! Please connect device or re-check your upload port settings in config file: " + Base.CONSTANTS.APP.CONFIG_FILE_NAME + "."); 431 | } 432 | 433 | this.outputPrintLn("Reading baud rate config..."); 434 | var uploadBaud = ((projectConfig || {}).upload || {}).baud || 115200; 435 | if (typeof uploadBaud === "string") { uploadBaud = parseInt(uploadBaud) || 115200; } 436 | uploadBaud = uploadBaud || 115200; // sure that int in settings available 437 | this.outputPrintLn("Using baud rate: " + uploadBaud); 438 | this.outputPrintLn("Using port: " + uploadPort); 439 | 440 | let ignoredExts = _.get(projectConfig, 'paths.ignore.extensions', []); 441 | let ignoredDirs = _.get(projectConfig, 'paths.ignore.directories', []); 442 | let rootPath = _.get(projectConfig, 'paths.root', './'); 443 | 444 | let documentUri = vscode.window.activeTextEditor.document.uri; 445 | let projectRoot = vscode.workspace.getWorkspaceFolder(documentUri); 446 | if (!projectRoot) { throw new Error("Cannot find project directory!"); } 447 | let projectRootPath = projectRoot.uri.fsPath; 448 | let projectFilesPath = path.join(projectRootPath, rootPath); 449 | 450 | 451 | // kill current terminal process to skip busy port if available 452 | this.outputPrintLn("Stopping running script if available..."); 453 | try { await this.terminalKillCurrentProcess(); } catch (e) { /* no such process */ } 454 | 455 | // execute command prefix 456 | let ampyCommandPrefix = ampyExecutePath + " --port " + uploadPort + " --baud " + uploadBaud + " "; 457 | let rshellCommandPrefix = rshellExecutePath + " --port " + uploadPort + " --baud " + uploadBaud + " "; 458 | 459 | // remove all files inside device 460 | this.statusText("[Run] Formatting data..."); 461 | let ampyLsResult = ((await Base.getTerminalHelper().execPromise(ampyCommandPrefix + "ls") || '') as string).split('\n'); 462 | for (var fileDirIndex = 0; fileDirIndex < ampyLsResult.length; fileDirIndex++) { 463 | let fileDirPath = ampyLsResult[fileDirIndex]; 464 | if (fileDirPath.length) { 465 | this.outputPrintLn("Removing " + fileDirPath + "..."); 466 | try { await Base.getTerminalHelper().execPromise(ampyCommandPrefix + "rmdir " + normalizePath(fileDirPath)); } catch (e) { /* may be item is file */ } 467 | try { await Base.getTerminalHelper().execPromise(ampyCommandPrefix + "rm " + normalizePath(fileDirPath)); } catch (e) { /* may be item is path */ } 468 | } 469 | } 470 | 471 | this.outputPrintLn('Searching for ignored files and directories...'); 472 | const resultFiles = this.listFiles(projectFilesPath, [], (filePath: string): boolean => { 473 | if (fs.statSync(filePath).isFile()) { 474 | return ignoredExts.includes(path.extname(filePath)); 475 | } 476 | 477 | return ignoredDirs.includes(path.basename(filePath)); 478 | }); 479 | 480 | this.statusText('[Run] Sending files...'); 481 | for (const currentPath of resultFiles) { 482 | const localPath = path.relative(projectRootPath, currentPath); 483 | const devicePath = path.relative(projectFilesPath, currentPath); 484 | let command: string; 485 | 486 | if (fs.statSync(currentPath).isFile()) { 487 | command = `${ampyCommandPrefix}put ./${normalizePath(localPath)} ${normalizePath(devicePath)}`; 488 | this.outputPrintLn(`Sending ${devicePath}...`); 489 | } else { 490 | command = `${ampyCommandPrefix}mkdir ${normalizePath(devicePath)}`; 491 | this.outputPrintLn(`Creating directory ${devicePath}...`); 492 | } 493 | 494 | try { 495 | await Base.getTerminalHelper().execPromise(command); 496 | } catch (err) { 497 | /* push file inside ignored directory */ 498 | } 499 | } 500 | 501 | // show terminal window in rshell mode 502 | this.statusText("[Run] Reseting device..."); 503 | this.outputPrintLn("Reseting state..."); 504 | await Base.getTerminalHelper().execPromise(ampyCommandPrefix + "reset"); 505 | 506 | this.outputPrintLn("Task done with " + ((new Date()).getTime() - beginTimeInMillis) + " milliseconds."); 507 | vscode.window.showInformationMessage("Building files successfully with " + ((new Date()).getTime() - beginTimeInMillis) + " milliseconds!"); 508 | 509 | this.terminalWrite(rshellCommandPrefix + "repl"); 510 | this.toolbarStopShown(true); 511 | } catch (executeException) { 512 | let errorMessage = (executeException || {}).message || 'Unknown error while building your project.'; 513 | this.outputPrintLn("Error: " + errorMessage); 514 | this.outputPrintLn("Task abort with " + ((new Date()).getTime() - beginTimeInMillis) + " milliseconds."); 515 | vscode.window.showErrorMessage(errorMessage, { modal: true }); 516 | this.reportException(executeException); 517 | } finally { 518 | this.toolbarRunShown(true); 519 | this.statusWarning(false); 520 | this.statusDone(); 521 | } 522 | } 523 | 524 | private listFiles(fsPath: string, results: string[] = [], ignore: (fsPath: string) => boolean): string[] { 525 | if (!fsPath) { return results; } 526 | fs.readdirSync(fsPath).forEach((itemPath) => { 527 | let fullPath = path.join(fsPath, itemPath); 528 | if (!ignore(fullPath)) { 529 | results.push(fullPath); 530 | if (fs.statSync(fullPath).isDirectory()) { 531 | results = this.listFiles(fullPath, results, ignore); 532 | } 533 | } 534 | }); 535 | return results; 536 | } 537 | 538 | public helperGetDirectories(fsPath: string, results: string[] = []) { 539 | if (!fsPath) { return results; } 540 | fs.readdirSync(fsPath).forEach((itemPath) => { 541 | let fullPath = path.join(fsPath, itemPath); 542 | results.push(fullPath); 543 | if (fs.statSync(fullPath).isDirectory()) { 544 | results = this.helperGetDirectories(fullPath, results); 545 | } 546 | }); 547 | return results; 548 | } 549 | 550 | /** 551 | * find micropython config file 552 | * @returns content of config file as json object, or null if not available 553 | */ 554 | public helperGetProjectConfig() { 555 | if (!vscode.workspace.rootPath) { return null; } 556 | let configFilePath = path.join(vscode.workspace.rootPath, Base.CONSTANTS.APP.CONFIG_FILE_NAME); 557 | if (!fs.existsSync(configFilePath)) { return null; } 558 | try { 559 | let configContent = fs.readFileSync(configFilePath); 560 | return JSON.parse(configContent.toString()); 561 | } catch (fileReadException) { 562 | this.reportException(fileReadException); 563 | return null; 564 | } 565 | } 566 | 567 | } 568 | -------------------------------------------------------------------------------- /src/app/constants.ts: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | COMMANDS: { 3 | GET_STARTED: "extension.gettingStarted", 4 | PROJECT_RUN: "extension.projectRun", 5 | PROJECT_STOP: "extension.projectStop" 6 | }, 7 | APP: { 8 | UNIQUE_NAME: "Micropython", 9 | CONFIG_FILE_NAME: ".micropythonrc" 10 | } 11 | }; 12 | -------------------------------------------------------------------------------- /src/extension.ts: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | import * as vscode from 'vscode'; 3 | import app from './app/app'; 4 | 5 | 6 | export function activate(context: vscode.ExtensionContext) { 7 | app.registerExtensionContext(context); 8 | } 9 | 10 | export function deactivate() { 11 | app.onDestroyed(); 12 | } 13 | -------------------------------------------------------------------------------- /src/test/extension.test.ts: -------------------------------------------------------------------------------- 1 | // 2 | // Note: This example test is leveraging the Mocha test framework. 3 | // Please refer to their documentation on https://mochajs.org/ for help. 4 | // 5 | 6 | // The module 'assert' provides assertion methods from node 7 | import * as assert from 'assert'; 8 | 9 | // You can import and use all API from the 'vscode' module 10 | // as well as import your extension to test it 11 | // import * as vscode from 'vscode'; 12 | // import * as myExtension from '../extension'; 13 | 14 | // Defines a Mocha test suite to group tests of similar kind together 15 | suite("Extension Tests", function () { 16 | 17 | // Defines a Mocha unit test 18 | test("Something 1", function() { 19 | assert.equal(-1, [1, 2, 3].indexOf(5)); 20 | assert.equal(-1, [1, 2, 3].indexOf(0)); 21 | }); 22 | }); -------------------------------------------------------------------------------- /src/test/index.ts: -------------------------------------------------------------------------------- 1 | // 2 | // PLEASE DO NOT MODIFY / DELETE UNLESS YOU KNOW WHAT YOU ARE DOING 3 | // 4 | // This file is providing the test runner to use when running extension tests. 5 | // By default the test runner in use is Mocha based. 6 | // 7 | // You can provide your own test runner if you want to override it by exporting 8 | // a function run(testRoot: string, clb: (error:Error) => void) that the extension 9 | // host can call to run the tests. The test runner is expected to use console.log 10 | // to report the results back to the caller. When the tests are finished, return 11 | // a possible error to the callback or null if none. 12 | 13 | import * as testRunner from 'vscode/lib/testrunner'; 14 | 15 | // You can directly control Mocha options by uncommenting the following lines 16 | // See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options for more info 17 | testRunner.configure({ 18 | ui: 'tdd', // the TDD UI is being used in extension.test.ts (suite, test, etc.) 19 | useColors: true // colored output from test results 20 | }); 21 | 22 | module.exports = testRunner; -------------------------------------------------------------------------------- /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 Type-Checking Option */ 12 | "strict": true, /* enable all strict type-checking options */ 13 | /* Additional Checks */ 14 | "noUnusedLocals": true /* Report errors on unused locals. */ 15 | // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ 16 | // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ 17 | // "noUnusedParameters": true, /* Report errors on unused parameters. */ 18 | }, 19 | "exclude": [ 20 | "node_modules", 21 | ".vscode-test" 22 | ] 23 | } -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /vsc-extension-quickstart.md: -------------------------------------------------------------------------------- 1 | # Welcome to your VS Code Extension 2 | 3 | ## What's in the folder 4 | * This folder contains all of the files necessary for your extension. 5 | * `package.json` - this is the manifest file in which you declare your extension and command. 6 | The sample plugin registers a command and defines its title and command name. With this information 7 | VS Code can show the command in the command palette. It doesn’t yet need to load the plugin. 8 | * `src/extension.ts` - this is the main file where you will provide the implementation of your command. 9 | The file exports one function, `activate`, which is called the very first time your extension is 10 | activated (in this case by executing the command). Inside the `activate` function we call `registerCommand`. 11 | We pass the function containing the implementation of the command as the second parameter to 12 | `registerCommand`. 13 | 14 | ## Get up and running straight away 15 | * Press `F5` to open a new window with your extension loaded. 16 | * Run your command from the command palette by pressing (`Ctrl+Shift+P` or `Cmd+Shift+P` on Mac) and typing `Hello World`. 17 | * Set breakpoints in your code inside `src/extension.ts` to debug your extension. 18 | * Find output from your extension in the debug console. 19 | 20 | ## Make changes 21 | * You can relaunch the extension from the debug toolbar after changing code in `src/extension.ts`. 22 | * You can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes. 23 | 24 | ## Explore the API 25 | * You can open the full set of our API when you open the file `node_modules/vscode/vscode.d.ts`. 26 | 27 | ## Run tests 28 | * Open the debug viewlet (`Ctrl+Shift+D` or `Cmd+Shift+D` on Mac) and from the launch configuration dropdown pick `Launch Tests`. 29 | * Press `F5` to run the tests in a new window with your extension loaded. 30 | * See the output of the test result in the debug console. 31 | * Make changes to `test/extension.test.ts` or create new test files inside the `test` folder. 32 | * By convention, the test runner will only consider files matching the name pattern `**.test.ts`. 33 | * You can create folders inside the `test` folder to structure your tests any way you want. 34 | --------------------------------------------------------------------------------