Commit Graph

57 Commits

Author SHA1 Message Date
Kirill Shumilov
0b2bcb933c feat(xod-pm, xod-client, xod-cli): make recursive fetching works fine with a lists of libraries, prevent fetching of already installed libraries, integrate it into both clients and cli, add auto-resolving of libraries on open/import project 2017-11-28 18:03:40 +03:00
Kirill Shumilov
163ca993ba feat(xod-pm, xod-fs, xod-cli, xod-project): implement and integrate functions that (a) fetches libraries with dependencies and (b) saves it to the file system 2017-11-24 14:05:54 +03:00
Kirill Shumilov
aeb8a97a3b feat(xod-fs): implement dff functions that find changed patches and find a kind of changes and saveAll function that saves all project using diff function to detect what to save, what to skip 2017-11-22 12:08:47 +03:00
Kirill Shumilov
e9b2eb15a1 feat(xod-client, xod-client-browser, xod-client-electron, xod-fs): add feature to install libraries from cloud in the IDE, integrate in both clients, add saving on FS for desktop client 2017-11-15 10:49:10 +03:00
Kirill Shumilov
3a8596b51a refactor, test(xod-func-tools): move functions into separate modules, cover almost all functions (complex or derivative), move tests into separate specs, add foldMaybe 2017-11-15 10:49:09 +03:00
Kirill Shumilov
fb248cf16e feat(xod-fs, xod-client-electron, xod-cli): load libs from a local workspace and extra lib directories (+4 squashed commits)
Squashed commits:
[12a9428] refactor(xod-cli): bundle std libs with xodc and use them in `xodc transpile` command
[66d1b9d] refactor(xod-fs, workspace): rename `lib` folder into `__lib__` and make it not necessary and don't copy stdlib into user workspace
[f19c366] feat(xod-fs): load project with libs from local workspace and bundled workspace
[ea9ac0e] feat(xod-func-tools): add `uniqLists` function
2017-10-23 18:54:24 +03:00
Kirill Shumilov
44577c03a4 feat(xod-arduino-deploy, xod-deploy, xod-client, xod-client-electron): add interactive debug session with watch nodes, optimized log and etc (+31 squashed commits)
Squashed commits:
[ca50efb] refactor(xod-client, xod-arduino-deploy, xod-client-electron): handle lost connection (unplug device), make some small fixes
[8c9fbce] tweak(xod-client-electron): add retries to find device after upload (3 times with 300ms delay)
[8c77fce] fix(xod-client-electron): fix adding an error message into debugger log
[c0668c1] refactor(xod-client, xod-client-electron): add throttling to send data readed from serial port and updating log by list of messages instead of appending each message
[9528c6e] refactor(xod-arduino, xod-client, xod-client-electron): make fixes in accordance with comments to PR
[117996b] refactor(xod-client): simplified selecting renderer by message type in the Log container
[512b74f] refactor(xod-arduino): revert XOD_TRACE functions to use only for debug runtime, watch-node uses DEBUG_SERIAL, updated fixtures and etc
[7b92c98] chore(xod-client): remove dispatching no longer existing action (setMode)
[cb38db1] refactor(xod-arduino): split transpiling into two functions: transformProject and transpile, add function to get nodeIdsMap from transformed project, use last one instead of pushing it through a long pipes of calls
[01c3f2e] tweak(xod-client): show xod message delimiter in the log
[360f216] chore(xod-client): change caption of button "Stop debug session" -> "Stop debug"
[531c280] style(xod-client): change colors of watch nodes, remove ellipsis from watch node values, change color of error and success message borders
[bb3c5df] fix(xod-client): fix panning mode to show nodeValues in debug session interactively
[7fac400] tweak(xod-client): sync offsets of patches between tabs (if user pans debug tab -> patch tab panned too, and vice versa)
[086d863] tweak(xod-client): stop debug session when debugger tab was closed
[eccc14a] tweak(xod-client): pass offsets between patchTab and debuggerTab, reopen original patch on debugger tab close
[83c3090] test(xod-client-electron): fix functional test and remove fixture (take it from workspace)
[f87fb2d] tweak(xod-client): tweak closing tab to prevent switching to another tab if closed another one
[c17cc0f] refactor(xod-client): remove editor modes from redux store, make modes depends on tab type
[92ce1df] refactor(xod-client): add tab types, add debug tab type and styles, handle opening and closing this tab on debug start/stop
[09af9af] refactor(xod-client): refactored tabs to contain an unique id and patchPath, instead of storing two entities in one property
[31991f7] refactor(xod-client): optimize rendering logs, add Debugger into storybook, fix one possible bug in the reducer
[7355928] refactor(xod-client): move log of Debugger into a separate container
[30d36c5] refactor(xod-client): optimize debugger selectors
[9615450] feat(xod-client): pass values of watch nodes into view
[34b40d0] refactor(xod-client): move rendering of node bodies and some parts into small components, add WidgetNodeBody component
[18f4e75] feat(xod-client): add new editor mode: debugging
[6c6d9bd] feat(xod-arduino, xod-client): store map of nodeIds to topologically sorted index of nodes in the redux state
[492caea] feat(xod-arduino, xod-project): remove debug nodes on transpilation without debug mode, update fixtures and tests
[63a8083] refactor(xod-arduino, xod-clients): update debug flags in runtime, allow to switch flags in the transpiler (using options object) and integrate it into clients
[01cfd83] feat(xod-arduino, workspace): implement watch node and change debug flags in the runtime and configuration template
2017-10-03 14:26:28 +03:00
Kirill Shumilov
49606e62ff fix(xod-cli): make default PM url points to production server 2017-09-15 12:14:55 +03:00
Victor Nakoryakov
2abfd38e22 feat(xod-cli): drop --target switch for xodc transpile
Since the only choice now is `arduino`
2017-08-11 13:38:31 +03:00
Victor Nakoryakov
3ba6ad5664 refactor(infra): remove code related to JS targets (Espruino & RPi) 2017-08-11 13:13:50 +03:00
Kirill Shumilov
fd919d1dae refactor(xod-cli, xod-arduino-builder): get rid of xod-arduino-builder package and clean it up from xod-cli 2017-08-04 18:07:06 +03:00
Alexander Matsievsky
1e7365963e feat(xod-cli): allow orgmembers to publish lib versions 2017-07-25 10:53:20 +03:00
Alexander Matsievsky
512d85e471 feat(xod-cli,xod-fs): implement auth for xodc publish
Closes #535.
2017-07-12 16:08:43 +03:00
Kirill Shumilov
3b26954573 feat(xod-fs): add reading/writing patch attachments (README.md, images and .fzz) 2017-07-10 14:48:26 +03:00
Evgeny Kochetkov
cbc4b920fa chore(infra): disable hm-def by default
Closes #600
2017-06-26 12:42:37 +03:00
Kirill Shumilov
e0c5370c12 tweak(xod-cli): add default swagger url for publish/install 2017-06-22 20:44:06 +03:00
Alexander Matsievsky
2e49b038a3 feat(xod-cli): publish description
Closes #586.
2017-06-16 14:53:12 +03:00
Alexander Matsievsky
c9d8c7d9d0 feat(xod-cli): implement xodc install/publish for pm.xod.io (#577)
Closes #575.
2017-06-15 13:09:13 +03:00
Victor Nakoryakov
cacf28bba2 fix(xod-cli): show stack trace on unhandled error while xodc transpile 2017-06-09 16:27:24 +03:00
Kirill Shumilov
c0aa409bd5 refactor(xod-cli, xod-client-electron): use xod-fs loadProject instead of loadProjectWithLibs and pack 2017-06-05 19:21:33 +03:00
Evgeny Kochetkov
da40e5300c refactor(xod-cli): remove doc command 2017-05-15 13:41:34 +03:00
Evgeny Kochetkov
7c040ed307 refactor(xod-cli): get rid of migrate tool
we support only single format now
2017-05-12 23:17:04 +03:00
Kirill Shumilov
85c4d08882 refactor(xod-arduino-builder, xod-cli, xod-client-electron): refactor xod-arduino-builder and his consumers: separated pure and unpure functions and call them as compositions 2017-04-24 19:57:10 +03:00
Kirill Shumilov
3314a0bf37 refactor(xod-arduino-builder, xod-cli, xod-client-electron): refactor xod-arduino-builder to use child-process-promise package instead of shelljs and promisified versions of writeFile and readFile from xod-fs, remove unnecessary messages, update docs. And update all consumers. 2017-04-24 19:56:40 +03:00
Kirill Shumilov
fc80a2fe04 refactor(xod-arduino-builder, xod-cli, xod-client-electron): make all Promises in xod-arduino-builder returns unified object CmdResult and use it in packages-consumers 2017-04-24 19:56:40 +03:00
Evgeny Kochetkov
08c60dd8d3 fix(xod-cli): all transpilers now return Either, no more hacks required 2017-04-19 15:38:39 +03:00
Alexander Matsievsky
92025f85e2 feat(xod-cli): as a pro-xoder, I want to xodc install some/libname so that I can utilize 3rd-party work
Bug: libraries should not be overwritten if exist already

Closes #188.
2017-03-27 15:27:57 +03:00
Alexander Matsievsky
ac3ba2615c feat(xod-cli): as a pro-xoder, I want to xodc install some/libname so that I can utilize 3rd-party work
Closes #188.
2017-03-27 13:49:21 +03:00
Kirill Shumilov
e59132d063 refactor(xod-cli): make xod-cli works correctly with Either, that returns from transpileForArduino 2017-03-23 18:42:26 +03:00
Kirill Shumilov
d3d6943622 feat(xod-cli): add transpiling for arduino target from xod-cli 2017-03-23 18:41:48 +03:00
Alexander Matsievsky
c845602514 feat(xod-cli): implement publishing new library semver with xodc (#429)
Closes #428.
2017-03-23 17:16:07 +03:00
Kirill Shumilov
61d0ec31d0 refactor(xod-cli): refactor xodc and add migrate command into doc 2017-02-17 21:53:31 +03:00
Kirill Shumilov
4bde7f2782 refactor,feat(xod-cli): make transpiling command works properly and make migrare throws error if something went wrong 2017-02-17 18:18:58 +03:00
Kirill Shumilov
d8ad6fa5cc feat(xod-cli): add migrating command into xod-cli (xodc m /path/to/old/bundle.xodball /path/to/save/new/bundle.xodball) 2017-02-17 18:18:37 +03:00
Alexander Matsievsky
f590ac4dca feat(xod-cli): as a pro-xoder I want to compile and upload code for Arduino from CLI so that I can xod without running Arduino IDE (#369)
Closes #340.
2017-02-16 09:24:37 +03:00
Kirill Shumilov
6be945c732 refactor(*): enable and fix import/imports-first rule 2017-01-16 18:40:55 +03:00
Kirill Shumilov
3ad4f3f795 refactor(*): enable and fix arrow-parens rule 2017-01-16 18:35:27 +03:00
Kirill Shumilov
5062f7d55d refactor(xod-cli, xod-client): enable and fix no-undef rule and remove excessive functions from browser.js 2017-01-16 18:24:51 +03:00
Fedor Kamshilin
6f5596dfaa fix(xod-doc): fix pull request issues
fix(xod-doc): fix pull request issues

fix(xod-doc): fix pull request issues
2016-12-16 15:43:17 +03:00
Fedor Kamshilin
1cab8cf3c3 feat(xod-doc): add generator for documentation 2016-12-16 13:12:59 +03:00
Kirill Shumilov
934c0bf710 refactor(xod-cli): replace ugly switch with simple code 2016-11-22 11:56:50 +03:00
Kirill Shumilov
f72dedc765 refactor(xod-js): rename transpiling functions from ‘espruino’ and ‘nodejs’ into ‘transpileForEspruino’ and ‘transpileForNodeJS’ 2016-11-21 20:24:05 +03:00
Kirill Shumilov
4b796d6831 feat(xod-cli): add a selecting a target in the xod-cli and add build:tree:xod-cli script 2016-11-21 20:24:05 +03:00
Kirill Shumilov
f13f8801dc refactor(xod-js): rename xod-espruino into xod-js, and it will contain transpiler and runtime for any js-lang targets (espruino, nodejs) 2016-11-21 20:24:05 +03:00
Kirill Shumilov
1ec43c7357 fix(xod-cli): fix eslint error by removing unused var 2016-11-10 13:35:03 +03:00
Kirill Shumilov
3d7202ea55 fix(xod-fs, xod-cli): fix writeFile exporting for saving output in xod-cli 2016-11-10 13:02:38 +03:00
Victor Nakoryakov
96303c0a16 fix(cli): make linter happy 2016-11-03 13:28:40 +03:00
Victor Nakoryakov
9111320a0d chore(cli): sane trace messages 2016-11-03 13:21:04 +03:00
Victor Nakoryakov
c0f64f8ee2 fix(cli): sane error codes 2016-11-03 13:12:53 +03:00
Victor Nakoryakov
9b82a77503 chore(cli): remove spinner as it hard-coded to polute stdout 2016-11-03 13:10:42 +03:00