I'm using Telerik AppBuilder Cli to build an app for IOS. I am also using libimobiledevice which allows me to install the app directly onto my iPhone for debugging.
I'm using a batch script to build the app, and I want the same build script to install the app after the build is completed and the .IPA file is created.
The problem I am running into, is that there doesn't seem to be a proper callback when the Appbuilder Cli has finished building the app. My attempted solution was to use the && syntax like so:
appbuilder build `arguments` && goto install
:install
idevice install `arguments`
The form of my script has :install before the build ( so it can be used conditionally in case I want to build without installing ). However the install callback never fires. I double-checked my conditional, and the only thing I can figure is that the Appbuilder Cli is ignoring the && or something.
Is there a proper way to be notified when the build process is complete? Or is there a javascript library for Appbuilder apart from the cli version?
Thanks
AppBuilder CLI has a command that will build and deploy the application directly. Just use:
appbuilder deploy <platform>
And this will deploy the application on the specified platform, for example ios.
You can find more information in the documentation.
Also you can use appbuilder help deploy to check the help of the command.
Related
I have the following setup:
A local UI library I'm developing
An Angular application that is consuming that library
I am using NPM link so that I don't have to publish the library every time I want to test changes in the application that is consuming it.
The Angular application is being served via the Angular CLI (ng serve --aot)
I am watching the UI library for changes so that it automatically builds using gulp watch
I have two problems:
Whenever I make a change to the library, gulp watch will trigger a new build. However, this build fails with the following error:
Error: EPERM: operation not permitted, unlink
I can solve this problem by triggering manual builds of the UI library, but there is another problem: the running application sees changes to the linked library, and triggers its own build as soon as the UI library build starts. This creates a race condition whereby the Angular CLI will not wait for the UI library to finish building.
What is the correct, standard way to watch for changes in a local NPM library, with an Angular CLI application, using NPM link?
I stumbled upon this node.js cli tool that verifies two .json files against each other:
https://bitbucket.org/atlassian/swagger-mock-validator
Now to use it, you have to install it via npm and execute it through cli commands.
I want to set up an angular application in which I can use this validation tool (without needing a command line terminal).
Is this possible? If so, how? Do I have to rewrite the whole thing?
Thanks in advance!
I am writing a javascript library that is npm linked to my meteor app. I didn't yet publish the library to npm so it is only local.
Now my problem is, that I want to debug inside the library while using it in my meteor app.
I can debug the meteor app components and using a sourcemap and a standalone html test page also the library itself. But as soon as I use import Library from 'library' in meteor it minifies, uglifies and mangles it.
Is there a way to tell either meteor's build system or my browser to use the library's source map?
Thanks in advance
You can try removing the Meteor minifier package until you need it again:
meteor remove standard-minifier-js
Reason:
I am doing one POC SPA with Angular2(using RC version).
Limited by company policy, we cannot install Node.JS, so Webpack is not available to me.
By now, there are 800+ HTTP requests(total 2.5 MB) at least once I load App home. Because we have developed many components among the App.
Question:
May you please advise me on How I can do minimize&packaging Angular2 code without Node.JS? (something like Third Party Library, Eclipse plugin and so on)
In other words, I want the Front-end one key deployment would be involved.
I think it would obviously increase performance.
Thank you in advance.
Disclaimer, I'm the author of Angular2 Eclipse.
I suggest you that you try Angular2 Eclipse which is based on TypeScript IDE.
When you install TypeScript IDE, you can install an embed node.js, so without installing at hand the node.js, you will benefit with TypeScript completion, validation, compilation, etc (which requires node.js to consume TypeScript tsserver).
You can even choose your version of TypeScript
Angular2 Eclipse provide the Angular CLI integration with terminal, wizards, launches, but in this case you need to install node.js (because it uses ng command that you must install it with npm install -g angular-cli
Please create an issue to give the capability to use ng command without installation:
ng should use the embed node.js (to avoid installing node.js)
provide an Eclipse Preference to link ng to a custom path (the custom path could be the angular-cli project that will download and host in your GIT, SVN repository).
Can anybody explain me what is the real difference between these commands and what they specifically do:
cordova build
cordova run
cordova compile
cordova prepare
Reading from the doc doesn't help much https://cordova.apache.org/docs/en/4.0.0/guide/cli/#link-5
I have doubts because, for example, the command build and the command run both seems to build the app...
The order should be prepare -> compile -> build -> run. You can read in reverse second time to understand it better.
cordova run
- If you have already build the app, it simply runs. if you have not built the app then cordova will first build it and then run it. You cannot run a native app if it is not built (unlike web apps in browser).
cordova build
- Before you run you must build. As cordova supports multiple platforms you may specify iOS as target for the build phase. during build phase the necessary packaging is done for the targeted platform.
cordova compile
- A compile command is meant to check if your written code is perfect and no syntax error (or a reference error) exists.
cordova prepare
- A prepare is the phase before compilation. As cordova need to first convert your code to target the specific (iOS/android) platform, sometime a few developers optimize their code by first writing the code which is common for all platforms and then choosing prepare and writing platform specific code for iOS or Android for their ease. This step is also done in a situation when you do not find a good solution in cordova and want to write your own code to glue natively in platform.
Cordova has two separate phases in it's build process, Prepare and Compile.
Prepare basically copies the www folder into the platform specified, and any additional platform steps needed.
Compile will compile the app into a binary, (apk for android, .app for ios, etc)
The other commands are simply shortcuts for joining commands. The reason it is split out so much is so you can make hooks into before/after each step, if you need to run any custom code.
Build will run the the Prepare and Compile steps for you, since this is the most common usecase.
Run will call build before installing the finished app (and launching the emulator if --device wasn't specified). Looking at their docs I just learned you can run --nobuild to skip the build step!
Reading their docs was actually really helpful, so I would recommend doing that as well. https://cordova.apache.org/docs/en/latest/reference/cordova-cli/index.htm