Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Use package.json to install less
Browse files Browse the repository at this point in the history
  • Loading branch information
duncansmart committed Feb 3, 2014
1 parent b9f11c0 commit bcecd58
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
10 changes: 10 additions & 0 deletions bin/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "lessjs-windows",
"version": "0.0.1",
"dependencies" : {
"less" : ">=0.1"
},
"engine": {
"node": ">=0.6"
}
}
9 changes: 2 additions & 7 deletions build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@ if not exist node.exe (
)

:: Install/Update less (assumes npm is installed globally)
if exist "node_modules\less" (
echo Updating less
call npm update less --quiet
) else (
echo Installing less
call npm install less --quiet
)
echo Install/update less ...
call npm update --quiet

:: Due to the way node_modules work, the directory depth can get very deep and go beyond MAX_PATH (260 chars).
:: Therefore grab all node_modues directories and move them up to base node_modules. Node's require() will then
Expand Down

0 comments on commit bcecd58

Please sign in to comment.