Граф коммитов

115 Коммитов

Автор SHA1 Сообщение Дата
Stoyan Stratev 2c8f1470b0 fix: pages do not support non-default app path from nsconfig.json 2018-09-12 17:07:57 +03:00
Stoyan Stratev 6b3c896432 better check... 2017-11-08 15:14:38 +02:00
Stoyan Stratev 402c4fcb9a Allow using different page templates package versions 2017-11-08 14:21:58 +02:00
Stoyan Stratev 8f0e89c6a5
do an easier check
process.platform should always be win32 regardless of 32/64bit OS
2017-10-31 10:00:59 +02:00
Stoyan Stratev e717a4d9d9 fix check for win32 platform 2017-10-31 09:47:24 +02:00
mdonev 3e21e3006e Ignore max-length lint errors 2017-10-19 17:44:15 +03:00
boris dbb4053234 Fixed npm spawn error on windows platforms and addressed comments in the PR 2017-10-19 15:44:22 +03:00
boris 12da582005 Removed getPageTemplate from the git service file 2017-10-18 15:29:04 +03:00
boris fe7d868f8e Migrated page templates git cloning to installing from npm
Signed-off-by: boris <boris.karastanev@progress.com>
2017-10-18 14:48:20 +03:00
boris b4f2a102bf Updated definition names
Signed-off-by: boris <boris.karastanev@progress.com>
2017-10-11 14:30:16 +03:00
boris 1b08cb0537 Refactored services and definitions 2017-10-11 13:58:48 +03:00
Martin Yankov 0b43ff2d49 Refactor promises 2017-10-04 11:48:26 +03:00
boris 827965155e Refactored gitApiService -> githubService
Signed-off-by: boris <boris.karastanev@progress.com>
2017-09-27 13:52:07 +03:00
boris 769b4074b8 Fixed service required twice error
Signed-off-by: boris <boris.karastanev@progress.com>
2017-09-27 13:45:15 +03:00
Stoyan Stratev 3baeb9550e New branch for removing Git API and using NPM registry instead. 2017-09-21 10:19:26 +03:00
Alexander Djenkov 015a33b9ea Move getPageTemplatesBaseUrl to git-service 2017-09-20 16:59:07 +03:00
Alexander Djenkov dd6f076be7 Extract clonePageTemplate to git-service 2017-09-20 15:43:38 +03:00
Alexander Djenkov f3dce4b756 Modify template service to meet some tests requirements 2017-09-20 13:03:06 +03:00
Alexander Djenkov 5655721071 Remove unnecessary ensurePageTemplate method 2017-09-14 14:50:56 +03:00
boris 534ae5ea0d Ensured the pages download directory and refactored code abbreviations
in the page-service and util files

Signed-off-by: boris <boris.karastanev@progress.com>
2017-09-14 14:23:17 +03:00
Alexander Djenkov 54e5a760a4 Fix failing grunt pack. 2017-09-13 18:05:54 +03:00
Boris Karastanev 86af9ee631 Merge pull request #29 from NativeScript/bkarastanev/fix-github-issue
Bkarastanev/fix GitHub issue
2017-09-13 15:37:50 +03:00
boris 1d4c51e31f Removed unused getTemplatesNames function
Signed-off-by: boris <boris.karastanev@progress.com>
2017-09-13 15:02:24 +03:00
boris 1830f95e3e Refactored all function and variable abbreviations
Signed-off-by: boris <boris.karastanev@progress.com>
2017-09-13 14:42:56 +03:00
boris d616a8de98 Reverted changes blocking github api calls
Signed-off-by: boris <boris.karastanev@progress.com>
2017-09-13 10:44:17 +03:00
Alexander Djenkov 28732bb85f Update extension version 2017-09-12 11:45:58 +03:00
Alexander Djenkov ae8756c996 Finalize addPage functionality. Render pages with ejs 2017-09-11 11:12:17 +03:00
Alexander Djenkov af5cd6a5b7 WIP 2017-09-11 09:48:25 +03:00
Stoyan Stratev 40809428b7 Revert usage of Github API for now 2017-09-08 15:40:31 +03:00
boris 7ed8ce0cfd Code refactoring based on pull request comments
Signed-off-by: boris <boris.karastanev@progress.com>
2017-09-05 11:24:04 +03:00
boris b966122eab Refactored promise chaining in tha addPage function
and refactored code to match tslint

