Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to watch puppy.api.js for changes #3

Merged
merged 3 commits into from
Jun 25, 2018
Merged

Conversation

pitops
Copy link
Collaborator

@pitops pitops commented Jun 25, 2018

No description provided.

@pitops pitops requested a review from michaelthe June 25, 2018 11:24
src/api.js Outdated
const apiOnDemandResponses = {}

const apiFile = path.resolve(process.cwd(), process.env.API)
let apiFile = path.resolve(process.cwd(), process.env.API)
let apiDefaultResponses = {}

if (fs.existsSync(apiFile)) {
Object.assign(apiDefaultResponses, require(apiFile))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the assign from here also..

@michaelthe michaelthe merged commit 41369bc into master Jun 25, 2018
@michaelthe michaelthe deleted the apiFileWatch branch June 26, 2018 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants