Ionic and Capacitor: How can i change the capacitor.config.ts file to a capacitor.config.json file? - json

I created an Angular/Ionic project with capacitor. Now I wanted to make changes in my capacitor.config.json but this file is missing? Instead there is the capacitor.config.ts?!
I need the JSON File because otherwise a specific plugin doesnt work!
Here are pictures of my directory and my package.json:
Directory and Files
package.json file

Capacitor 3 allows to have .json, .js or .ts config file.
npx cap init command will create a .ts file if typescript is installed
If you don’t want a .ts file you can just remove it and create a .json file, but everything should still work no matter what the config file extension is.

The version I'm using has the file you require.
application files
ionic version
Please try out ionic 6.18.1 version if possible.

Related

How do I convert .md to .html USING Hugo WITHOUT 3rd party themes?

When running hugo -D I could see the .xml files getting generated by default.
Any configuration changes needed or how can I get the very simple .HTML file converted from .MD file
You can disable XML generation in the config file.

Pylint nested pylintrc : Specify a configuration file

Goal
I want to use pylint without specifying the file path (just run pylint instead of pylint --rcfile=linter/.pylintrc), as I want to save all linter related files in a subfolder linter/.
I thought of adding a .pylintrc file at the root folder only a redirection to the actual config file linter/.pylintrc.
Exploration
The option rcfile seems to be what I look for, it doesn't seems to import the settings from the sub-folder. What am I missing ?
Proposed .pylintrc file for redirection:
[MASTER]
# Specify a configuration file.
rcfile=subfolder/.pylintrc
This is not supported in pylint see this pull request

python3 when saving a file it doesn't save to same directory as the EXE pyinstaller

I have used Pyinstaller to pack my script as onedir EXE, then installed to Program Files folder. i used this line to save a json to a file:
json.dump(data, open("data_file.json",'w'))
on some computers the file saved to where EXE is which is what i want, but others save it to different locations.
so when i try to get the file using json.load it says not file found:
json.load(open("data_file.json"), encoding="utf-8")
How can i solve this issue so the script only save files to the same EXE directory?
The cause of the problem is related to writing permission on windows. so instead of writing app data to the Program Files folder which is not recommended, you need to write the data to APPDATA folder.
i have used the code posted by giuliano-oliveira and it works perfectly cross platform.
get_user_data_dir

Can't add the Mobile Apps Tracking bindings to my project

I'm trying to use the MAT bindings in my project however it seems that the .jar file is not included on: http://libgdx.badlogicgames.com/robovm-ios-bindings/
I have also tried adding it to my project by downloading the repository from: https://github.com/BlueRiverInteractive/robovm-ios-bindings/tree/master/mobileapptracking and adding the project to my Robovm build path but it's not working as well.
Any idea how to solve this ?
Thanks,
ASM
I have made a bindings project into a jar file doing the following. I am sure there is an easier way to get the framework in the correct folder, but I have not yet found it.
load bindings project in eclipse
export the source folder (you should get org/robovm/bindings/mobileapptracking/) to .jar file
open the jar file with winrar or similar program
add folder: robovm/ios/libs/ in META-INF folder
add the .framework(s) to this folder
now you should have a similar .jar file as on the libgdx site!

PHPStorm/Webstorm How to have file watcher remove .css if .scss is removed

I am using phpstorm 8.0.3 and I've been using the file watcher feature to compile SCSS to css files. However, when I delete a scss file, the one of the css file is left dangling. In netbeans, it somehow took care of it and deleted the file if the parent file was removed.
Just for testing I set up 2 file watchers. One compiles in place, one is the real file watcher that maps public/scss to public/css
real file watcher
directory structure
dialogue & resulting dangling file