Signed-off-by: boris <boris.karastanev@progress.com>
2017-09-04 17:11:17 +03:00
boris 7e30a9c78b Added page exists check to the addPage method
Signed-off-by: boris <boris.karastanev@progress.com>
2017-09-04 17:02:39 +03:00
boris 8710bdf25e Refactored downloadPage method
Signed-off-by: boris <boris.karastanev@progress.com>
2017-09-04 16:00:17 +03:00
boris da261f73fa Added two new functions to the util class
pageExists() - Checks if page template has been prevoisly downloaded

getPageTemplatesBaseUrl() - returns a base url to the NativeScript Github Organization page based on page template flavor
2017-09-04 15:59:51 +03:00
bkarastanev 8a880f926c Added a new method: downloadPage(pageName: string)
and refactored addPage
2017-08-31 16:49:53 +03:00
bkarastanev 154331283a Implemented addPage mockup function
Signed-off-by: bkarastanev <bkarastanev@linux-r4ow.site>
2017-08-31 15:58:44 +03:00
boris dacd19dcee Refactored backup data and getPages method
Signed-off-by: boris <boris.karastanev@progress.com>
2017-08-30 16:59:39 +03:00
boris 9f903eb490 Fixed a typo
Signed-off-by: boris <boris.karastanev@progress.com>
2017-08-30 15:54:16 +03:00
boris 04d95ee722 Renamed checkFlavor -> getFlavor
Signed-off-by: boris <boris.karastanev@progress.com>
2017-08-30 14:56:43 +03:00
boris 556aa3e78f Refactored definitions
Signed-off-by: boris <boris.karastanev@progress.com>
2017-08-24 15:16:54 +03:00
boris 1bf253590f Added a checkFlavor method
Signed-off-by: boris <boris.karastanev@progress.com>
2017-08-24 15:16:44 +03:00
boris c32ef769e8 Added a new method getPackageJsonFromSource
Signed-off-by: boris <boris.karastanev@progress.com>
2017-08-23 15:52:38 +03:00
boris 651a86a83d Added getPages function
getPages returns data from the pages-backup-data based on the template flavor

Signed-off-by: boris <boris.karastanev@progress.com>
2017-08-23 15:51:44 +03:00
boris db8494df1c Renamed backup-data file and added pages-backup-data
Signed-off-by: boris <boris.karastanev@progress.com>
2017-08-23 15:50:05 +03:00
boris 12be987197 initial page service test
Signed-off-by: boris <boris.karastanev@progress.com>
2017-08-22 15:05:52 +03:00
boris a4a79db3ba Updated definitions file and removed all unused code in the template-service.ts file
Signed-off-by: boris <boris.karastanev@progress.com>
2017-08-21 14:23:46 +03:00
Alexander Djenkov cdc5398988 Add new tslint rules and apply some refactoring. 2017-08-18 13:58:37 +03:00
boris 695c285acd Added Kinvey templates to the extension
Signed-off-by: boris <boris.karastanev@progress.com>
2017-08-11 15:04:41 +03:00
boris ab61a9d3bb Fixed backup data issue
Signed-off-by: boris <boris.karastanev@progress.com>
2017-08-09 16:37:51 +03:00
boris 94d08ea941 Refactor service to provide hardcoded template names
old: _getNsGitRepos(uri: string, repos: Array<any>)

new: _getTemplatesNames()

Signed-off-by: boris <boris.karastanev@progress.com>
2017-08-07 15:13:02 +03:00