Can't remove node_modules from excluded folders in WebStorm - webstorm

Recently WebStorm marked node_modules as excluded and I can't remove it from excluded list. Furthermore in Directories menu, node_modules is not in Excluded folders (see picture below), although node_modules icon is red. When I try to remove node_modules from excluded, nothing happens.
Does anybody know how to remove node_modules from excluded folders?

Related

are we supposed to commit the android and ios folders after doing expo prepublish?

I just ran expo prepublish and it generated a .gitignore and ios/ and android/ folders. Am I supposed to commit the ios/ and android/ folders because it wasn't explicitly excluded by the .gitignore
You can delete the ios/android folder unless you've made some changes in it.

Visual Studio 2017 and Git Clone

This is driving me crazy. We are using a local installation of gitlab and I'm trying to create a new remote repository from Visual Studio, for a new solution.
If I try creating the solution first, then Git clone, it complains the folder is not empty.
If I empty the folder and clone the repository, works, but then I cannot create the solution because it complains the folder is not empty.
So how the heck I am supposed to create a new clone for a new solution?! The remote repository has only readme.md file in it.
I had the same issue, and I found the same workaround (git clone empty repository, copy .git folder to my app folder, then sync).
Lately, I found that it's much simpler:
open your solution in VS
select "add to source control" (bottom right corner), then select "git"
a local .git folder is created, VS also populates .gitignore and .gitattributes, and commits.
now, you can notice that Team Explorer page shows a "Publish Git Repo" button, press it
enter an URL pointing to a non-existent git repo, e.g. "https://gitlab.com/full/path/to/myproject.git"
press "Publish" button
that's all.
Obviously, you must have installed GitLab extension for visual studio, before.
HTH.

ember folder contains only gitkeep file

after creating a folder in ember I see nothing but a file called ".gitkeep" in all the folders such as routes and templates(in every folder). This problem seems to be repeating after trying to install many times..
.gitkeep files are here to force git to commit the directory. By default git do not version folder and an ember-cli project is by default a git repository. (unless you specified --skip-git).
A new ember-cli project should contain at least app/templates/application.hbs because this is all you need to start.
You can add routes and controllers with ember generate route and ember generate controller.

Best directory structure for modified addons in /node_modules in an ember.js app?

I have a number of addons that I have modified, all managed with git. When upgrading, I need to be careful to not delete these modules when emptying the node_modules directory in preparation for npm install.
Is there a solution to this, such as nesting customized modules in another directory, either under node_modules or elsewhere? What configuration, if any, would be needed?
You should create your own Ember addons, using original modules as base, instead of manually directly editing addons' files in node_modules directory.

What is the .idea folder?

When I create a project in JetBrains WebStorm, a folder called .idea gets created. Is it okay if I delete it? Will it affect my project?
When you use the IntelliJ IDE, all the project-specific settings for the project are stored under the .idea folder.
Project settings are stored with each specific project as a set of xml
files under the .idea folder. If you specify the default project
settings, these settings will be automatically used for each newly
created project.
Check this documentation for the IDE settings and here is their recommendation on Source Control and an example .gitignore file.
Note: If you are using git or some version control system, you might want to set this folder "ignore".
Example - for git, add this directory to .gitignore. This way, the application is not IDE-specific.
There is no problem in deleting this. It's not only the WebStorm IDE creating this file, but also PhpStorm and all other of JetBrains' IDEs.
It is safe to delete it but if your project is from GitLab or GitHub then you will see a warning.
As of year 2020, JetBrains suggests to commit the .idea folder.
The JetBrains IDEs (webstorm, intellij, android studio, pycharm, clion, etc.) automatically add that folder to your git repository (if there's one).
Inside the folder .idea, has been already created a .gitignore, updated by the IDE itself to avoid to commit user related settings that may contains privacy/password data.
It is safe (and usually useful) to commit the .idea folder.
It contains your local IntelliJ IDE configs. I recommend adding this folder to your .gitignore file:
# intellij configs
.idea/
The reason my device was not being recognized was because my emulator was frozen.
What helped me was to wipe my emulator's data.
Android Emulator freezes
Checkout #gimme-the-411 's comment on this thread.