completing the migration of all files to es modules
This commit is contained in:
parent
3f746c6e8d
commit
25adc5da81
9
.vscode/tasks.json
vendored
9
.vscode/tasks.json
vendored
@ -12,19 +12,19 @@
|
|||||||
{
|
{
|
||||||
"label": "generate-readme",
|
"label": "generate-readme",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "node ${workspaceFolder}/eng/update-readme.js",
|
"command": "npm run build",
|
||||||
"problemMatcher": [],
|
"problemMatcher": [],
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "build",
|
"kind": "build",
|
||||||
"isDefault": true
|
"isDefault": true
|
||||||
},
|
},
|
||||||
"detail": "Generates the README.md file using update-readme.js script.",
|
"detail": "Generates the README.md file using npm build run-script.",
|
||||||
"dependsOn": "npm install"
|
"dependsOn": "npm install"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "validate-collections",
|
"label": "validate-collections",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "node ${workspaceFolder}/eng/validate-collections.js",
|
"command": "npm run collection:validate",
|
||||||
"problemMatcher": [],
|
"problemMatcher": [],
|
||||||
"group": "build",
|
"group": "build",
|
||||||
"detail": "Validates all collection manifest files.",
|
"detail": "Validates all collection manifest files.",
|
||||||
@ -33,9 +33,8 @@
|
|||||||
{
|
{
|
||||||
"label": "create-collection",
|
"label": "create-collection",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "node",
|
"command": "npm run collection:create",
|
||||||
"args": [
|
"args": [
|
||||||
"${workspaceFolder}/eng/create-collection.js",
|
|
||||||
"--id",
|
"--id",
|
||||||
"${input:collectionId}",
|
"${input:collectionId}",
|
||||||
"--tags",
|
"--tags",
|
||||||
|
|||||||
10
eng/create-collection.js → eng/create-collection.mjs
Executable file → Normal file
10
eng/create-collection.js → eng/create-collection.mjs
Executable file → Normal file
@ -1,9 +1,9 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
const fs = require("fs");
|
import fs from "fs";
|
||||||
const path = require("path");
|
import path from "path";
|
||||||
const readline = require("readline");
|
import readline from "readline";
|
||||||
const { COLLECTIONS_DIR } = require("./constants");
|
import { COLLECTIONS_DIR } from "./constants.mjs";
|
||||||
|
|
||||||
const rl = readline.createInterface({
|
const rl = readline.createInterface({
|
||||||
input: process.stdin,
|
input: process.stdin,
|
||||||
@ -166,7 +166,7 @@ display:
|
|||||||
console.log("\n📝 Next steps:");
|
console.log("\n📝 Next steps:");
|
||||||
console.log("1. Edit the collection manifest to add your items");
|
console.log("1. Edit the collection manifest to add your items");
|
||||||
console.log("2. Update the name, description, and tags as needed");
|
console.log("2. Update the name, description, and tags as needed");
|
||||||
console.log("3. Run 'npm run validate:collections' to validate");
|
console.log("3. Run 'npm run collection:validate' to validate");
|
||||||
console.log("4. Run 'npm start' to generate documentation");
|
console.log("4. Run 'npm start' to generate documentation");
|
||||||
console.log("\n📄 Collection template contents:");
|
console.log("\n📄 Collection template contents:");
|
||||||
console.log(template);
|
console.log(template);
|
||||||
@ -10,7 +10,8 @@
|
|||||||
"contributors:add": "all-contributors add",
|
"contributors:add": "all-contributors add",
|
||||||
"contributors:generate": "all-contributors generate",
|
"contributors:generate": "all-contributors generate",
|
||||||
"contributors:check": "all-contributors check",
|
"contributors:check": "all-contributors check",
|
||||||
"validate:collections": "node ./eng/validate-collections.mjs"
|
"collection:validate": "node ./eng/validate-collections.mjs",
|
||||||
|
"collection:create": "node ./eng/create-collection.mjs"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user