generated from tweakpane/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from kitschpatrol/tweakpane-v4
Update for Tweakpane v4.
- Loading branch information
Showing
15 changed files
with
106 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
node_modules | ||
/dist/**/* | ||
/docs/**/* | ||
/ts*/**/* | ||
/types/**/* | ||
.eslintrc.cjs | ||
rollup.config.js |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* eslint-disable no-console */ | ||
/* eslint-env node */ | ||
|
||
import Fs from 'fs'; | ||
|
||
const Package = JSON.parse( | ||
Fs.readFileSync(new URL('../package.json', import.meta.url)), | ||
); | ||
|
||
// `@tweakpane/plugin-foobar` -> `tweakpane-plugin-foobar` | ||
// `tweakpane-plugin-foobar` -> `tweakpane-plugin-foobar` | ||
const name = Package.name | ||
.split(/[@/-]/) | ||
.reduce((comps, comp) => (comp !== '' ? [...comps, comp] : comps), []) | ||
.join('-'); | ||
console.log(name); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import {TweakpaneTextareaPlugin} from './plugin'; | ||
import type {TpPlugin} from 'tweakpane'; | ||
|
||
import {TweakpaneTextareaPlugin} from './plugin.js'; | ||
|
||
export const id = 'textarea'; | ||
|
||
export const css = '__css__'; | ||
|
||
// Export your plugin(s) as constant `plugins` | ||
export const plugins = [TweakpaneTextareaPlugin]; | ||
export const plugins: TpPlugin[] = [TweakpaneTextareaPlugin]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.