Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

Commit

Permalink
Fixed npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
sagacity committed Jun 25, 2012
1 parent 51d5d79 commit 4464963
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -13,4 +13,5 @@ build/output/lib
build/output/*.nu*
build/output/*.json*
build/output/*.tgz*
build/output/.npmignore
.idea
3 changes: 3 additions & 0 deletions build/build-linux
Expand Up @@ -9,6 +9,8 @@ OutDebugFile='output/intravenous-latest.debug.js'
OutMinFile='output/intravenous-latest.js'
InNpmSpec='npm/package.json'
OutNpmSpec='output/package.json'
InNpmIgnore='npm/.npmignore'
OutNpmIgnore='output/.npmignore'
OutNpmMinFile='output/lib/intravenous.js'

# Combine the source files
Expand Down Expand Up @@ -43,6 +45,7 @@ sed -i~ -e "s/##VERSION##/$Version/g" $OutDebugFile $OutMinFile

# Create NPM
cp $InNpmSpec $OutNpmSpec
cp $InNpmIgnore $OutNpmIgnore
sed -i~ -e "s/##VERSION##/$Version/g" $OutNpmSpec
cp $OutMinFile $OutNpmMinFile

Expand Down
3 changes: 3 additions & 0 deletions build/build-windows.bat
Expand Up @@ -3,6 +3,8 @@ set InNuSpec=nuget\Package.nuspec
set OutNuSpec=output\Package.nuspec
set InNpmSpec=npm\package.json
set OutNpmSpec=output\package.json
set InNpmIgnore=npm\.npmignore
set OutNpmIgnore=output\.npmignore
set OutDebugFile=output\intravenous-latest.debug.js
set OutMinFile=output\intravenous-latest.js
set OutMinNpmFile=output\lib\intravenous.js
Expand Down Expand Up @@ -55,5 +57,6 @@ nuget pack %OutNuSpec% -OutputDirectory output

@rem NPM stuff
copy /y %InNpmSpec% %OutNpmSpec%
copy /y %InNpmIgnore% %OutNpmIgnore%
cscript tools\searchReplace.js "##VERSION##" %VERSION% %OutNpmSpec%
copy /y %OutMinFile% %OutMinNpmFile%
6 changes: 6 additions & 0 deletions build/npm/.npmignore
@@ -0,0 +1,6 @@
.npmignore
*.tgz
intravenous-latest.debug.js
intravenous-latest.js
package.json
Package.nuspec
53 changes: 31 additions & 22 deletions build/npm/package.json
@@ -1,23 +1,32 @@
{
"name": "intravenous",
"files": [
"lib/intravenous.js"
],
"main": "lib/intravenous.js",
"version": "##VERSION##",
"description": "Lightweight dependency injection for Javascript",
"homepage": "http://royjacobs.github.com/intravenous/",
"keywords": [
"di",
"ioc",
"injection"
],
"author": "Roy Jacobs <hello@royjacobs.org> (http://www.royjacobs.org)",
"license": "MIT",
"repositories": [
{
"type": "git",
"url": "https://github.com/RoyJacobs/intravenous"
}
]
}
"name": "intravenous",
"directories": {
"lib": "./lib"
},
"main": "./lib/intravenous.js",
"version": "##VERSION##",
"description": "Lightweight dependency injection for Javascript",
"homepage": "http://royjacobs.github.com/intravenous/",
"keywords": [
"di",
"ioc",
"injection"
],
"author": "Roy Jacobs <hello@royjacobs.org> (http://www.royjacobs.org)",
"license": "MIT",
"repositories": [
{
"type": "git",
"url": "https://github.com/RoyJacobs/intravenous"
}
],
"dependencies": {},
"devDependencies": {},
"engines": {
"node": "*"
},
"repository": {
"type": "git",
"url": "git://github.com/RoyJacobs/intravenous.git"
}
}

0 comments on commit 4464963

Please sign in to comment.