@teambit/node 0.0.518 → 0.0.522

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.
File without changes
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -0,0 +1 @@
1
+ export declare function compositionsFile(): string;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.compositionsFile = compositionsFile;
7
+
8
+ function compositionsFile() {
9
+ return ``;
10
+ }
11
+
12
+ //# sourceMappingURL=compositions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["compositions.ts"],"names":["compositionsFile"],"mappings":";;;;;;;AAAO,SAASA,gBAAT,GAA4B;AACjC,SAAQ,EAAR;AACD","sourcesContent":["export function compositionsFile() {\n return ``;\n}\n"]}
@@ -0,0 +1 @@
1
+ export declare function docFile(): string;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.docFile = docFile;
7
+
8
+ function docFile() {
9
+ return `---
10
+ labels: ['module', 'paths', 'filesystem']
11
+ description: 'A general purpose node module'
12
+ ---
13
+
14
+ This is a customized extension for Node, based of the [Node Aspect](https://bit.dev/teambit/harmony/node).
15
+
16
+ Explain here the modified configurations and tools applied.
17
+ `;
18
+ }
19
+
20
+ //# sourceMappingURL=doc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["doc.ts"],"names":["docFile"],"mappings":";;;;;;;AAAO,SAASA,OAAT,GAAmB;AACxB,SAAQ;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CARE;AASD","sourcesContent":["export function docFile() {\n return `---\nlabels: ['module', 'paths', 'filesystem']\ndescription: 'A general purpose node module'\n---\n\nThis is a customized extension for Node, based of the [Node Aspect](https://bit.dev/teambit/harmony/node).\n\nExplain here the modified configurations and tools applied.\n`;\n}\n"]}
@@ -0,0 +1 @@
1
+ export declare function indexFile(): string;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.indexFile = indexFile;
7
+
8
+ // import { ComponentContext } from '@teambit/generator';
9
+ function indexFile() {
10
+ return `
11
+ `;
12
+ }
13
+
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"names":["indexFile"],"mappings":";;;;;;;AAAA;AAEO,SAASA,SAAT,GAAqB;AAC1B,SAAQ;AACV,GADE;AAED","sourcesContent":["// import { ComponentContext } from '@teambit/generator';\n\nexport function indexFile() {\n return `\n `;\n}\n"]}
@@ -0,0 +1 @@
1
+ export declare function mainFile(): string;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.mainFile = mainFile;
7
+
8
+ function mainFile() {
9
+ return `
10
+
11
+
12
+ `;
13
+ }
14
+
15
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["main.ts"],"names":["mainFile"],"mappings":";;;;;;;AAAO,SAASA,QAAT,GAAoB;AACzB,SAAQ;AACV;AACA;AACA,GAHE;AAID","sourcesContent":["export function mainFile() {\n return `\n \n \n `;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import { ComponentTemplate } from '@teambit/generator';
2
+ export declare const nodeEnvTemplate: ComponentTemplate;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.nodeEnvTemplate = void 0;
7
+
8
+ function _index() {
9
+ const data = require("./files/index");
10
+
11
+ _index = function () {
12
+ return data;
13
+ };
14
+
15
+ return data;
16
+ }
17
+
18
+ function _doc() {
19
+ const data = require("./files/doc");
20
+
21
+ _doc = function () {
22
+ return data;
23
+ };
24
+
25
+ return data;
26
+ }
27
+
28
+ function _main() {
29
+ const data = require("./files/main");
30
+
31
+ _main = function () {
32
+ return data;
33
+ };
34
+
35
+ return data;
36
+ }
37
+
38
+ const nodeEnvTemplate = {
39
+ name: 'node-env',
40
+ description: 'customize the base Node env with your configs and tools',
41
+ generateFiles: context => {
42
+ return [{
43
+ relativePath: 'index.ts',
44
+ content: (0, _index().indexFile)(),
45
+ isMain: true
46
+ }, {
47
+ relativePath: `${context.name}.docs.mdx`,
48
+ content: (0, _doc().docFile)()
49
+ }, {
50
+ relativePath: `${context.name}.extension.ts`,
51
+ content: (0, _main().mainFile)()
52
+ }];
53
+ }
54
+ };
55
+ exports.nodeEnvTemplate = nodeEnvTemplate;
56
+
57
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"names":["nodeEnvTemplate","name","description","generateFiles","context","relativePath","content","isMain"],"mappings":";;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,eAAkC,GAAG;AAChDC,EAAAA,IAAI,EAAE,UAD0C;AAEhDC,EAAAA,WAAW,EAAE,yDAFmC;AAGhDC,EAAAA,aAAa,EAAGC,OAAD,IAA+B;AAC5C,WAAO,CACL;AACEC,MAAAA,YAAY,EAAE,UADhB;AAEEC,MAAAA,OAAO,EAAE,yBAFX;AAGEC,MAAAA,MAAM,EAAE;AAHV,KADK,EAML;AACEF,MAAAA,YAAY,EAAG,GAAED,OAAO,CAACH,IAAK,WADhC;AAEEK,MAAAA,OAAO,EAAE;AAFX,KANK,EAUL;AACED,MAAAA,YAAY,EAAG,GAAED,OAAO,CAACH,IAAK,eADhC;AAEEK,MAAAA,OAAO,EAAE;AAFX,KAVK,CAAP;AAeD;AAnB+C,CAA3C","sourcesContent":["import { ComponentContext, ComponentTemplate } from '@teambit/generator';\nimport { indexFile } from './files/index';\nimport { docFile } from './files/doc';\nimport { mainFile } from './files/main';\n\nexport const nodeEnvTemplate: ComponentTemplate = {\n name: 'node-env',\n description: 'customize the base Node env with your configs and tools',\n generateFiles: (context: ComponentContext) => {\n return [\n {\n relativePath: 'index.ts',\n content: indexFile(),\n isMain: true,\n },\n {\n relativePath: `${context.name}.docs.mdx`,\n content: docFile(),\n },\n {\n relativePath: `${context.name}.extension.ts`,\n content: mainFile(),\n },\n ];\n },\n};\n"]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/node",
3
- "version": "0.0.518",
3
+ "version": "0.0.522",
4
4
  "homepage": "https://bit.dev/teambit/harmony/node",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.harmony",
8
8
  "name": "node",
9
- "version": "0.0.518"
9
+ "version": "0.0.522"
10
10
  },
