在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):MicrosoftDX/Vorlonjs开源软件地址(OpenSource Url):https://github.com/MicrosoftDX/Vorlonjs开源编程语言(OpenSource Language):TypeScript 45.9%开源软件介绍(OpenSource Introduction):Vorlon.JSA new, open source, extensible, platform-agnostic tool for remotely debugging and testing your JavaScript. Powered by node.js and socket.io. Understand all about Vorlon.js in 20 minutes watching this video : https://channel9.msdn.com/Shows/codechat/046 Learn more at VorlonJS ! Chat with us on slack (get a free invite clicking on the badge below) Deploy on AzureEasy setupInstall and run the Vorlon.JS server from npm: $ npm i -g vorlon
$ vorlon
With the server is running, open http://localhost:1337 in your browser to see the Vorlon.JS dashboard. You may notice errors from Python, node-gyp and socket.io. This is a known issue already reported to socket.io team. This is not a blocking issue though as socket.io still works well even with this error :) Custom port[Linux] $ PORT=3000 vorlon [Windows] c:\>SET PORT=3000 && vorlon //Vorlon listening on port 3000 The last step is to enable Vorlon.JS by adding this to your app: <script src="http://localhost:1337/vorlon.js"></script> SSL SupportIf you want to run the server with SSL support proceed as follows:
SSL Support on Azure
Sample of azure hosted config.json file {
"baseURL": "",
"useSSLAzure": true,
"useSSL": false,
"SSLkey": "cert/server.key",
....
...
} Custom log fileBy default Vorlon.JS application logs with debug level and files are stored in the installation folder. If you want to customize logs, proceed as follows :
[Windows]
C:\>cd %HOMEPATH%\node_modules\vorlon
C:\Users\Username\node_modules\vorlon>notepad Server/config.json
## JSON FILE ##
{
"useSSL": true,
"SSLkey": "server/cert/server.key",
"SSLcert": "server/cert/server.crt",
"includeSocketIO": true,
"plugins": [
{ "id": "CONSOLE", "name": "Interactive Console", "panel": "bottom", "foldername" : "interactiveConsole", "enabled": true},
{ "id": "DOM", "name": "Dom Explorer", "panel": "top", "foldername" : "domExplorer", "enabled": true },
{ "id": "MODERNIZR", "name": "Modernizr","panel": "bottom", "foldername" : "modernizrReport", "enabled": true },
{ "id" : "OBJEXPLORER", "name" : "Obj. Explorer","panel": "top", "foldername" : "objectExplorer", "enabled": true },
{ "id" : "XHRPANEL", "name" : "XHR","panel": "top", "foldername" : "xhrPanel", "enabled": true },
{ "id" : "NGINSPECTOR", "name" : "ngInspector","panel": "top", "foldername" : "ngInspector", "enabled": false }
],
"logs": {
"level" : "info",
"enableConsole" : true,
"filePath" : "E:\\temp",
"vorlonLogFileName": "vorlonjs.log",
"exceptionsLogFileName": "exceptions.log"
}
}
C:\Users\Username\node_modules\vorlon>vorlon
Vorlon with SSL listening on port 1337
With the server is running, open https://localhost:1337 in your browser to see the Vorlon.JS dashboard. The last step is to enable Vorlon.JS by adding this to your app: <script src="https://localhost:1337/vorlon.js"></script> DocumentationRead further documentation about Vorlon.JS, and writing your own plugins at http://vorlonjs.com/documentation. Developing on Vorlon.JSIf you wish to work on Vorlon.JS's server or core plugin code, you'll need to clone this directory and work in it. Vorlon is written in typescript, which is compiled with gulp. There are two main directories:
Compiling from sourceThere is a To compile everything (plugins, then server) run this:
To compile only plugins run this :
To compile only server run this :
CompilingThe simplest way to run Vorlon.JS is to run gulp watchYou can also run the gulp commands individually. This is useful if you wish to work on plugins in particular, as If you want to run $ npm install -g gulp You can now run Plugin test pageThere is a demo webpage that includes the vorlon code that you can open to test the dashboard behaviour. It lives at ./Plugins/samples/index.html. There is a gulptask in the Visual Studio usersFor Visual Studio users, we provide an integrated solution through VorlonJS.sln. In order to interact with Node.js, you just need to install the NodeJS Tool for Visual Studio plugin. Once the plugin is installed, just open the solution and you'll be ready to develop for Vorlon.js Visual Studio Code usersVisual Studio Code is a completly new code editor which is cross-platforms, free and light as hell ! You can do node.js debugging, there is intelliSense and so on (more about this on Code Website). There also is a task workflow integration and we prepared you a file in the repo which contains all for you to be able to hit the Ctrl+Shift+B to run the default task in the gulp file. Committing & Pull RequestsOnce you've made a change, you can commit and submit a pull request to this repository. You will also need to electronically sign the Microsoft Contributor License Agreement (CLA) if you wish for your changes to be merged. When committing changes, ensure that compiled JavaScript files (those compiled from TypeScript) are not committed, only the original TypeScript files should be committed. ContributingRead CONTRIBUTING.md for more info on contributing to Vorlon.JS. LicenseVorlon.JS is released under the MIT license. Please see LICENSE for full details. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论