create-nextblock 0.0.1 → 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/libs/db/tsconfig.lib.json +3 -0
- package/libs/editor/tsconfig.lib.json +3 -0
- package/libs/ui/tsconfig.lib.json +3 -0
- package/libs/utils/tsconfig.json +3 -0
- package/package.json +1 -1
- package/project.json +19 -0
- package/scripts/sync-template.js +3 -11
- package/tsconfig.base.json +3 -0
- package/templates/nextblock-template/project.json +0 -7
package/package.json
CHANGED
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
|
+
}
|
package/scripts/sync-template.js
CHANGED
|
@@ -86,7 +86,7 @@ async function ensureTemplateSync() {
|
|
|
86
86
|
await sanitizeUiImports();
|
|
87
87
|
await ensureUiProxies();
|
|
88
88
|
await ensureBackups();
|
|
89
|
-
await
|
|
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
|
|
268
|
+
async function removeTemplateProjectJson() {
|
|
269
269
|
const projectJsonPath = resolve(TARGET_DIR, 'project.json');
|
|
270
|
-
|
|
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) => {
|