diff --git a/lib/publish-gh-pages.js b/lib/publish-gh-pages.js index 32afd71ff0..8acde39eef 100755 --- a/lib/publish-gh-pages.js +++ b/lib/publish-gh-pages.js @@ -71,7 +71,7 @@ if (CURRENT_BRANCH === DEPLOYMENT_BRANCH) { shell.exit(1); } -if (shell.exec(`node ${path.join(__dirname, "build-files.js")}`).code) { +if (shell.exec(`node ${path.join(__dirname, 'build-files.js')}`).code) { shell.echo('Error: generating html failed'); shell.exit(1); } @@ -111,15 +111,15 @@ shell.exec('git rm -rf .'); shell.cd('../..'); shell.cp( - "-R", + '-R', // in github.io case, project is deployed to root. need to not recursively - // copy the deployment-branch to be. + // copy the deployment-branch to be. // The !(...) represents the same thing as "everything but this" // Copies everything in /build except the directory after the !. - path.join("build", PROJECT_PATH, `!(${PROJECT_NAME}-${DEPLOYMENT_BRANCH})`), - path.join("build", `${PROJECT_NAME}-${DEPLOYMENT_BRANCH}`) + path.join('build', PROJECT_PATH, `!(${PROJECT_NAME}-${DEPLOYMENT_BRANCH})`), + path.join('build', `${PROJECT_NAME}-${DEPLOYMENT_BRANCH}`) ); -shell.cd(path.join("build", `${PROJECT_NAME}-${DEPLOYMENT_BRANCH}`)); +shell.cd(path.join('build', `${PROJECT_NAME}-${DEPLOYMENT_BRANCH}`)); const currentCommit = shell.exec('git rev-parse HEAD').stdout.trim(); diff --git a/package-lock.json b/package-lock.json index d505c8585c..c52d59451f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1600,9 +1600,9 @@ "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" }, "prettier": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.7.4.tgz", - "integrity": "sha1-XoYkrpNjyA+V7GRFhOzfVddPk/o=" + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.8.2.tgz", + "integrity": "sha512-fHWjCwoRZgjP1rvLP7OGqOznq7xH1sHMQUFLX8qLRO79hI57+6xbc5vB904LxEkCfgFgyr3vv06JkafgCSzoZg==" }, "private": { "version": "0.1.8", diff --git a/package.json b/package.json index 405173f169..ff0436c991 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "format:source": "prettier --config .prettierrc --write \"lib/**/*.js\"", "format:examples": "prettier --config .prettierrc --write \"examples/**/*.js\"", "nit:source": "prettier --config .prettierrc --list-different \"lib/**/*.js\"", - "nit:examples": "prettier --config .prettierrc --list-different \"examples/**/*.js\"", + "nit:examples": "prettier --config .prettierrc --list-different \"examples/**/*.js\"", "prettier": "yarn format:source && yarn format:examples", "prettier:diff": "yarn nit:source && yarn nit:examples" },