Sfoglia il codice sorgente

Setup typedoc for plugins.

master
Palash Bansal 2 anni fa
parent
commit
bb47f581c1
Nessun account collegato all'indirizzo email del committer

+ 2
- 0
.github/workflows/deploy-pages.yml Vedi File

- run: npm run docs - run: npm run docs
- run: mkdir _site - run: mkdir _site
- run: mv -t _site docs dist examples README.md LICENSE index.html - run: mv -t _site docs dist examples README.md LICENSE index.html
- run: mkdir -p _site/plugins
- run: find plugins -maxdepth 2 -type d \( -name dist -o -name docs \) -exec sh -c "mkdir -p _site/{} && cp -r {}/ _site/{}/" \;
- name: Setup Pages - name: Setup Pages
uses: actions/configure-pages@v3 uses: actions/configure-pages@v3
- name: Upload artifact - name: Upload artifact

+ 3
- 1
package.json Vedi File

"dist", "dist",
"src", "src",
"examples", "examples",
"plugins",
"plugins/*/dist",
"plugins/*/src",
"plugins/*/tsconfig.json",
"tsconfig.json" "tsconfig.json"
], ],
"repository": { "repository": {

+ 2
- 1
plugins/tweakpane-editor/package.json Vedi File

"new:publish": "npm run prepare && clean-package && npm publish --access public && clean-package restore", "new:publish": "npm run prepare && clean-package && npm publish --access public && clean-package restore",
"prepare": "npm run build", "prepare": "npm run build",
"build": "rimraf dist && NODE_ENV=production rollup -c", "build": "rimraf dist && NODE_ENV=production rollup -c",
"dev": "rollup -c -w"
"dev": "rollup -c -w",
"docs": "rimraf docs && npx typedoc"
}, },
"author": "repalash <palash@shaders.app>", "author": "repalash <palash@shaders.app>",
"license": "Apache-2.0", "license": "Apache-2.0",

+ 10
- 0
plugins/tweakpane-editor/typedoc.json Vedi File

{
"extends": [
"../../typedoc.json"
],
"entryPoints": [
"src/index.ts"
],
"name": "Threepipe Tweakpane Editor Plugin",
"readme": "none"
}

+ 2
- 1
plugins/tweakpane/package.json Vedi File

"new:publish": "npm run prepare && clean-package && npm publish --access public && clean-package restore", "new:publish": "npm run prepare && clean-package && npm publish --access public && clean-package restore",
"prepare": "npm run build", "prepare": "npm run build",
"build": "rimraf dist && NODE_ENV=production rollup -c", "build": "rimraf dist && NODE_ENV=production rollup -c",
"dev": "rollup -c -w"
"dev": "rollup -c -w",
"docs": "rimraf docs && npx typedoc"
}, },
"author": "repalash <palash@shaders.app>", "author": "repalash <palash@shaders.app>",
"license": "Apache-2.0", "license": "Apache-2.0",

+ 10
- 0
plugins/tweakpane/typedoc.json Vedi File

{
"extends": [
"../../typedoc.json"
],
"entryPoints": [
"src/index.ts"
],
"name": "Threepipe Tweakpane Plugin",
"readme": "none"
}

+ 1
- 0
scripts/build-plugins.mjs Vedi File



// Each plugin should have "prepare" that will also build the plugin // Each plugin should have "prepare" that will also build the plugin
execEachPlugin('npm install') // install dependencies execEachPlugin('npm install') // install dependencies
execEachPlugin('npm run docs')

+ 1
- 1
tsconfig.json Vedi File

"plugins": [{ "name": "typescript-plugin-css-modules" }] "plugins": [{ "name": "typescript-plugin-css-modules" }]
}, },
"include": [ "include": [
"./src/**/*",
"src/**/*",
"node_modules/@types/wicg-file-system-access/index.d.ts" "node_modules/@types/wicg-file-system-access/index.d.ts"
], ],
"exclude": [ "exclude": [

+ 3
- 0
typedoc.json Vedi File

}, },
"uiconfig.js": { "uiconfig.js": {
"*": "https://repalash.com/uiconfig.js" "*": "https://repalash.com/uiconfig.js"
},
"uiconfig-tweakpane": {
"*": "https://repalash.com/uiconfig-tweakpane"
} }
}, },
"entryPoints": ["src/index.ts"], "entryPoints": ["src/index.ts"],

Loading…
Annulla
Salva