-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modifies buildpack.toml to have node-start optional in npm and yarn build groups. Adds integration test to cover various cases for npm and yarn.
- Loading branch information
Showing
21 changed files
with
429 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file here to suppress "npm WARN package.json [email protected] No README data" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "simple_app_no_start_script", | ||
"version": "0.0.0", | ||
"description": "some app", | ||
"scripts": { | ||
"some-script": "echo \"npm scripts running!\"", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "", | ||
"dependencies": { | ||
"leftpad": "~0.0.1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "" | ||
}, | ||
"engines": { | ||
"node": "~14" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const http = require('http'); | ||
const leftpad = require('leftpad'); | ||
|
||
const port = process.env.PORT || 8080; | ||
|
||
const server = http.createServer((request, response) => { | ||
response.end(JSON.stringify(process.env)) | ||
}); | ||
|
||
server.listen(port, (err) => { | ||
if (err) { | ||
return console.log('something bad happened', err); | ||
} | ||
|
||
console.log(`NOT vendored server is listening on ${port}`); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file here to suppress "npm WARN package.json [email protected] No README data" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "simple_app_with_src_dir", | ||
"version": "0.0.0", | ||
"description": "some app", | ||
"scripts": { | ||
"start": "node src/server.js", | ||
"some-script": "echo \"npm scripts running!\"", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "", | ||
"dependencies": { | ||
"leftpad": "~0.0.1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "" | ||
}, | ||
"engines": { | ||
"node": "~14" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const http = require('http'); | ||
const leftpad = require('leftpad'); | ||
|
||
const port = process.env.PORT || 8080; | ||
|
||
const server = http.createServer((request, response) => { | ||
response.end(JSON.stringify(process.env)) | ||
}); | ||
|
||
server.listen(port, (err) => { | ||
if (err) { | ||
return console.log('something bad happened', err); | ||
} | ||
|
||
console.log(`NOT vendored server is listening on ${port}`); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file here to suppress "npm WARN package.json [email protected] No README data" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "simple", | ||
"version": "0.0.0", | ||
"description": "some app", | ||
"scripts": { | ||
"some-script": "echo \"yarn scripts running!\"", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "MIT", | ||
"dependencies": { | ||
"leftpad": "~0.0.1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const http = require('http') | ||
const leftpad = require('leftpad') | ||
const port = process.env.PORT || 8080 | ||
|
||
const requestHandler = (request, response) => { | ||
response.end("Hello, World!") | ||
} | ||
|
||
const server = http.createServer(requestHandler) | ||
|
||
server.listen(port, (err) => { | ||
if (err) { | ||
return console.log('something bad happened', err) | ||
} | ||
|
||
console.log(`server is listening on ${port}`) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
# yarn lockfile v1 | ||
|
||
|
||
leftpad@~0.0.1: | ||
version "0.0.1" | ||
resolved "https://registry.yarnpkg.com/leftpad/-/leftpad-0.0.1.tgz#86b1a4de4face180ac545a83f1503523d8fed115" | ||
integrity sha1-hrGk3k+s4YCsVFqD8VA1I9j+0RU= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file here to suppress "npm WARN package.json [email protected] No README data" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "simple_app", | ||
"version": "0.0.0", | ||
"description": "some app", | ||
"scripts": { | ||
"start": "node src/server.js", | ||
"some-script": "echo \"yarn scripts running!\"", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "MIT", | ||
"dependencies": { | ||
"leftpad": "~0.0.1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const http = require('http') | ||
const leftpad = require('leftpad') | ||
const port = process.env.PORT || 8080 | ||
|
||
const requestHandler = (request, response) => { | ||
response.end("Hello, World!") | ||
} | ||
|
||
const server = http.createServer(requestHandler) | ||
|
||
server.listen(port, (err) => { | ||
if (err) { | ||
return console.log('something bad happened', err) | ||
} | ||
|
||
console.log(`server is listening on ${port}`) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
# yarn lockfile v1 | ||
|
||
|
||
leftpad@~0.0.1: | ||
version "0.0.1" | ||
resolved "https://registry.yarnpkg.com/leftpad/-/leftpad-0.0.1.tgz#86b1a4de4face180ac545a83f1503523d8fed115" | ||
integrity sha1-hrGk3k+s4YCsVFqD8VA1I9j+0RU= |
Oops, something went wrong.