Codebase list eslint / c90a12c
Chore: update release script for new website repo (#12006) Kai Cataldo authored 4 years ago GitHub committed 4 years ago
2 changed file(s) with 13 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
5555 TEMP_DIR = "./tmp/",
5656 DEBUG_DIR = "./debug/",
5757 BUILD_DIR = "build",
58 DOCS_DIR = "../eslint.github.io/docs",
59 SITE_DIR = "../eslint.github.io/",
58 DOCS_DIR = "../website/docs",
59 SITE_DIR = "../website/",
6060 PERF_TMP_DIR = path.join(TEMP_DIR, "eslint", "performance"),
6161
6262 // Utilities - intentional extra space at the end of each string
138138 now = new Date(),
139139 month = now.getMonth() + 1,
140140 day = now.getDate(),
141 filename = `../eslint.github.io/_posts/${now.getFullYear()}-${
141 filename = `../website/_posts/${now.getFullYear()}-${
142142 month < 10 ? `0${month}` : month}-${
143143 day < 10 ? `0${day}` : day}-eslint-v${
144144 releaseInfo.version}-released.md`;
155155 */
156156 function generateFormatterExamples(formatterInfo, prereleaseVersion) {
157157 const output = ejs.render(cat("./templates/formatter-examples.md.ejs"), formatterInfo);
158 let filename = "../eslint.github.io/docs/user-guide/formatters/index.md",
159 htmlFilename = "../eslint.github.io/docs/user-guide/formatters/html-formatter-example.html";
158 let filename = "../website/docs/user-guide/formatters/index.md",
159 htmlFilename = "../website/docs/user-guide/formatters/html-formatter-example.html";
160160
161161 if (prereleaseVersion) {
162162 filename = filename.replace("/docs", `/docs/${prereleaseVersion}`);
175175 * @returns {void}
176176 */
177177 function generateRuleIndexPage() {
178 const outputFile = "../eslint.github.io/_data/rules.yml",
178 const outputFile = "../website/_data/rules.yml",
179179 categoryList = "conf/category-list.json",
180180 categoriesData = JSON.parse(cat(path.resolve(categoryList)));
181181
215215 }
216216
217217 /**
218 * Creates a git commit and tag in an adjacent `eslint.github.io` repository, without pushing it to
218 * Creates a git commit and tag in an adjacent `website` repository, without pushing it to
219219 * the remote. This assumes that the repository has already been modified somehow (e.g. by adding a blogpost).
220220 * @param {string} [tag] The string to tag the commit with
221221 * @returns {void}
236236 }
237237
238238 /**
239 * Publishes the changes in an adjacent `eslint.github.io` repository to the remote. The
239 * Publishes the changes in an adjacent `website` repository to the remote. The
240240 * site should already have local commits (e.g. from running `commitSiteToGit`).
241241 * @returns {void}
242242 */
250250
251251 /**
252252 * Updates the changelog, bumps the version number in package.json, creates a local git commit and tag,
253 * and generates the site in an adjacent `eslint.github.io` folder.
253 * and generates the site in an adjacent `website` folder.
254254 * @returns {void}
255255 */
256256 function generateRelease() {
265265
266266 /**
267267 * Updates the changelog, bumps the version number in package.json, creates a local git commit and tag,
268 * and generates the site in an adjacent `eslint.github.io` folder.
268 * and generates the site in an adjacent `website` folder.
269269 * @param {string} prereleaseId The prerelease identifier (alpha, beta, etc.)
270270 * @returns {void}
271271 */
302302 }
303303
304304 /**
305 * Publishes a generated release to npm and GitHub, and pushes changes to the adjacent `eslint.github.io` repo
305 * Publishes a generated release to npm and GitHub, and pushes changes to the adjacent `website` repo
306306 * to remote repo.
307307 * @returns {void}
308308 */
00 /**
11 * @fileoverview Script to update the README with team and sponsors.
2 * Note that this requires eslint.github.io to be available in the same
2 * Note that this requires eslint/website to be available in the same
33 * directory as the eslint repo.
44 *
55 * node tools/update-readme.js
2222 //-----------------------------------------------------------------------------
2323
2424 const README_FILE_PATH = path.resolve(__dirname, "../README.md");
25 const WEBSITE_DATA_PATH = path.resolve(__dirname, "../../eslint.github.io/_data");
25 const WEBSITE_DATA_PATH = path.resolve(__dirname, "../../website/_data");
2626
2727 const team = JSON.parse(fs.readFileSync(path.join(WEBSITE_DATA_PATH, "team.json")));
2828 const allSponsors = JSON.parse(fs.readFileSync(path.join(WEBSITE_DATA_PATH, "sponsors.json")));