@appsemble/tsconfig 0.23.1

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,126 @@
1
+ # GNU LESSER GENERAL PUBLIC LICENSE
2
+
3
+ Version 3, 29 June 2007
4
+
5
+ Copyright © 2018 Appsemble B.V. <https://appsemble.com>
6
+
7
+ Everyone is permitted to copy and distribute verbatim copies of this license document, but changing
8
+ it is not allowed.
9
+
10
+ This version of the GNU Lesser General Public License incorporates the terms and conditions of
11
+ version 3 of the GNU General Public License, supplemented by the additional permissions listed
12
+ below.
13
+
14
+ ## 0. Additional Definitions.
15
+
16
+ As used herein, _“this License”_ refers to version 3 of the GNU Lesser General Public License, and
17
+ the _“GNU GPL”_ refers to version 3 of the GNU General Public License.
18
+
19
+ _“The Library”_ refers to a covered work governed by this License, other than an Application or a
20
+ Combined Work as defined below.
21
+
22
+ An _“Application”_ is any work that makes use of an interface provided by the Library, but which is
23
+ not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed
24
+ a mode of using an interface provided by the Library.
25
+
26
+ A _“Combined Work”_ is a work produced by combining or linking an Application with the Library. The
27
+ particular version of the Library with which the Combined Work was made is also called the _“Linked
28
+ Version”_.
29
+
30
+ The _“Minimal Corresponding Source”_ for a Combined Work means the Corresponding Source for the
31
+ Combined Work, excluding any source code for portions of the Combined Work that, considered in
32
+ isolation, are based on the Application, and not on the Linked Version.
33
+
34
+ The _“Corresponding Application Code”_ for a Combined Work means the object code and/or source code
35
+ for the Application, including any data and utility programs needed for reproducing the Combined
36
+ Work from the Application, but excluding the System Libraries of the Combined Work.
37
+
38
+ ## 1. Exception to Section 3 of the GNU GPL.
39
+
40
+ You may convey a covered work under sections 3 and 4 of this License without being bound by section
41
+ 3 of the GNU GPL.
42
+
43
+ ## 2. Conveying Modified Versions.
44
+
45
+ If you modify a copy of the Library, and, in your modifications, a facility refers to a function or
46
+ data to be supplied by an Application that uses the facility (other than as an argument passed when
47
+ the facility is invoked), then you may convey a copy of the modified version:
48
+
49
+ - a) under this License, provided that you make a good faith effort to ensure that, in the event an
50
+ Application does not supply the function or data, the facility still operates, and performs
51
+ whatever part of its purpose remains meaningful, or
52
+ - b) under the GNU GPL, with none of the additional permissions of this License applicable to that
53
+ copy.
54
+
55
+ ## 3. Object Code Incorporating Material from Library Header Files.
56
+
57
+ The object code form of an Application may incorporate material from a header file that is part of
58
+ the Library. You may convey such object code under terms of your choice, provided that, if the
59
+ incorporated material is not limited to numerical parameters, data structure layouts and accessors,
60
+ or small macros, inline functions and templates (ten or fewer lines in length), you do both of the
61
+ following:
62
+
63
+ - a) Give prominent notice with each copy of the object code that the Library is used in it and that
64
+ the Library and its use are covered by this License.
65
+ - b) Accompany the object code with a copy of the GNU GPL and this license document.
66
+
67
+ ## 4. Combined Works.
68
+
69
+ You may convey a Combined Work under terms of your choice that, taken together, effectively do not
70
+ restrict modification of the portions of the Library contained in the Combined Work and reverse
71
+ engineering for debugging such modifications, if you also do each of the following:
72
+
73
+ - a) Give prominent notice with each copy of the Combined Work that the Library is used in it and
74
+ that the Library and its use are covered by this License.
75
+ - b) Accompany the Combined Work with a copy of the GNU GPL and this license document.
76
+ - c) For a Combined Work that displays copyright notices during execution, include the copyright
77
+ notice for the Library among these notices, as well as a reference directing the user to the
78
+ copies of the GNU GPL and this license document.
79
+ - d) Do one of the following:
80
+ 1. Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding
81
+ Application Code in a form suitable for, and under terms that permit, the user to recombine or
82
+ relink the Application with a modified version of the Linked Version to produce a modified
83
+ Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding
84
+ Source.
85
+ 2. Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is
86
+ one that (a) uses at run time a copy of the Library already present on the user’s computer
87
+ system, and (b) will operate properly with a modified version of the Library that is
88
+ interface-compatible with the Linked Version.
89
+ - e) Provide Installation Information, but only if you would otherwise be required to provide such
90
+ information under section 6 of the GNU GPL, and only to the extent that such information is
91
+ necessary to install and execute a modified version of the Combined Work produced by recombining
92
+ or relinking the Application with a modified version of the Linked Version. (If you use option
93
+ 4d0, the Installation Information must accompany the Minimal Corresponding Source and
94
+ Corresponding Application Code. If you use option 4d1, you must provide the Installation
95
+ Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding
96
+ Source.)
97
+
98
+ ## 5. Combined Libraries.
99
+
100
+ You may place library facilities that are a work based on the Library side by side in a single
101
+ library together with other library facilities that are not Applications and are not covered by this
102
+ License, and convey such a combined library under terms of your choice, if you do both of the
103
+ following:
104
+
105
+ - a) Accompany the combined library with a copy of the same work based on the Library, uncombined
106
+ with any other library facilities, conveyed under the terms of this License.
107
+ - b) Give prominent notice with the combined library that part of it is a work based on the Library,
108
+ and explaining where to find the accompanying uncombined form of the same work.
109
+
110
+ ## 6. Revised Versions of the GNU Lesser General Public License.
111
+
112
+ The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General
113
+ Public License from time to time. Such new versions will be similar in spirit to the present
114
+ version, but may differ in detail to address new problems or concerns.
115
+
116
+ Each version is given a distinguishing version number. If the Library as you received it specifies
117
+ that a certain numbered version of the GNU Lesser General Public License _“or any later version”_
118
+ applies to it, you have the option of following the terms and conditions either of that published
119
+ version or of any later version published by the Free Software Foundation. If the Library as you
120
+ received it does not specify a version number of the GNU Lesser General Public License, you may
121
+ choose any version of the GNU Lesser General Public License ever published by the Free Software
122
+ Foundation.
123
+
124
+ If the Library as you received it specifies that a proxy can decide whether future versions of the
125
+ GNU Lesser General Public License shall apply, that proxy’s public statement of acceptance of any
126
+ version is permanent authorization for you to choose that version for the Library.
package/README.md ADDED
@@ -0,0 +1,67 @@
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.23.1/config/assets/logo.svg) Appsemble TypeScript presets
2
+
3
+ > Reusable TypeScript presets recommended by Appsemble
4
+
5
+ [![npm](https://img.shields.io/npm/v/@appsemble/sdk)](https://www.npmjs.com/package/@appsemble/sdk)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.23.1/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.23.1)
7
+ [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)
8
+
9
+ ## Table of Contents
10
+
11
+ - [Installation](#installation)
12
+ - [Usage](#usage)
13
+ - [DOM](#dom)
14
+ - [Preact](#preact)
15
+ - [Mini JSX](#mini-jsx)
16
+ - [License](#license)
17
+
18
+ ## Installation
19
+
20
+ ```sh
21
+ npm install @appsemble/tsconfig
22
+ ```
23
+
24
+ ## Usage
25
+
26
+ ### DOM
27
+
28
+ The `dom` preset configures TypeScript for usage in the browser. This is the main export from this
29
+ package.
30
+
31
+ To use it, add the following to your `tsconfig.json` file.
32
+
33
+ ```json
34
+ {
35
+ "extends": "@appsemble/tsconfig"
36
+ }
37
+ ```
38
+
39
+ ### Preact
40
+
41
+ The `preact` preset configures TypeScript for usage with [Preact](https://preactjs.com/).
42
+
43
+ To use it, add the following to your `tsconfig.json` file.
44
+
45
+ ```json
46
+ {
47
+ "extends": "@appsemble/tsconfig/preact"
48
+ }
49
+ ```
50
+
51
+ ### Mini JSX
52
+
53
+ The `mini-jsx` preset configures TypeScript for usage with
54
+ [`mini-jsx`](https://github.com/remcohaszing/mini-jsx).
55
+
56
+ To use it, add the following to your `tsconfig.json` file.
57
+
58
+ ```json
59
+ {
60
+ "extends": "@appsemble/tsconfig/mini-jsx"
61
+ }
62
+ ```
63
+
64
+ ## License
65
+
66
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.23.1/LICENSE.md) ©
67
+ [Appsemble](https://appsemble.com)
package/dom.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "composite": true,
5
+ "lib": ["esnext", "dom", "dom.iterable"],
6
+ "module": "esnext",
7
+ "moduleDetection": "force",
8
+ "moduleResolution": "bundler",
9
+ "noEmit": true,
10
+ "noUncheckedIndexedAccess": false,
11
+ "resolveJsonModule": true,
12
+ "sourceMap": true,
13
+ "skipLibCheck": true,
14
+ "strict": true,
15
+ "stripInternal": true,
16
+ "target": "es2019"
17
+ }
18
+ }
package/mini-jsx.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./dom.json",
4
+ "compilerOptions": {
5
+ "jsx": "react-jsx",
6
+ "jsxImportSource": "mini-jsx"
7
+ }
8
+ }
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@appsemble/tsconfig",
3
+ "version": "0.23.1",
4
+ "type": "commonjs",
5
+ "description": "The recommended TypeScript configuration for building Appsemble blocks",
6
+ "keywords": [
7
+ "app",
8
+ "apps",
9
+ "appsemble",
10
+ "framework",
11
+ "low-code",
12
+ "lowcode",
13
+ "ts",
14
+ "tsconfig",
15
+ "typescript"
16
+ ],
17
+ "homepage": "https://appsemble.app",
18
+ "bugs": "https://gitlab.com/appsemble/appsemble/issues",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://gitlab.com/appsemble/appsemble.git",
22
+ "directory": "packages/tsconfig"
23
+ },
24
+ "license": "LGPL-3.0-only",
25
+ "author": "Appsemble <info@appsemble.com> (https://appsemble.com)",
26
+ "sideEffects": false,
27
+ "files": [
28
+ "*.json",
29
+ "!tsconfig.json"
30
+ ],
31
+ "exports": {
32
+ ".": "./dom.json",
33
+ "./mini-jsx": "./mini-jsx.json",
34
+ "./preact": "./preact.json"
35
+ },
36
+ "scripts": {
37
+ "test": "vitest"
38
+ },
39
+ "engines": {
40
+ "node": ">=18"
41
+ }
42
+ }
package/preact.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./dom.json",
4
+ "compilerOptions": {
5
+ "jsx": "react-jsx",
6
+ "jsxImportSource": "preact"
7
+ }
8
+ }