Merge pull request #2239 from hswolff/package-json-updates

Update package.json for publishing to npm
This commit is contained in:
Hannah Wolfe 2014-02-24 14:54:20 +00:00
commit eec07a5306
3 changed files with 39 additions and 29 deletions

28
.npmignore Normal file
View File

@ -0,0 +1,28 @@
!**
.build
.dist
docs/**
_site/**
content/images/**
!content/images/README.md
content/themes/**
!content/themes/casper/**
content/apps/**
!content/apps/README.md
node_modules/**
core/test/**
core/client/assets/sass/**
core/server/data/export/exported*
**/*.db*
*.db*
.sass*
.af*
.git*
.groc*
*.iml
config.js
CONTRIBUTING.md
SECURITY.md
.travis.yml
Gemfile*
*.html

View File

@ -15,34 +15,17 @@ var path = require('path'),
// ## Build File Patterns
// a list of files and paterns to process and exclude when running builds & releases
buildGlob = [
'**',
'!docs/**',
'!_site/**',
'!content/images/**',
'content/images/README.md',
'!content/themes/**',
'content/themes/casper/**',
'!content/apps/**',
'content/apps/README.md',
'!node_modules/**',
'!core/test/**',
'!core/client/assets/sass/**',
'!core/server/data/export/exported*',
'!**/*.db*',
'!*.db*',
'!.sass*',
'!.af*',
'!.git*',
'!.groc*',
'!*.iml',
'!config.js',
'!CONTRIBUTING.md',
'!SECURITY.md',
'!.travis.yml',
'!Gemfile*',
'!*.html'
],
// It is taken from the .npmignore file and all patterns are inverted as the .npmignore
// file defines what to ignore, whereas we want to define what to include.
buildGlob = (function () {
/*jslint stupid:true */
return fs.readFileSync('.npmignore', {encoding: 'utf8'}).split('\n').map(function (pattern) {
if (pattern[0] === '!') {
return pattern.substr(1);
}
return '!' + pattern;
});
}()),
// ## Grunt configuration

View File

@ -15,7 +15,6 @@
},
"bugs" : "https://github.com/TryGhost/Ghost/issues",
"contributors": "https://github.com/TryGhost/Ghost/graphs/contributors",
"private" : true,
"licenses" : [
{
"type": "MIT",