build script in package.json using webpack with –config flag as
Use: npm run build Reason: npm start & npm test are shortcuts for npm run start & npm run test, for any other npm tasks, you have to specify “run”
Use: npm run build Reason: npm start & npm test are shortcuts for npm run start & npm run test, for any other npm tasks, you have to specify “run”
A recommended first step is to use the latest npm: npm install -g npm (You may need sudo). You are using npm 2.x, the latest is 3.5.x.
EDIT: As mentioned by Marie and James if you only want to run the command if it exists, npm has an option for that: npm run test –if-present This way you can have a generic script that work with multiple projects (that may or may not have an specific task) without having the risk of … Read more
UPDATE: Alexander’s answer is the better solution and uses the same technique I describe here. I am leaving my answer in tact for posterity. The original point of my answer was to show that you can execute a small node script which should work on all platforms. In your preinstall script you can run a … Read more
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) ]; } } }
I had exacly the same problem and just figured it out, I hope this helps someone. First I changed the vue template compiler to: “vue-template-compiler”: “2.6.11” and the I also had to change the vue version to the latest realese, in my case: “vue”: “2.6.11”
Looks like it’s a problem with Peer Dependencies try with npm install –legacy-peer-deps.
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
I was struggling with this as well. I added the following to the top of the TS file that contained the import {bootstrap} line: ///<reference path=”../node_modules/angular2/typings/browser.d.ts”/> Your path may be different of course for that file.
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