dtwo 2.17.0

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023-present Dtwo Team
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,42 @@
1
+ # Dtwo
2
+
3
+ > Build your next Kdu(2) application with confidence using Dtwo: a framework making web development simple and powerful.
4
+
5
+ ## Features
6
+
7
+ - Automatic transpilation and bundling (with webpack and babel)
8
+ - Hot code reloading
9
+ - Server-side rendering OR Single Page App OR Static Generated, you choose :fire:
10
+ - Static file serving. `./static/` is mapped to `/`
11
+ - Configurable with a `dtwo.config.js` file
12
+ - Custom layouts with the `layouts/` directory
13
+ - Middleware
14
+ - Code splitting for every `pages/`
15
+ - Loading just the critical CSS (page-level)
16
+
17
+ Learn more at <https://dtwojs-v2.web.app>.
18
+
19
+ ## Getting started
20
+
21
+ ```sh
22
+ $ npx create-dtwo-app <project-name>
23
+ ```
24
+
25
+ It's as simple as that!
26
+
27
+ Learn more at https://dtwojs-2.web.app/guide/installation
28
+
29
+ ## Production deployment
30
+
31
+ To deploy, instead of running dtwo, you probably want to build ahead of time. Therefore, building and starting are separate commands:
32
+
33
+ ```bash
34
+ dtwo build
35
+ dtwo start
36
+ ```
37
+
38
+ Learn more at https://dtwojs-v2.web.app/guide/commands#production-deployment
39
+
40
+ ## License
41
+
42
+ [MIT](./LICENSE)
package/bin/dtwo.js ADDED
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+
3
+ global.__DTWO_PATHS__ = (global.__DTWO_PATHS__ || []).concat(__dirname)
4
+
5
+ const suffix = require('../package.json').name.includes('-edge') ? '-edge' : ''
6
+ require('@dtwo/cli' + suffix).run()
7
+ .catch((error) => {
8
+ require('consola').fatal(error)
9
+ process.exit(2)
10
+ })
package/dist/dtwo.js ADDED
@@ -0,0 +1,37 @@
1
+ /*!
2
+ * dtwo v2.17.0 (c) 2023-2023
3
+ * Released under the MIT License
4
+ * Repository: https://github.com/d2js/framework
5
+ * Website: https://dtwojs-v2.web.app
6
+ */
7
+ 'use strict';
8
+
9
+ const core = require('@dtwo/core');
10
+ const builder = require('@dtwo/builder');
11
+ const generator = require('@dtwo/generator');
12
+ const cli = require('@dtwo/cli');
13
+
14
+
15
+
16
+ Object.defineProperty(exports, 'getWebpackConfig', {
17
+ enumerable: true,
18
+ get: function () { return cli.getWebpackConfig; }
19
+ });
20
+ Object.keys(core).forEach(function (k) {
21
+ if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
22
+ enumerable: true,
23
+ get: function () { return core[k]; }
24
+ });
25
+ });
26
+ Object.keys(builder).forEach(function (k) {
27
+ if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
28
+ enumerable: true,
29
+ get: function () { return builder[k]; }
30
+ });
31
+ });
32
+ Object.keys(generator).forEach(function (k) {
33
+ if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
34
+ enumerable: true,
35
+ get: function () { return generator[k]; }
36
+ });
37
+ });
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "dtwo",
3
+ "version": "2.17.0",
4
+ "description": "A minimalistic framework for server-rendered Kdu.js applications (inspired by Next.js)",
5
+ "keywords": [
6
+ "dtwo",
7
+ "dtwo.js",
8
+ "dtwojs",
9
+ "ssr",
10
+ "kdu",
11
+ "kdu isomorphic",
12
+ "kdu server side",
13
+ "kdu ssr",
14
+ "kdu universal",
15
+ "kdu versatile",
16
+ "kdu.js",
17
+ "kdujs"
18
+ ],
19
+ "repository": "d2js/framework",
20
+ "license": "MIT",
21
+ "main": "dist/dtwo.js",
22
+ "bin": {
23
+ "dtwo": "./bin/dtwo.js"
24
+ },
25
+ "files": [
26
+ "bin",
27
+ "dist",
28
+ "webpack.config.js"
29
+ ],
30
+ "scripts": {
31
+ "postinstall": "opencollective || exit 0"
32
+ },
33
+ "dependencies": {
34
+ "@dtwo/babel-preset-app": "2.17.0",
35
+ "@dtwo/builder": "2.17.0",
36
+ "@dtwo/cli": "2.17.0",
37
+ "@dtwo/components": "^2.2.1",
38
+ "@dtwo/config": "2.17.0",
39
+ "@dtwo/core": "2.17.0",
40
+ "@dtwo/generator": "2.17.0",
41
+ "@dtwo/kdu-app": "2.17.0",
42
+ "@dtwo/kdu-renderer": "2.17.0",
43
+ "@dtwo/loading-screen": "^2.0.4",
44
+ "@dtwo/opencollective": "^0.3.3",
45
+ "@dtwo/server": "2.17.0",
46
+ "@dtwo/telemetry": "^1.4.1",
47
+ "@dtwo/utils": "2.17.0",
48
+ "@dtwo/webpack": "2.17.0"
49
+ },
50
+ "collective": {
51
+ "url": "https://opencollective.com/kdu-platforms",
52
+ "logoUrl": "https://opencollective.com/kdu-platforms/logo.txt?reverse=true&variant=variant2"
53
+ }
54
+ }
@@ -0,0 +1,4 @@
1
+ module.exports = function () {
2
+ const { getWebpackConfig } = require('.')
3
+ return getWebpackConfig()
4
+ }