node_modules ignore

This commit is contained in:
oier committed 2025-05-08 23:43:47 +02:00
1 parent e19d52f172
commit 4574544c9f
65041 files changed
+10593536

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
This is the main source code for the `plop` package.
For documentation, please refer to [our website](https://plopjs.com/) or [our main README at the root of the repository](../../README.md).
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env node
import fs from "fs";
import * as path from "path";
import * as url from "url";
const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
const exists = fs.existsSync("./README.md");
if (exists) {
// Restore version of README previously there.
fs.copyFileSync(
path.join(__dirname, "./README.md"),
path.join(__dirname, "../README.md"),
);
fs.unlinkSync(path.join(__dirname, "./README.md"));
}
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env node
import fs from "fs";
import * as path from "path";
import * as url from "url";
const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
// Keep backup of temporary README
fs.copyFileSync(
path.join(__dirname, "../README.md"),
path.join(__dirname, "./README.md"),
);
// Move main README
fs.copyFileSync(
path.join(__dirname, "../../../README.md"),
path.join(__dirname, "../README.md"),
);