NativeScript - How to add plugin to "angular-seed" template - nativescript

I've cloned the following Github repo to bootstrap my NativeScript application.
https://github.com/mgechev/angular-seed
I now want to run to the following command to add a toast message plugin.
tns plugin add nativescript-toast
However, I get the following error when I run the command.
No project found at or above 'C:\src\angular-seed' and neither was a --path specified.
I've tried running the command from the directory with the package.json file and the "src/client" directory as well.
Does anyone know what I'm doing wrong?

This repository https://github.com/mgechev/angular-seed support only Angular.
You should be using this repository Angular seed advanced
https://github.com/NathanWalker/angular-seed-advanced
To install the plugin:
cd nativescript && tns plugin add nativescript-toast

Related

Error due to "BuildRequires: maven-local" in spec file for Packaging Maven project

Issue : I am following the URL. https://docs.fedoraproject.org/en-US/java-packaging-howto/packaging_maven_project/ to create a spec file for the rpm package.
In the website "BuildRequires: maven-local" is mentioned in the spec file.
but when I tried to search 'maven-local' using yum search maven-local command, I could not find anything and as I was not able to install the component, I'm getting an error when I am trying to do rpmbuild.
Note: I even installed maven separately in my system but it did not help me to fix the issue.

Build/Run Elasticsearch Locally with plugins

(On Elasticsearch version 6.5.1)
How can I build/run Elasticsearch from source with local plugins?
I've tried the following command to install the plugins:
./distribution/build/cluster/run\ node0/elasticsear-6.5.1-SNAPSHOT/bin/elasticsearch-plugin install file:/<path_to_plugin_zip> and that says it successfully installed the plugin.
However, when I run elasticsearch via ./gradlew run --debug-jvm, it cleans out the contents of that directory before running ES.
The reason I installed the plugin into that particular directory is that I put a debugger in the PluginsService.java file, and saw that the Path pluginsDirectory parameter in the constructor was set to /Users/jreback/Desktop/elasticsearch/distribution/build/cluster/run node0/elasticsearch-6.5.1-SNAPSHOT/plugins.
So, how can I get my plugin installed on my local ES version and run ES such that the plugin code doesn't get removed as the process starts up? Many thanks in advance!
FWIW, I got this working with some manual code changes (there may be or likely is a more recommended way to do this, but this worked for me).
In my ES checkout, I made the following code change to server/src/main/java/org/elasticsearch/env/Environment.java:
replace this line: pluginsFile = homeFile.resolve("plugins"); with pluginsFile = Paths.get("<path to plugin directory");
(Also, you must import java.nio.file.Paths at the top of that file).
The directory structure for the directory you listed above should look like this:
- plugin parent directory (should whatever you put in the Environment.java file)
- plugin directory (name of the plugin)
- plugin-descriptor.properties file
- plugin jar file (generated from building the plugin in some prior step)
Then you should see that it loaded the plugin you've just added in the logs when you start up ES again.

Export a Eclipse RCP product from command Line

I tried different way to export it but i couldn't succeed in it.
I need a way to export my product file which is located in my workspace.
If you need to implement do that using command lines, you must compile the product using maven with tycho. You will need to implement every module as a artifact in Maven.
After the configuration you only need to run:
mvn clean install
Please read this link:
https://www.eclipse.org/tycho/
Here is the tutorial to configure your project:
https://www.vogella.com/tutorials/EclipseTycho/article.html

Incorrect build output when using ckbuilder

I had downloaded CKEDITOR version 4.5.5 and used the online CKBUILDER tool to remove the plugins not required. Now I need to add one more plugin - 'clipboard', to do so I am following the steps mentioned below:
git clone https://github.com/ckeditor/ckeditor-dev.git branch 4.5.x
copy pasted the build-config.js file from my downloaded version and added one plugin to the plugin list
edited build.sh from VERSION="4.5.11 dev" to VERSION="4.5.5"
ran build.sh
I still see all the plugins getting generated in release/ckeditor folder. But the excluded plugins are not built with ckeditor.js file. Thus I have only copied 'clipboard' plugin folder, ckeditor.js file and the lang folder. Does this seem correct or shall I copy all the previous plugins too?
Is my approach correct to get the correct version build by changing the VERSION variable to 4.5.5?

custom shell script: github keeps asking for password

I would like to know how to stop GitHub from asking for password over and over while running a custom shell script.
I have an installation script for a project. It installs cordova plugins from private GitHub repositories. The file goes like this:
...
cordova plugin add https://github.com/some/repo1.git
cordova plugin add https://github.com/some/repo2.git
cordova plugin add https://github.com/some/repo3.git
cordova plugin add https://github.com/some/repo4.git
...
For every line that gets executed, the shell prompts for password. Is there a way to authenticate only once?
You must use ssh urls instead of https.
cordova plugin add git#github.com:owner/repo1.git
cordova plugin add git#github.com:owner/repo2.git
cordova plugin add git#github.com:owner/repo3.git
cordova plugin add git#github.com:owner/repo4.git
Here is how to initialize your ssh configuration: https://help.github.com/articles/generating-ssh-keys/

Resources