Skip to content

Commit

Permalink
try out npm workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Apr 29, 2024
1 parent af9b38d commit c2bdeed
Show file tree
Hide file tree
Showing 1,882 changed files with 79,188 additions and 13,044 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pnpm-debug.log*

# Local Netlify folder
.netlify
src/content/pipelines
sites/**/src/content/pipelines
playwright-report
test-results

Expand Down
10 changes: 5 additions & 5 deletions bin/build-content-collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ async function buildContentCollection() {
}, []);

const files = getAllMDFiles('.cache');
if (!existsSync('src/content/pipelines')) {
mkdirSync('src/content/pipelines', { recursive: true });
if (!existsSync('sites/pipelines/src/content/pipelines')) {
mkdirSync('sites/pipelines/src/content/pipelines', { recursive: true });
}
Promise.all(
// create src/content/pipelines folder if it doesn't exist
// create sites/pipelines/src/content/pipelines folder if it doesn't exist

files.map(async (f) => {
let content = await promises.readFile(f, 'utf8');
Expand All @@ -39,7 +39,7 @@ async function buildContentCollection() {
/(\]\()(docs\/images\/.*?\.png|svg)/gmu,
`$1${`https://raw.githubusercontent.com/nf-core/${pipeline}/${version}/$2`}`
);
const newPath = f.replace('.cache', 'src/content/pipelines');
const newPath = f.replace('.cache', 'sites/pipelines/src/content/pipelines');
const parent = newPath.split('/').slice(0, -1).join('/');
await promises.mkdir(parent, { recursive: true });
await promises.writeFile(newPath, content);
Expand All @@ -49,4 +49,4 @@ async function buildContentCollection() {
};

await buildContentCollection();
})();
})();
29,517 changes: 17,729 additions & 11,788 deletions package-lock.json

Large diffs are not rendered by default.

95 changes: 5 additions & 90 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,107 +4,22 @@
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build-preview": "astro build && astro preview",
"build-cache": "npm run build-pipeline-json && npm run build-component-json && npm run build-md-cache",
"build-md-cache": "node bin/build-cache.js && tar -cvJf .cache.tar.xz .cache && node bin/build-content-collection",
"build-md-cache-force": "node bin/build-cache.js --force && tar -cvJf .cache.tar.xz .cache && node bin/build-content-collection",
"build-cache-no-tar": "npm run build-pipeline-json && npm run build-component-json && node bin/build-cache.js && node bin/build-content-collection",
"build-cache-force": "npm run build-pipeline-json && npm run build-component-json && npm run build-md-cache-force",
"build": "tar -xf .cache.tar.xz && node bin/build-content-collection && NODE_OPTIONS='--max-old-space-size=4096' astro build",
"build-without-cache": "npm run build-cache-no-tar && astro build",
"preview": "astro preview",
"build-pipeline-json": "tar -xf .cache.tar.xz && node bin/pipelines.json.js && tar -cvJf .cache.tar.xz .cache",
"build-component-json": "node bin/components.json.js"
},
"dependencies": {
"@astro-community/astro-embed-youtube": "^0.4.2",
"@astrojs/check": "^0.3.4",
"@astrojs/markdown-remark": "^3.5.0",
"@astrojs/mdx": "^1.1.5",
"@astrojs/netlify": "^3.1.1",
"@astrojs/partytown": "^2.0.1",
"@astrojs/prefetch": "^0.4.1",
"@astrojs/rss": "^3.0.0",
"@astrojs/sitemap": "^3.0.1",
"@astrojs/svelte": "^4.0.4",
"@astropub/md": "^0.3.0",
"@aws-sdk/client-s3": "^3.485.0",
"@aws-sdk/credential-provider-node": "^3.485.0",
"@docsearch/js": "^3.5.2",
"@fontsource-variable/inter": "^5.0.16",
"@fontsource-variable/maven-pro": "^5.0.16",
"@fontsource-variable/open-sans": "^5.0.23",
"@iconify-json/fa": "^1.1.8",
"@iconify-json/fa-brands": "^1.1.8",
"@iconify-json/file-icons": "^1.1.8",
"@iconify-json/line-md": "^1.1.33",
"@iconify-json/logos": "^1.1.42",
"@iconify-json/mdi": "^1.1.64",
"@iconify-json/octicon": "^1.1.52",
"@iconify-json/simple-icons": "^1.1.96",
"@nanostores/persistent": "^0.9.1",
"astro": "^3.6.0",
"astro-icon": "^1.1.0",
"astro-remark-description": "^1.1.1",
"bootstrap": "^5.3.2",
"bootstrap-print-css": "^1.0.1",
"date-fns": "^3.1.0",
"date-fns-tz": "^2.0.0",
"datebook": "^8.0.1",
"dotenv": "^16.3.1",
"file-icons-js": "github:websemantics/file-icons-js",
"file-saver": "^2.0.5",
"file-system-cache": "^2.4.4",
"fuzzysort": "^2.0.4",
"hast-util-to-string": "^2.0.0",
"js-yaml": "^4.1.0",
"leaflet": "^1.9.4",
"mermaid": "^10.7.0",
"nanostores": "^0.9.5",
"octokit": "^3.1.2",
"party-js": "^2.2.0",
"pretty-bytes": "^6.1.1",
"progress": "^2.0.3",
"rehype-add-classes": "github:tycol7/rehype-add-classes",
"rehype-autolink-headings": "^6.1.1",
"rehype-highlight": "^6.0.0",
"rehype-katex": "^6.0.3",
"rehype-pretty-code": "^0.12.3",
"rehype-rewrite": "^3.0.6",
"rehype-slug": "^5.1.0",
"rehype-urls": "^1.2.0",
"rehype-wrap-all": "^1.1.0",
"remark-directive": "^2.0.1",
"remark-emoji": "^4.0.0",
"remark-gfm": "^3.0.1",
"remark-math": "^5.1.1",
"satori": "^0.10.11",
"satori-html": "^0.3.2",
"sharp": "^0.33.0",
"shikiji": "^0.9.17",
"svelte": "^4.2.7",
"svelte-confetti": "^1.3.1",
"svelte-exmarkdown": "^3.0.2",
"svelte-fast-marquee": "^0.7.0",
"ts-dedent": "^2.2.0",
"typescript": "^5.3.3",
"unist-util-visit": "^5.0.0",
"vite": "^4.5.1",
"yaml": "^2.3.2",
"yoga-wasm-web": "^0.3.3",
"youtube-player": "^5.6.0"

},
"devDependencies": {
"@playwright/test": "1.40.1",
"@rollup/plugin-yaml": "4.1.2",
"@types/leaflet": "1.9.8",
"@types/node": "20.12.3",
"fontaine": "0.4.1",
"prettier": "3.2.5",
"prettier-plugin-astro": "0.12.3",
"prettier-plugin-svelte": "3.1.2",
"sass": "1.69.7"
}
},
"workspaces": [
"sites/*"
]
}
23 changes: 0 additions & 23 deletions public/csv.tmLanguage.json

This file was deleted.

Loading

0 comments on commit c2bdeed

Please sign in to comment.