Skip to content

Commit

Permalink
Fix repo path in import script and add exception for new projects doc…
Browse files Browse the repository at this point in the history
…s dir
  • Loading branch information
thomasm0 committed Jul 11, 2024
1 parent 2dc7af3 commit 8f094b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
var simple_git_1 = require("simple-git");
var fs = require("fs");
var path = require("path");
var remoteUrl = 'https://github.com/Amsterdam/development-standards';
var remoteUrl = 'git@github.com:Amsterdam/development-standards.git';
var localDir = 'docs';
var cloneDir = path.join(localDir, 'latest');
function cloneAndCheckout(repoUrl_1) {
Expand Down Expand Up @@ -79,7 +79,7 @@ function cloneAndCheckout(repoUrl_1) {
}
// Cleanup previously cloned files from development-standards repo
var cleanupOldFiles = function () {
var excludeFiles = ['intro.md'];
var excludeFiles = ['intro.md', 'projects'];
fs.readdirSync(localDir).forEach(function (file) {
if (!excludeFiles.includes(file)) {
var filePath = path.join(localDir, file);
Expand Down
4 changes: 2 additions & 2 deletions scripts/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { simpleGit, SimpleGit, CleanOptions } from 'simple-git';
import * as fs from 'fs';
import * as path from 'path';

const remoteUrl = 'https://github.com/Amsterdam/development-standards';
const remoteUrl = 'git@github.com:Amsterdam/development-standards.git';
const localDir = 'docs';
const cloneDir = path.join(localDir, 'latest');

Expand All @@ -27,7 +27,7 @@ async function cloneAndCheckout(repoUrl: string, branchName = 'main'): Promise<v

// Cleanup previously cloned files from development-standards repo
const cleanupOldFiles = () => {
const excludeFiles = ['intro.md'];
const excludeFiles = ['intro.md', 'projects'];

fs.readdirSync(localDir).forEach((file) => {
if (!excludeFiles.includes(file)) {
Expand Down

0 comments on commit 8f094b5

Please sign in to comment.