I
I
IJIL2015-01-31 02:33:39
JavaScript
IJIL, 2015-01-31 02:33:39

How to load and keep up-to-date versions of packages in a project?

I use ubuntu.
And also node npm bower sass etc. I'm new to the first three.
How can I add the necessary repositories for example with normalize and jquery to load these packages and keep them up to date naturally through the console? Google didn't answer me unfortunately.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Rodkin, 2015-01-31
@IJIL

In configs, you bower.jsonprescribe package versions through *:

{
  "private": true,
  "dependencies": {
    "normalize-css": "*",
    "underscore": "*",
    "jquery": "*",
    "html5-boilerplate": "*"
  },
  "devDependencies": {
    "almond": "*"
  },
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ]
}

To install and update packages, runbower update

N
Nicholas, 2015-01-31
@Chuv

https://www.npmjs.com/package/npm-check-updates
https://www.npmjs.com/package/bower-update

I
Ivan, 2015-01-31
@0neS

Handles periodically update package.json and bower.json, then in the console npm update [ [ ...]] && bower update

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question