11
11
  "dependencies": {
12
12
  "@teambit/harmony": "0.2.11",
@@ -14,19 +14,19 @@
14
14
  "typescript": "4.4.2",
15
15
  "@babel/runtime": "7.12.18",
16
16
  "core-js": "^3.0.0",
17
- "@teambit/dependency-resolver": "0.0.518",
18
- "@teambit/envs": "0.0.518",
19
- "@teambit/builder": "0.0.518",
17
+ "@teambit/dependency-resolver": "0.0.522",
18
+ "@teambit/envs": "0.0.522",
19
+ "@teambit/builder": "0.0.522",
20
20
  "@teambit/cli": "0.0.379",
21
- "@teambit/compiler": "0.0.518",
22
- "@teambit/generator": "0.0.518",
23
- "@teambit/pkg": "0.0.518",
24
- "@teambit/react": "0.0.518",
25
- "@teambit/typescript": "0.0.518",
26
- "@teambit/compositions": "0.0.518",
21
+ "@teambit/compiler": "0.0.522",
22
+ "@teambit/generator": "0.0.522",
23
+ "@teambit/pkg": "0.0.522",
24
+ "@teambit/react": "0.0.522",
25
+ "@teambit/typescript": "0.0.522",
26
+ "@teambit/compositions": "0.0.522",
27
27
  "@teambit/design.ui.empty-box": "0.0.351",
28
- "@teambit/tester": "0.0.518",
29
- "@teambit/ui": "0.0.518"
28
+ "@teambit/tester": "0.0.522",
29
+ "@teambit/ui": "0.0.522"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/lodash": "4.14.165",
@@ -36,7 +36,7 @@
36
36
  "@types/jest": "^26.0.0",
37
37
  "@types/react-dom": "^17.0.5",
38
38
  "@types/node": "12.20.4",
39
- "@teambit/harmony.aspect-docs.node": "0.0.84"
39
+ "@teambit/harmony.aspect-docs.node": "0.0.85"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@teambit/legacy": "1.0.76",
File without changes
@@ -0,0 +1,3 @@
1
+ export function compositionsFile() {
2
+ return ``;
3
+ }
@@ -0,0 +1,11 @@
1
+ export function docFile() {
2
+ return `---
3
+ labels: ['module', 'paths', 'filesystem']
4
+ description: 'A general purpose node module'
5
+ ---
6
+
7
+ This is a customized extension for Node, based of the [Node Aspect](https://bit.dev/teambit/harmony/node).
8
+
9
+ Explain here the modified configurations and tools applied.
10
+ `;
11
+ }
@@ -0,0 +1,6 @@
1
+ // import { ComponentContext } from '@teambit/generator';
2
+
3
+ export function indexFile() {
4
+ return `
5
+ `;
6
+ }
@@ -0,0 +1,6 @@
1
+ export function mainFile() {
2
+ return `
3
+
4
+
5
+ `;
6
+ }
@@ -0,0 +1,26 @@
1
+ import { ComponentContext, ComponentTemplate } from '@teambit/generator';
2
+ import { indexFile } from './files/index';
3
+ import { docFile } from './files/doc';
4
+ import { mainFile } from './files/main';
5
+
6
+ export const nodeEnvTemplate: ComponentTemplate = {
7
+ name: 'node-env',
8
+ description: 'customize the base Node env with your configs and tools',
9
+ generateFiles: (context: ComponentContext) => {
10
+ return [
11
+ {
12
+ relativePath: 'index.ts',
13
+ content: indexFile(),
14
+ isMain: true,
15
+ },
16
+ {
17
+ relativePath: `${context.name}.docs.mdx`,
18
+ content: docFile(),
19
+ },
20
+ {
21
+ relativePath: `${context.name}.extension.ts`,
22
+ content: mainFile(),
23
+ },
24
+ ];
25
+ },
26
+ };