From ddb3973cf18615d3a71f478517fbfb60d4771a38 Mon Sep 17 00:00:00 2001 From: Austen Collins Date: Wed, 5 Aug 2015 19:13:09 -0700 Subject: [PATCH] Fix all module renaming issues --- api/users/show/index.js | 2 +- api/users/signin/index.js | 2 +- api/users/signup/index.js | 2 +- cli/lib/main.js | 6 +++--- cli/package.json | 2 +- lib/config/config.js | 2 +- lib/models/model_user.js | 2 +- lib/package.json | 2 +- package.json | 2 +- site/package.json | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/api/users/show/index.js b/api/users/show/index.js index 52cf8a5b823..381400a7c47 100644 --- a/api/users/show/index.js +++ b/api/users/show/index.js @@ -3,7 +3,7 @@ */ // Dependencies -var MiddlewareIncoming = require('app-lib').middleware.Incoming; +var MiddlewareIncoming = require('jaws-lib').middleware.Incoming; // Function exports.handler = function(event, context) { diff --git a/api/users/signin/index.js b/api/users/signin/index.js index 30110371243..2593ef36f6f 100644 --- a/api/users/signin/index.js +++ b/api/users/signin/index.js @@ -3,7 +3,7 @@ */ // Dependencies -var ModelUser = require('app-lib').models.User; +var ModelUser = require('jaws-lib').models.User; // Function exports.handler = function(event, context) { diff --git a/api/users/signup/index.js b/api/users/signup/index.js index 5e2d47580b8..18693c3995d 100644 --- a/api/users/signup/index.js +++ b/api/users/signup/index.js @@ -3,7 +3,7 @@ */ // Dependencies -var ModelUser = require('app-lib').models.User; +var ModelUser = require('jaws-lib').models.User; // Function exports.handler = function(event, context) { diff --git a/cli/lib/main.js b/cli/lib/main.js index 82ada380c03..761ade3591b 100755 --- a/cli/lib/main.js +++ b/cli/lib/main.js @@ -88,7 +88,7 @@ JAWS.prototype.deploy = function(program) { // Require ENV Variables require('dotenv').config({ - path: process.cwd() + '/node_modules/app-lib/.env' + path: process.cwd() + '/node_modules/jaws-lib/.env' }); // Defaults @@ -125,8 +125,8 @@ JAWS.prototype.deploy = function(program) { // If node_modules folder doesn't exist, create it if (!fs.existsSync(codeDirectory + '/node_modules')) fs.mkdirSync(codeDirectory + '/node_modules'); - // Copy app-lib - wrench.copyDirSyncRecursive(process.cwd() + lib_path, codeDirectory + '/node_modules/app-lib'); + // Copy jaws-lib + wrench.copyDirSyncRecursive(process.cwd() + lib_path, codeDirectory + '/node_modules/jaws-lib'); // Zip function _this._zip(program, codeDirectory, function(err, buffer) { diff --git a/cli/package.json b/cli/package.json index 40dc2ffaae8..a5ec94915fb 100644 --- a/cli/package.json +++ b/cli/package.json @@ -1,6 +1,6 @@ { "name": "jaws-cli", - "version": "0.0.2", + "version": "0.0.3", "description": "The JAWS Command line interface for easy testing and deploying of Lambda functions and more!", "author": "Austen Collins ", "license": "MIT", diff --git a/lib/config/config.js b/lib/config/config.js index 0324fb445b0..5e00f901aa3 100755 --- a/lib/config/config.js +++ b/lib/config/config.js @@ -4,7 +4,7 @@ // Require ENV variables require('dotenv').config({ - path: process.cwd() + '/node_modules/app-lib/.env' + path: process.cwd() + '/node_modules/jaws-lib/.env' }); diff --git a/lib/models/model_user.js b/lib/models/model_user.js index 776dae09658..6d8bdf6e6a5 100755 --- a/lib/models/model_user.js +++ b/lib/models/model_user.js @@ -170,7 +170,7 @@ User.prototype.signIn = function(data, callback) { // Update User user.sign_in_count++; - + console.log(user); /** * Save diff --git a/lib/package.json b/lib/package.json index 84ab216f04d..e03904cb46d 100755 --- a/lib/package.json +++ b/lib/package.json @@ -1,6 +1,6 @@ { "name": "jaws-lib", - "version": "0.0.2", + "version": "0.0.3", "description": "The JAWS Stack's App Library. This is for re-usable, modular code that you can require in both your server and lambda functions", "author": "Austen Collins ", "repository": { diff --git a/package.json b/package.json index 12ea3c6f189..f5cc00dc80b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jaws-stack", - "version": "0.0.2", + "version": "0.0.3", "description": "JAWS – The Javascript + AWS Stack", "author": "Austen Collins ", "repository": { diff --git a/site/package.json b/site/package.json index 42f18acae53..db2cedd8825 100644 --- a/site/package.json +++ b/site/package.json @@ -1,6 +1,6 @@ { "name": "jaws-dev-server", - "version": "0.0.2", + "version": "0.0.3", "description": "The JAWS Stack's local development server for you to use while building your website and static assets.", "author": "Austen Collins ", "license": "MIT",