create-nextblock 0.0.1 → 0.0.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.
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../../../../libs/db/tsconfig.lib.json"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../../../../libs/editor/tsconfig.lib.json"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../../../../libs/ui/tsconfig.lib.json"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../../../../libs/utils/tsconfig.json"
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nextblock",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
package/project.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "create-nextblock",
3
+ "projectType": "application",
4
+ "root": "apps/create-nextblock",
5
+ "sourceRoot": "apps/create-nextblock",
6
+ "targets": {
7
+ "lint": {
8
+ "executor": "@nx/eslint:lint",
9
+ "outputs": ["{options.outputFile}"],
10
+ "options": {
11
+ "lintFilePatterns": [
12
+ "apps/create-nextblock/bin/**/*.js",
13
+ "apps/create-nextblock/scripts/**/*.js"
14
+ ]
15
+ }
16
+ }
17
+ },
18
+ "tags": []
19
+ }
@@ -86,7 +86,7 @@ async function ensureTemplateSync() {
86
86
  await sanitizeUiImports();
87
87
  await ensureUiProxies();
88
88
  await ensureBackups();
89
- await ensureTemplateProjectJson();
89
+ await removeTemplateProjectJson();
90
90
 
91
91
  console.log(chalk.green('Template sync complete.'));
92
92
  }
@@ -265,17 +265,9 @@ async function ensureBackups() {
265
265
  });
266
266
  }
267
267
 
268
- async function ensureTemplateProjectJson() {
268
+ async function removeTemplateProjectJson() {
269
269
  const projectJsonPath = resolve(TARGET_DIR, 'project.json');
270
- const minimalConfig = {
271
- name: 'nextblock-template',
272
- projectType: 'application',
273
- root: 'apps/create-nextblock/templates/nextblock-template',
274
- sourceRoot: 'apps/create-nextblock/templates/nextblock-template',
275
- targets: {},
276
- };
277
-
278
- await fs.writeJSON(projectJsonPath, minimalConfig, { spaces: 2 });
270
+ await fs.remove(projectJsonPath).catch(() => undefined);
279
271
  }
280
272
 
281
273
  ensureTemplateSync().catch((error) => {
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json"
3
+ }
@@ -1,7 +0,0 @@
1
- {
2
- "name": "nextblock-template",
3
- "projectType": "application",
4
- "root": "apps/create-nextblock/templates/nextblock-template",
5
- "sourceRoot": "apps/create-nextblock/templates/nextblock-template",
6
- "targets": {}
7
- }