igniteui-live-editing 3.4.0 → 3.4.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.
@@ -36,6 +36,7 @@ const SampleDefinitionFile_1 = require("./misc/SampleDefinitionFile");
36
36
  const APP_MODULE_TEMPLATE_PATH = path.join(__dirname, "../templates/app.module.ts.template");
37
37
  const APP_CONFIG_TEMPLATE_PATH = path.join(__dirname, "../templates/app.config.ts.template");
38
38
  const APP_COMPONENT_TEMPLATE_PATH = path.join(__dirname, "../templates/app.component.ts.template");
39
+ const POSTCSSRC_FILE_PATH = path.join(__dirname, "../templates/postcssrc.json.template");
39
40
  const COMPONENT_STYLE_FILE_EXTENSION = "scss";
40
41
  const ROOT_MODULE_PATHS = ["grid-crm/grid-crm"];
41
42
  const COMPONENT_FILE_EXTENSIONS = ["ts", "html", COMPONENT_STYLE_FILE_EXTENSION];
@@ -50,7 +51,9 @@ const WEB_CONTAINER_DEPS = [
50
51
  '@juggle/resize-observer',
51
52
  '@microsoft/signalr',
52
53
  'igniteui-dockmanager',
53
- 'igniteui-webcomponents'
54
+ 'igniteui-webcomponents',
55
+ 'tailwindcss',
56
+ '@tailwindcss/postcss',
54
57
  ];
55
58
  class SampleAssetsGenerator {
56
59
  constructor(options) {
@@ -215,11 +218,17 @@ class SampleAssetsGenerator {
215
218
  _getAdditionalFiles(config) {
216
219
  let additionalFiles = new Array();
217
220
  for (let i = 0; i < config.additionalFiles.length; i++) {
218
- let fileContent = fs.readFileSync(path.join(process.cwd(), config.additionalFiles[i]), "utf8");
219
- config.additionalFiles[i] = config.additionalFiles[i].substring(config.additionalFiles[i].indexOf(LiveEditingFile_1.SAMPLE_SRC_FOLDER));
220
- let file = new LiveEditingFile_1.LiveEditingFile(config.additionalFiles[i], fileContent);
221
- this._shortenComponentPath(config, file);
222
- additionalFiles.push(file);
221
+ if (config.additionalFiles[i] === ".postcssrc.json") {
222
+ let postCssRcFile = fs.readFileSync(POSTCSSRC_FILE_PATH, "utf8");
223
+ additionalFiles.push(new LiveEditingFile_1.LiveEditingFile(".postcssrc.json", postCssRcFile));
224
+ }
225
+ else {
226
+ let fileContent = fs.readFileSync(path.join(process.cwd(), config.additionalFiles[i]), "utf8");
227
+ config.additionalFiles[i] = config.additionalFiles[i].substring(config.additionalFiles[i].indexOf(LiveEditingFile_1.SAMPLE_SRC_FOLDER));
228
+ let file = new LiveEditingFile_1.LiveEditingFile(config.additionalFiles[i], fileContent);
229
+ this._shortenComponentPath(config, file);
230
+ additionalFiles.push(file);
231
+ }
223
232
  }
224
233
  return additionalFiles;
225
234
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-live-editing",
3
- "version": "3.4.0",
3
+ "version": "3.4.3",
4
4
  "description": "This feature helps us to provide each sample as a separate application to external consumers.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -38,6 +38,7 @@
38
38
  "intl": "^1.2.5",
39
39
  "rxjs": "^7.8.2",
40
40
  "tailwindcss": "^4.1.10",
41
+ "@tailwindcss/postcss": "^4.1.10",
41
42
  "tslib": "^2.6.1",
42
43
  "zone.js": "~0.15.0"{dependencies}
43
44
  },
@@ -0,0 +1,5 @@
1
+ {
2
+ "plugins": {
3
+ "@tailwindcss/postcss": {}
4
+ }
5
+ }
@@ -7,11 +7,14 @@
7
7
  }
8
8
  ],
9
9
  // These tasks can be run from CodeSandbox. Running one will open a log in the app.
10
- "tasks": {
11
- "node node_modules/@angular/cli/bin/ng serve": {
12
- "name": "Start Project",
13
- "command": "node --max_old_space_size=12192 node_modules/@angular/cli/bin/ng serve",
14
- "runAtStart": true
15
- }
10
+ "tasks": {
11
+ "start": {
12
+ "name": "Start Project",
13
+ "command": "node --max-old-space-size=4096 node_modules/@angular/cli/bin/ng serve --host 0.0.0.0 --port 4200 --allowed-hosts=all",
14
+ "runAtStart": true,
15
+ "preview": {
16
+ "port": 4200
17
+ }
16
18
  }
17
- }
19
+ }
20
+ }