Permalink
Browse files

cleanup npm install

  • Loading branch information...
1 parent edfb7a8 commit 17dffc8684fd462448d0b600f42f9e7d352a28cc @lancejpollard lancejpollard committed Oct 9, 2012
Showing with 14 additions and 3 deletions.
  1. +5 −1 .npmignore
  2. +8 −1 bin/install
  3. +1 −1 packages/tower-generator/server/generators/tower/app/templates/cake
View
@@ -1,16 +1,20 @@
.DS_Store
.git/
+.git*
wiki/
docs/
dist/
examples/
+example/
+log/
+components/
favicon.ico
-/grunt.coffee
doc/
test/
tmp/
build/
.travis.yml
+.gitmodules
ROADMAP.md
inspiration.md
/config.json
View
@@ -107,9 +107,16 @@ var isWindows = process.platform == 'win32';
var isLinux = process.platform == 'linux';
if (command == 'dependencies') {
- var packageJSON = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'package.json'), 'utf-8'));
+ var packageJSONPath = path.join(__dirname, '..', 'package.json');
+ var packageJSON = JSON.parse(fs.readFileSync(packageJSONPath, 'utf-8'));
var dependencies = [];
+ // @todo
+ // packageJSON.from == path where node module came from
+ // maybe have a `debug` version where you install tower debug
+ // and copy/paste your output to a gist so we can know the value different
+ // operating systems put into package.json
+
var testDependencies = Object.keys(packageJSON['testDependencies']);
var globalDependencies = Object.keys(packageJSON['globalDependencies']);
var localDependencies = Object.keys(packageJSON['localDependencies']);
@@ -61,7 +61,7 @@ task 'db:drop', ->
# This puts your Tower app in production mode, used for special tasks
task 'environment', ->
Tower.env = 'production'
-# This initializes your Tower application, used for special taks
+ # This initializes your Tower application, used for special taks
Tower.Application.instance().initialize()
# This displays all of the routes for your Tower app

0 comments on commit 17dffc8

Please sign in to comment.