@ms-cloudpack/create-express-app 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +20 -0
- package/CHANGELOG.md +13 -0
- package/README.md +19 -0
- package/package.json +37 -0
package/CHANGELOG.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ms-cloudpack/create-express-app",
|
|
3
|
+
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"date": "Mon, 09 May 2022 18:54:32 GMT",
|
|
6
|
+
"tag": "@ms-cloudpack/create-express-app_v0.0.2",
|
|
7
|
+
"version": "0.0.2",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "dzearing@microsoft.com",
|
|
12
|
+
"package": "@ms-cloudpack/create-express-app",
|
|
13
|
+
"commit": "13c322180c016e6c653d4694b9f3380adeb8ad6f",
|
|
14
|
+
"comment": "Initial publish."
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Change Log - @ms-cloudpack/create-express-app
|
|
2
|
+
|
|
3
|
+
This log was last generated on Mon, 09 May 2022 18:54:32 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
<!-- Start content -->
|
|
6
|
+
|
|
7
|
+
## 0.0.2
|
|
8
|
+
|
|
9
|
+
Mon, 09 May 2022 18:54:32 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Initial publish. (dzearing@microsoft.com)
|
package/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# @ms-cloudpack/create-express-app
|
|
2
|
+
|
|
3
|
+
Helper for creating an express app server with the right plugins.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```js
|
|
8
|
+
import { createExpressApp } from 'create-express-app';
|
|
9
|
+
|
|
10
|
+
const app = creatExpressApp([5000, 5001], (app) => {
|
|
11
|
+
// Set up routes.
|
|
12
|
+
app.get('*', async (req, res) => {
|
|
13
|
+
res.send(`<html>...</html>`);
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
// Stop app when you're done.
|
|
18
|
+
app.close();
|
|
19
|
+
```
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ms-cloudpack/create-express-app",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "An abstraction to bundle source code.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"types": "./lib/index.d.ts",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./lib/index.d.ts",
|
|
11
|
+
"import": "./lib/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"compression": "^1.7.4",
|
|
16
|
+
"cors": "^2.8.5",
|
|
17
|
+
"express": "^4.17.3",
|
|
18
|
+
"get-port": "^6.1.2"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@ms-cloudpack/scripts": "*",
|
|
22
|
+
"@ms-cloudpack/eslint-config-base": "*",
|
|
23
|
+
"@types/compression": "1.7.2",
|
|
24
|
+
"@types/cors": "2.8.12",
|
|
25
|
+
"@types/express": "4.17.13",
|
|
26
|
+
"@types/get-port": "4.2.0"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "just-scripts build",
|
|
30
|
+
"build:watch": "just-scripts build:watch",
|
|
31
|
+
"lint": "just-scripts lint",
|
|
32
|
+
"lint:fix": "just-scripts lint:fix"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"/lib"
|
|
36
|
+
]
|
|
37
|
+
}
|