generated from tweakpane/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,62 @@ | ||
{ | ||
"name": "@pangenerator/tweakpane-textarea-plugin", | ||
"version": "1.0.4", | ||
"version": "2.0.0", | ||
"description": "Textarea plugin for Tweakpane", | ||
"main": "dist/tweakpane-textarea-plugin.js", | ||
"type": "module", | ||
"types": "dist/types/index.d.ts", | ||
"author": "panGenerator <[email protected]>", | ||
"license": "MIT", | ||
"files": [ | ||
"dist" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/panGenerator/tweakpane-textarea-plugin.git" | ||
}, | ||
"keywords": [ | ||
"tweakpane", | ||
"tweakpane-plugin", | ||
"plugin", | ||
"textarea", | ||
"multiline" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/panGenerator/tweakpane-textarea-plugin.git" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"prepare": "run-s clean build", | ||
"prepublishOnly": "npm test", | ||
"start": "npm run watch", | ||
"test": "eslint --ext .ts \"src/**/*.ts\"", | ||
"assets": "run-s clean build assets:version assets:zip", | ||
"assets:version": "node scripts/assets-append-version.js", | ||
"assets:zip": "zip -x \"*types*\" -j -r $(cat package.json | npx json name)-$(cat package.json | npx json version).zip dist", | ||
"clean": "rimraf dist *.tgz *.zip", | ||
"assets:zip": "zip -x '*types*' -j -r $(node scripts/dist-name.js)-$(cat package.json | npx json version).zip dist", | ||
"build": "run-p build:*", | ||
"build:dev": "rollup --config rollup.config.js", | ||
"build:dts": "tsc --project src/tsconfig-dts.json", | ||
"build:prod": "rollup --config rollup.config.js --environment BUILD:production", | ||
"clean": "rimraf dist *.tgz *.zip", | ||
"format": "run-p format:*", | ||
"format:scss": "prettier --parser scss --write \"src/sass/**/*.scss\"", | ||
"format:ts": "eslint --ext .ts --fix \"src/**/*.ts\"", | ||
"postversion": "git push --tags", | ||
"prepare": "run-s clean build", | ||
"prepublishOnly": "npm test", | ||
"server": "http-server -c-1 -o /test/browser.html", | ||
"start": "run-p watch server", | ||
"test": "eslint --ext .ts \"src/**/*.ts\"", | ||
"watch": "run-p watch:*", | ||
"watch:sass": "onchange --initial --kill \"src/sass/**/*.scss\" -- npm run build:dev", | ||
"watch:ts": "onchange --initial --kill \"src/**/*.ts\" -- rollup --config rollup.config.js", | ||
"postversion": "git push --tags" | ||
"watch:ts": "onchange --initial --kill \"src/**/*.ts\" -- rollup --config rollup.config.js" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-alias": "^3.1.2", | ||
"@rollup/plugin-node-resolve": "^13.0.0", | ||
"@rollup/plugin-replace": "^2.4.1", | ||
"@rollup/plugin-typescript": "^8.2.0", | ||
"@tweakpane/core": "^1.0.6", | ||
"@typescript-eslint/eslint-plugin": "^4.15.2", | ||
"@typescript-eslint/parser": "^4.15.2", | ||
"@tweakpane/core": "^2.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.62.0", | ||
"@typescript-eslint/parser": "^5.62.0", | ||
"autoprefixer": "^10.2.4", | ||
"eslint": "^7.20.0", | ||
"eslint": "^8.46.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-prettier": "^3.3.1", | ||
"eslint-plugin-simple-import-sort": "^7.0.0", | ||
"http-server": "^14.1.1", | ||
"npm-run-all": "^4.1.5", | ||
"onchange": "^7.1.0", | ||
"postcss": "^8.2.6", | ||
|
@@ -63,9 +66,10 @@ | |
"rollup-plugin-cleanup": "^3.2.1", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"sass": "^1.49.9", | ||
"typescript": "^4.1.5" | ||
"tweakpane": "^4.0.0", | ||
"typescript": "^4.9.5" | ||
}, | ||
"peerDependencies": { | ||
"tweakpane": "^3.0.5" | ||
"tweakpane": "^4.0.0" | ||
} | ||
} |
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.