Warning: connect.static is not a function Use –force to continue

You have to install connect and serve-static: npm install –save-dev grunt-contrib-connect serve-static And then you have to import serve-static in Gruntfile.js: module.exports = function (grunt) { … var serveStatic = require(‘serve-static’); grunt.initConfig({ … connect: { … livereload: { options: { middleware: function(connect) { return [ serveStatic(‘.tmp’), connect().use(‘/bower_components’, serveStatic(‘./bower_components’)), serveStatic(config.app) ]; } } }

Sharing a typescript library in a monorepo

Solution 1: with Lerna you can use workspace and Lerna yarn workspace & lerna ├── README.md ├── lerna.json ├── package.json ├── packages │ ├── pdf │ │ ├── package.json /* “shared-ts”: “^1.0.0” */ │ │ └── src │ ├── frontend │ │ ├── package.json │ │ └── src │ ├── mobile │ │ ├── package.json … Read more

Build and use npm package locally

If you have made these changes on your machine. (I’m assuming you have) Run a build of the ngx-mask package that you changed. run npm pack from that package’s root folder. This creates a .tgz zip file of your package with your custom modifications. copy that file into the root (you could put it wherever … Read more

tech