NestJs - CLI Plugin - enabling the Swagger plugin for npm dependencies - npm

I created a npm DTO library used on different projects (front / back)
On the back side, I use NestJs and I would like to activate the Swagger CLI-Plugin of NestJs (https://docs.nestjs.com/openapi/cli-plugin) on the created library, any idea how to do it?

Related

No option for adding New flutter Web Project in IntelliJ Dart Templates !!! Also tried Vs code, is asking for Which Dart template

I'm trying to start a new Flutter project in Intellij as well as Vs code.
Intellij there is no option provided to add a new flutter web project in Dart templates.
Vs code whenever I select New flutter Web Project after accepting the stagehand it asks for the Dart template which is why I'm stuck.??
Please help soon??
Since flutter 1.9 flutter_web is merged inside flutter, Follow the below steps to create and run your first flutter web App through IntelliJ IDEA.
Create a new flutter project.
Now change your flutter channel to master using flutter channel master
Upgrade flutter flutter upgrade
Install the flutter_web build tools flutter pub global activate webdev
Enable flutter web using flutter config --enable-web
Check available devices flutter devices and you will get a result like:
Chrome • chrome • web-javascript • Google Chrome 81.0.4044.92
Web Server • web-server • web-javascript • Flutter Tools
Inside your flutter project create myapp using flutter create myapp
Navigate inside myapp using cd myapp
Finally, run flutter run -d chrome
And you will be able to run your flutter web app into chrome. Hurray 🤟🏽🤟🏽🥳
Reference links: Building a web application with Flutter , flutter_web
It seems that the support for Flutter Web Apps was dropped in stagehand (that contains the dart templates). From this commit on github: (Dropping Flutter Web sample). Instead, this wikipage shows how to migrate/create a web package in flutter from command line.
Create your project from command-line.
Check out this tutorial. flutter.dev/docs/get-started/web
Then just open the project in IntelliJ IDE.
Install or Update the dart and flutter plugins in Intellij and/or VS Code
For Intellij
Go to [mac] Preferences>Plugins>Marketplace and search for Dart and Flutter, install it.
For VS Code
Go to View > Command Pallet and type in Extensions: Install Extensions
then type flutter and install it
Its well documented in this link
Setup Flutter

How to update Vue.js dependency version in Sails.js?

I installed Sails.js v1.0 as my Node.js framework to work with. I choose the built-in web for this Sails.js initialization. Then
I included Vuetify v2.0.5 framework and it suggested me to update the Vue.js dependency v2.5.17 in Sails.js into Vue.js ^v2.5.18.
I don't want any warnings in my console and I want to get rid of it.
I expect my Sails Vue.js dependency has the latest version.

OpenShift application for web app with minified static files (npm run build)

I'm currently developing a web application composed of:
api: an API built with Flask in Python
app: a web app built with vue-cli (based on webpack), and minified with npm run build
I've successfully built the api with an OpenShift Python S2I (source-to-image) image: python-36-rhel7.
I'd like to be able to automatically build the static web app from source and serve it through Nginx or Apache, in a separate app from the same project.
It should:
download the app source from the git repo (context-dir=/app/)
install npm
build it with npm install and npm run build
serve the built html+js+css files
There exist a node.js S2I image but it seems to be more suited for Express.js apps.
What would be the best way to build and serve a minified static web app on OpenShift?

How to setup Angular CLI project to compile Typescript for Express server

I created an Angular CLI project and followed the excellent MEAN App with Angular 2 and the Angular CLI tutorial to set up an Express server. However the instructions only lay down JavaScript files for the server.
Is there a standard way to alter the Angular CLI configuration to build the server source from Typescript files?

Debug angular2 modules with source mapping

Can you suggest if it is possible to debug code for Angular2 modules with ts source mapping in browser. I used "npm install" command according to https://angular.io/guide/quickstart to install my project. Source mapping is available for my code but not for angular2 modules.
Source mapping is for your code not for angular. By default when you running not bundled angular2 application it will load angular2 modules in browser and when you run your application you can debug through the angular2 modules if that is what you want!