10000 rollup-plugin-glsl-optimize/rollup.config.bundletypes.mjs at master · docd27/rollup-plugin-glsl-optimize · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":"doc","path":"doc","contentType":"directory"},{"name":"src","path":"src","contentType":"directory"},{"name":"test","path":"test","contentType":"directory"},{"name":".eslintrc.json","path":".eslintrc.json","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".npmignore","path":".npmignore","contentType":"file"},{"name":"CHANGES.md","path":"CHANGES.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"build.binaries.config.mjs","path":"build.binaries.config.mjs","contentType":"file"},{"name":"build.binaries.mjs","path":"build.binaries.mjs","contentType":"file"},{"name":"install.mjs","path":"install.mjs","contentType":"file"},{"name":"jsconfig.json","path":"jsconfig.json","contentType":"file"},{"name":"package-lock.json","path":"package-lock.json","contentType":"file"},{"name":"package.json","path":"package.json","contentType":"file"},{"name":"rollup.config.bundletypes.mjs","path":"rollup.config.bundletypes.mjs","contentType":"file"},{"name":"rollup.config.package.mjs","path":"rollup.config.package.mjs","contentType":"file"},{"name":"settings.js","path":"settings.js","contentType":"file"},{"name":"tsconfig.json","path":"tsconfig.json","contentType":"file"}],"totalCount":20}},"fileTreeProcessingTime":10.214287,"foldersToFetch":[],"incompleteFileTree":false,"repo":{"id":340525486,"defaultBranch":"master","name":"rollup-plugin-glsl-optimize","ownerLogin":"docd27","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2021-02-20T00:43:52.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/58469465?v=4","public":true,"private":false,"isOrgOwned":false},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"master","listCacheKey":"v0:1631901772.366082","canEdit":false,"refType":"branch","currentOid":"d9c357bc80644c408844f528c6ceb0fa4263cc21"},"path":"rollup.config.bundletypes.mjs","currentUser":null,"blob":{"rawLines":["import internalDel from 'del';","import del from 'rollup-plugin-delete';","import dts from 'rollup-plugin-dts';","import * as fsSync from 'fs';","","const IN_DIR = 'typings-autogen';","const OUTPUT_FILE = 'dist/index.d.ts';","","let earlyDelDone = false;","// Runs sequentially before buildStart hooks:","function earlyDel(targets = [], deleteOptions = {}) {"," return {"," name: 'earlydel',"," options: function(options) {"," if (!earlyDelDone) {"," earlyDelDone = true;"," const paths = internalDel.sync(targets, deleteOptions);"," if (deleteOptions.verbose) {"," console.log(`Deleted files and folders: ${paths.length}`);"," if (paths.length \u003e 0) {"," paths.forEach((path) =\u003e {"," console.log(path);"," });"," }"," }"," }"," return null;"," },"," };","}","","function appendDts(filePath) {"," const fileContent = fsSync.readFileSync(filePath, {encoding: 'utf8'});"," return {"," name: 'append-dts',"," renderChunk(code) {"," return `${code}\\n${fileContent}`;"," },"," };","}","","export default [{"," input: `${IN_DIR}/src/index.d.ts`,"," output: {"," file: OUTPUT_FILE,"," format: 'es',"," },"," plugins: ["," earlyDel([OUTPUT_FILE]),"," dts({compilerOptions: {}}),"," // appendDts('src/resources.d.ts'),"," del({hook: 'buildEnd', targets: [IN_DIR]}),"," ],"," external: ['child_process'],","}];"],"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/docd27/rollup-plugin-glsl-optimize/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"rollup.config.bundletypes.mjs","displayUrl":"https://github.com/docd27/rollup-plugin-glsl-optimize/blob/master/rollup.config.bundletypes.mjs?raw=true","headerInfo":{"blobSize":"1.32 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"ffc9a8b","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fdocd27%2Frollup-plugin-glsl-optimize%2Fblob%2Fmaster%2Frollup.config.bundletypes.mjs","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"55","truncatedSloc":"51"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"JavaScript","languageID":183,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/docd27/rollup-plugin-glsl-optimize/blob/master/rollup.config.bundletypes.mjs","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/docd27/rollup-plugin-glsl-optimize/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/docd27/rollup-plugin-glsl-optimize/raw/refs/heads/master/rollup.config.bundletypes.mjs","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"earlyDel","kind":"function","ident_start":294,"ident_end":302,"extent_start":285,"extent_end":814,"fully_qualified_name":"earlyDel","ident_utf16":{"start":{"line_number":10,"utf16_col":9},"end":{"line_number":10,"utf16_col":17}},"extent_utf16":{"start":{"line_number":10,"utf16_col":0},"end":{"line_number":29,"utf16_col":1}}},{"name":"options","kind":"function","ident_start":376,"ident_end":383,"extent_start":376,"extent_end":806,"fully_qualified_name":"options","ident_utf16":{"start":{"line_number":13,"utf16_col":4},"end":{"line_number":13,"utf16_col":11}},"extent_utf16":{"start":{"line_number":13,"utf16_col":4},"end":{"line_number":27,"utf16_col":5}}},{"name":"appendDts","kind":"function","ident_start":825,"ident_end":834,"extent_start":816,"extent_end":1032,"fully_qualified_name":"appendDts","ident_utf16":{"start":{"line_number":31,"utf16_col":9},"end":{"line_number":31,"utf16_col":18}},"extent_utf16":{"start":{"line_number":31,"utf16_col":0},"end":{"line_number":39,"utf16_col":1}}},{"name":"renderChunk","kind":"method","ident_start":959,"ident_end":970,"extent_start":959,"extent_end":1024,"fully_qualified_name":"renderChunk","ident_utf16":{"start":{"line_number":35,"utf16_col":4},"end":{"line_number":35,"utf16_col":15}},"extent_utf16":{"start":{"line_number":35,"utf16_col":4},"end":{"line_number":37,"utf16_col":5}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"modelsAccessAllowed":false,"modelsRepoIntegrationEnabled":false,"csrf_tokens":{"/docd27/rollup-plugin-glsl-optimize/branches":{"post":"Q4b_-Pk-FBiRHRgccI75TX_ebyOFCQ0YkhoLF8yeOKnL2zp4Q5KUUfRLdUXYfDMl7o0UUs-04Bj4ZNbMOv4AVA"},"/repos/preferences":{"post":"tQNKMuLlzdDBky_JiRf_iXQVAukO99sGLO5wcz9KUpDMAy1NwnWtqYPKK3s0lJP9XeCX9IxHK_gMsR_IaNQSdw"}}},"title":"rollup-plugin-glsl-optimize/rollup.config.bundletypes.mjs at master · docd27/rollup-plugin-glsl-optimize","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-7d7eb7c71814.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1ae9fa256942.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}
0