55 | 55 |
TEMP_DIR = "./tmp/",
|
56 | 56 |
DEBUG_DIR = "./debug/",
|
57 | 57 |
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/",
|
60 | 60 |
PERF_TMP_DIR = path.join(TEMP_DIR, "eslint", "performance"),
|
61 | 61 |
|
62 | 62 |
// Utilities - intentional extra space at the end of each string
|
|
138 | 138 |
now = new Date(),
|
139 | 139 |
month = now.getMonth() + 1,
|
140 | 140 |
day = now.getDate(),
|
141 | |
filename = `../eslint.github.io/_posts/${now.getFullYear()}-${
|
|
141 |
filename = `../website/_posts/${now.getFullYear()}-${
|
142 | 142 |
month < 10 ? `0${month}` : month}-${
|
143 | 143 |
day < 10 ? `0${day}` : day}-eslint-v${
|
144 | 144 |
releaseInfo.version}-released.md`;
|
|
155 | 155 |
*/
|
156 | 156 |
function generateFormatterExamples(formatterInfo, prereleaseVersion) {
|
157 | 157 |
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";
|
160 | 160 |
|
161 | 161 |
if (prereleaseVersion) {
|
162 | 162 |
filename = filename.replace("/docs", `/docs/${prereleaseVersion}`);
|
|
175 | 175 |
* @returns {void}
|
176 | 176 |
*/
|
177 | 177 |
function generateRuleIndexPage() {
|
178 | |
const outputFile = "../eslint.github.io/_data/rules.yml",
|
|
178 |
const outputFile = "../website/_data/rules.yml",
|
179 | 179 |
categoryList = "conf/category-list.json",
|
180 | 180 |
categoriesData = JSON.parse(cat(path.resolve(categoryList)));
|
181 | 181 |
|
|
215 | 215 |
}
|
216 | 216 |
|
217 | 217 |
/**
|
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
|
219 | 219 |
* the remote. This assumes that the repository has already been modified somehow (e.g. by adding a blogpost).
|
220 | 220 |
* @param {string} [tag] The string to tag the commit with
|
221 | 221 |
* @returns {void}
|
|
236 | 236 |
}
|
237 | 237 |
|
238 | 238 |
/**
|
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
|
240 | 240 |
* site should already have local commits (e.g. from running `commitSiteToGit`).
|
241 | 241 |
* @returns {void}
|
242 | 242 |
*/
|
|
250 | 250 |
|
251 | 251 |
/**
|
252 | 252 |
* 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.
|
254 | 254 |
* @returns {void}
|
255 | 255 |
*/
|
256 | 256 |
function generateRelease() {
|
|
265 | 265 |
|
266 | 266 |
/**
|
267 | 267 |
* 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.
|
269 | 269 |
* @param {string} prereleaseId The prerelease identifier (alpha, beta, etc.)
|
270 | 270 |
* @returns {void}
|
271 | 271 |
*/
|
|
302 | 302 |
}
|
303 | 303 |
|
304 | 304 |
/**
|
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
|
306 | 306 |
* to remote repo.
|
307 | 307 |
* @returns {void}
|
308 | 308 |
*/
|