@stacksjs/server 0.38.3

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/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ # MIT License
2
+
3
+ Copyright (c) 2022 Open Web Foundation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # Stacks Server
2
+
3
+ ## โ˜˜๏ธ Features
4
+
5
+ - easily access the server's configuration
6
+
7
+ ## ๐Ÿค– Usage
8
+
9
+ ```bash
10
+ pnpm i -D @stacksjs/server
11
+ ```
12
+
13
+ Now, you can use it in your project:
14
+
15
+ ```js
16
+ import { server } from '@stacksjs/server'
17
+
18
+ console.log('server config is', server)
19
+ ```
20
+
21
+ Learn more in the docs.
22
+
23
+ ## ๐Ÿงช Testing
24
+
25
+ ```bash
26
+ pnpm test
27
+ ```
28
+
29
+ ## ๐Ÿ“ˆ Changelog
30
+
31
+ Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
32
+
33
+ ## ๐Ÿ’ช๐Ÿผ Contributing
34
+
35
+ Please see [CONTRIBUTING](../../.github/CONTRIBUTING.md) for details.
36
+
37
+ ## ๐Ÿ Community
38
+
39
+ For help, discussion about best practices, or any other conversation that would benefit from being searchable:
40
+
41
+ [Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)
42
+
43
+ For casual chit-chat with others using this package:
44
+
45
+ [Join the Open Web Discord Server](https://discord.ow3.org)
46
+
47
+ ## ๐Ÿ“„ License
48
+
49
+ The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
50
+
51
+ Made with โค๏ธ
@@ -0,0 +1,4 @@
1
+ export declare const config: {
2
+ port: number;
3
+ open: boolean;
4
+ };
@@ -0,0 +1,4 @@
1
+ export const config = {
2
+ port: 3333,
3
+ open: true
4
+ };
@@ -0,0 +1,9 @@
1
+ import { config as server } from './config';
2
+ export { server };
3
+ declare const _default: {
4
+ server: {
5
+ port: number;
6
+ open: boolean;
7
+ };
8
+ };
9
+ export default _default;
package/dist/index.mjs ADDED
@@ -0,0 +1,3 @@
1
+ import { config as server } from "./config.mjs";
2
+ export { server };
3
+ export default { server };
@@ -0,0 +1,2 @@
1
+ declare const _default: import("nitropack").NitroConfig;
2
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { defineNitroConfig } from "nitropack";
2
+ import { projectPath } from "@stacksjs/path";
3
+ export default defineNitroConfig({
4
+ srcDir: projectPath()
5
+ });
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "@stacksjs/server",
3
+ "type": "module",
4
+ "version": "0.38.3",
5
+ "packageManager": "pnpm@7.15.0",
6
+ "description": "The Stacks plug-n-play servers.",
7
+ "author": "Chris Breuer",
8
+ "license": "MIT",
9
+ "funding": "https://github.com/sponsors/chrisbbreuer",
10
+ "homepage": "https://github.com/stacksjs/stacks/tree/main/.stacks/core/server#readme",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/stacksjs/stacks.git",
14
+ "directory": "./.stacks/core/server"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/stacksjs/stacks/issues"
18
+ },
19
+ "keywords": [
20
+ "server",
21
+ "vite",
22
+ "nitro",
23
+ "automation",
24
+ "aws",
25
+ "google cloud",
26
+ "stacks"
27
+ ],
28
+ "main": "dist/index.mjs",
29
+ "module": "dist/index.mjs",
30
+ "types": "dist/index.d.ts",
31
+ "contributors": [
32
+ "Chris Breuer <chris@ow3.org>"
33
+ ],
34
+ "files": [
35
+ "dist",
36
+ "README.md"
37
+ ],
38
+ "engines": {
39
+ "node": ">=v18.12.1",
40
+ "pnpm": ">=7.15.0"
41
+ },
42
+ "peerDependencies": {
43
+ "@stacksjs/path": "0.38.3",
44
+ "nitropack": "^0.6.1",
45
+ "vite": "^3.2.3"
46
+ },
47
+ "devDependencies": {
48
+ "mkdist": "^0.4.0",
49
+ "typescript": "^4.8.4"
50
+ },
51
+ "scripts": {
52
+ "build": "mkdist -d",
53
+ "dev": "mkdist -d",
54
+ "typecheck": "tsc --noEmit"
55
+ }
56
+ }