Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed npm package

  • Loading branch information...
commit 44649632cfddc9d2787aac1c2f45b850e87125ee 1 parent 51d5d79
@RoyJacobs authored
View
1  .gitignore
@@ -13,4 +13,5 @@ build/output/lib
build/output/*.nu*
build/output/*.json*
build/output/*.tgz*
+build/output/.npmignore
.idea
View
3  build/build-linux
@@ -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
@@ -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
View
3  build/build-windows.bat
@@ -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
@@ -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%
View
6 build/npm/.npmignore
@@ -0,0 +1,6 @@
+.npmignore
+*.tgz
+intravenous-latest.debug.js
+intravenous-latest.js
+package.json
+Package.nuspec
View
53 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"
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.