@teambit/empty-env 0.0.0-fd10e8471149ce28e732d0a602a32eaf3ab955f4 → 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/.npmignore +18 -0
- package/dist/empty-env.docs.mdx +23 -0
- package/dist/empty-env.main.runtime.d.ts +3 -3
- package/dist/empty-env.main.runtime.js +4 -4
- package/dist/empty-env.main.runtime.js.map +1 -1
- package/dist/preview-1785493814568.js +7 -0
- package/empty-env.docs.mdx +23 -0
- package/package.json +10 -10
- package/types/style.d.ts +4 -0
- package/dist/preview-1783404721878.js +0 -7
package/.npmignore
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
dist/tsconfig.tsbuildinfo
|
|
2
|
+
dist/tsconfig.json
|
|
3
|
+
/tsconfig.json
|
|
4
|
+
|
|
5
|
+
package-tar/
|
|
6
|
+
.bit-capsule-ready
|
|
7
|
+
/*.ts
|
|
8
|
+
artifacts/*
|
|
9
|
+
!artifacts/env-template
|
|
10
|
+
!artifacts/ui-bundle
|
|
11
|
+
!artifacts/preview-bundle
|
|
12
|
+
package-tar/
|
|
13
|
+
.bit-capsule-ready
|
|
14
|
+
/*.ts
|
|
15
|
+
artifacts/*
|
|
16
|
+
!artifacts/env-template
|
|
17
|
+
!artifacts/ui-bundle
|
|
18
|
+
!artifacts/preview-bundle
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: An env that provides no development tooling, designed as the default for components with no configured env
|
|
3
|
+
labels: ['core aspect', 'env', 'environment', 'default']
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Overview
|
|
7
|
+
|
|
8
|
+
The empty env intentionally provides nothing - no compiler, no tester, no preview and no
|
|
9
|
+
dependency policy - so components are used as-source and Bit works fully out of the box, without
|
|
10
|
+
fetching anything from a remote. It is designed to serve as the default env for components that
|
|
11
|
+
were not configured with any env.
|
|
12
|
+
|
|
13
|
+
It has no behavior on purpose: any behavior baked into a core env changes components' output when
|
|
14
|
+
Bit itself changes, without any env-version bump.
|
|
15
|
+
|
|
16
|
+
## Getting a development experience
|
|
17
|
+
|
|
18
|
+
To get a development experience (compile, test, lint, docs), configure a real env on the
|
|
19
|
+
component. For example:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
bit env set my-component teambit.harmony/node
|
|
23
|
+
```
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Environment, EnvsMain } from '@teambit/envs';
|
|
2
2
|
export declare const EmptyEnvType = "empty";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* as
|
|
4
|
+
* an env that intentionally provides nothing - no compiler, no tester, no preview, no
|
|
5
|
+
* dependencies policy - so components are used as-source and bit works fully offline out of the
|
|
6
|
+
* box. designed to serve as the default env for components that were not configured with any env.
|
|
7
7
|
*
|
|
8
8
|
* it has no behavior on purpose: any behavior baked into a core env changes components' output
|
|
9
9
|
* when bit itself changes, without any env-version bump. to get a development experience (compile,
|
|
@@ -31,9 +31,9 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
31
31
|
const EmptyEnvType = exports.EmptyEnvType = 'empty';
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* as
|
|
34
|
+
* an env that intentionally provides nothing - no compiler, no tester, no preview, no
|
|
35
|
+
* dependencies policy - so components are used as-source and bit works fully offline out of the
|
|
36
|
+
* box. designed to serve as the default env for components that were not configured with any env.
|
|
37
37
|
*
|
|
38
38
|
* it has no behavior on purpose: any behavior baked into a core env changes components' output
|
|
39
39
|
* when bit itself changes, without any env-version bump. to get a development experience (compile,
|
|
@@ -43,7 +43,7 @@ class EmptyEnv {
|
|
|
43
43
|
constructor() {
|
|
44
44
|
_defineProperty(this, "name", 'empty');
|
|
45
45
|
_defineProperty(this, "icon", 'https://static.bit.dev/extensions-icons/default.svg');
|
|
46
|
-
_defineProperty(this, "description", '
|
|
46
|
+
_defineProperty(this, "description", 'provides no development tooling. configure an env to get one');
|
|
47
47
|
}
|
|
48
48
|
async __getDescriptor() {
|
|
49
49
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_cli","data","require","_envs","_emptyEnv","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","EmptyEnvType","exports","EmptyEnv","constructor","__getDescriptor","type","EmptyEnvMain","emptyEnv","provider","envs","registerEnv","MainRuntime","EnvsAspect","EmptyEnvAspect","addRuntime"],"sources":["empty-env.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport type { Environment, EnvsMain } from '@teambit/envs';\nimport { EnvsAspect } from '@teambit/envs';\nimport { EmptyEnvAspect } from './empty-env.aspect';\n\nexport const EmptyEnvType = 'empty';\n\n/**\n *
|
|
1
|
+
{"version":3,"names":["_cli","data","require","_envs","_emptyEnv","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","EmptyEnvType","exports","EmptyEnv","constructor","__getDescriptor","type","EmptyEnvMain","emptyEnv","provider","envs","registerEnv","MainRuntime","EnvsAspect","EmptyEnvAspect","addRuntime"],"sources":["empty-env.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport type { Environment, EnvsMain } from '@teambit/envs';\nimport { EnvsAspect } from '@teambit/envs';\nimport { EmptyEnvAspect } from './empty-env.aspect';\n\nexport const EmptyEnvType = 'empty';\n\n/**\n * an env that intentionally provides nothing - no compiler, no tester, no preview, no\n * dependencies policy - so components are used as-source and bit works fully offline out of the\n * box. designed to serve as the default env for components that were not configured with any env.\n *\n * it has no behavior on purpose: any behavior baked into a core env changes components' output\n * when bit itself changes, without any env-version bump. to get a development experience (compile,\n * test, lint, docs), configure a real env, e.g. `bit env set my-component teambit.harmony/node`.\n */\nexport class EmptyEnv implements Environment {\n name = 'empty';\n\n icon = 'https://static.bit.dev/extensions-icons/default.svg';\n\n description = 'provides no development tooling. configure an env to get one';\n\n async __getDescriptor() {\n return {\n type: EmptyEnvType,\n };\n }\n}\n\nexport class EmptyEnvMain {\n constructor(readonly emptyEnv: EmptyEnv) {}\n\n static runtime = MainRuntime;\n static dependencies = [EnvsAspect];\n\n static async provider([envs]: [EnvsMain]) {\n const emptyEnv = new EmptyEnv();\n envs.registerEnv(emptyEnv);\n return new EmptyEnvMain(emptyEnv);\n }\n}\n\nEmptyEnvAspect.addRuntime(EmptyEnvMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,MAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,UAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,SAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAoD,SAAAI,gBAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAD,CAAA,GAAAI,MAAA,CAAAC,cAAA,CAAAL,CAAA,EAAAC,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAT,CAAA,CAAAC,CAAA,IAAAC,CAAA,EAAAF,CAAA;AAAA,SAAAG,eAAAD,CAAA,QAAAQ,CAAA,GAAAC,YAAA,CAAAT,CAAA,uCAAAQ,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAT,CAAA,EAAAD,CAAA,2B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it.harmony_empty-env@0.0.2/dist/empty-env.docs.mdx';
|
|
3
|
+
|
|
4
|
+
export const compositions = [];
|
|
5
|
+
export const overview = [overview_0];
|
|
6
|
+
|
|
7
|
+
export const compositions_metadata = {"compositions":[]};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: An env that provides no development tooling, designed as the default for components with no configured env
|
|
3
|
+
labels: ['core aspect', 'env', 'environment', 'default']
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Overview
|
|
7
|
+
|
|
8
|
+
The empty env intentionally provides nothing - no compiler, no tester, no preview and no
|
|
9
|
+
dependency policy - so components are used as-source and Bit works fully out of the box, without
|
|
10
|
+
fetching anything from a remote. It is designed to serve as the default env for components that
|
|
11
|
+
were not configured with any env.
|
|
12
|
+
|
|
13
|
+
It has no behavior on purpose: any behavior baked into a core env changes components' output when
|
|
14
|
+
Bit itself changes, without any env-version bump.
|
|
15
|
+
|
|
16
|
+
## Getting a development experience
|
|
17
|
+
|
|
18
|
+
To get a development experience (compile, test, lint, docs), configure a real env on the
|
|
19
|
+
component. For example:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
bit env set my-component teambit.harmony/node
|
|
23
|
+
```
|
package/package.json
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/empty-env",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"homepage": "https://bit.cloud/teambit/harmony/empty-env",
|
|
4
5
|
"main": "dist/index.js",
|
|
5
6
|
"componentId": {
|
|
7
|
+
"scope": "teambit.harmony",
|
|
6
8
|
"name": "empty-env",
|
|
7
|
-
"version": "
|
|
8
|
-
"scope": "teambit.harmony"
|
|
9
|
+
"version": "0.0.2"
|
|
9
10
|
},
|
|
10
11
|
"dependencies": {
|
|
11
|
-
"@teambit/harmony": "0.4.
|
|
12
|
-
"@teambit/cli": "0.0.
|
|
13
|
-
"@teambit/envs": "
|
|
12
|
+
"@teambit/harmony": "0.4.12",
|
|
13
|
+
"@teambit/cli": "0.0.1360",
|
|
14
|
+
"@teambit/envs": "1.0.1087"
|
|
14
15
|
},
|
|
15
16
|
"devDependencies": {
|
|
16
|
-
"@teambit/harmony.envs.core-aspect-env": "0.
|
|
17
|
+
"@teambit/harmony.envs.core-aspect-env": "2.0.4"
|
|
17
18
|
},
|
|
18
19
|
"peerDependencies": {},
|
|
19
20
|
"license": "Apache-2.0",
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
"peerDependenciesMeta": {},
|
|
22
23
|
"exports": {
|
|
23
24
|
".": {
|
|
24
|
-
"types": "./index.ts",
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
25
26
|
"node": {
|
|
26
27
|
"require": "./dist/index.js",
|
|
27
28
|
"import": "./dist/esm.mjs"
|
|
@@ -29,8 +30,7 @@
|
|
|
29
30
|
"default": "./dist/index.js"
|
|
30
31
|
},
|
|
31
32
|
"./dist/*": "./dist/*",
|
|
32
|
-
"./artifacts/*": "./artifacts/*"
|
|
33
|
-
"./*": "./*.ts"
|
|
33
|
+
"./artifacts/*": "./artifacts/*"
|
|
34
34
|
},
|
|
35
35
|
"private": false,
|
|
36
36
|
"engines": {
|
package/types/style.d.ts
CHANGED
|
@@ -40,3 +40,7 @@ declare module '*.mdx' {
|
|
|
40
40
|
const component: any;
|
|
41
41
|
export default component;
|
|
42
42
|
}
|
|
43
|
+
|
|
44
|
+
// `reset-css` ships only `reset.css` (no `.d.ts`). TS6 refuses bare
|
|
45
|
+
// side-effect imports without declarations, so we declare the module here.
|
|
46
|
+
declare module 'reset-css';
|