-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(plugin): core plugin in create
- Loading branch information
Showing
9 changed files
with
43 additions
and
35 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,16 +1,32 @@ | ||
{ | ||
"name": "root", | ||
"private": true, | ||
"workspaces": ["packages/*"], | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"scripts": { | ||
"bootstrap": "lerna bootstrap --use-workspaces", | ||
"dev": "lerna exec yarn dev", | ||
"build": "lerna exec yarn build", | ||
"test": "lerna exec yarn test", | ||
"lint": "lerna exec yarn lint", | ||
"deploy": "yarn bootstrap && yarn build" | ||
"deploy": "yarn bootstrap && yarn build", | ||
"release:validate": "yarn test && yarn build", | ||
"release:initial": "yarn release:validate && standard-version --first-release", | ||
"release:minor": "yarn release:validate && standard-version --release-as minor", | ||
"release:alpha:minor": "yarn release:validate && standard-version --release-as minor --prerelease alpha", | ||
"release:beta:minor": "yarn release:validate && standard-version --release-as minor --prerelease beta", | ||
"release:patch": "yarn release:validate && standard-version --release-as patch", | ||
"release:alpha:patch": "yarn release:validate && standard-version --release-as patch --prerelease alpha", | ||
"release:beta:patch": "yarn release:validate && standard-version --release-as patch --prerelease beta", | ||
"release:major": "yarn release:validate && standard-version --release-as major", | ||
"release:alpha:major": "yarn release:validate && standard-version --release-as major --prerelease alpha", | ||
"release:beta:major": "yarn release:validate && standard-version --release-as major --prerelease beta", | ||
"release:alpha": "yarn release:validate && standard-version --prerelease alpha", | ||
"release:beta": "yarn release:validate && standard-version --prerelease beta" | ||
}, | ||
"devDependencies": { | ||
"lerna": "4.0.0" | ||
"lerna": "4.0.0", | ||
"standard-version": "^9.3.2" | ||
} | ||
} |
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,19 +1,7 @@ | ||
import { PluginTypes } from 'better-write-types' | ||
import { PluginLoggerActions } from './actions' | ||
import { PluginLoggerProject } from './project' | ||
import { createPlugin } from 'better-write-plugin-core' | ||
|
||
export const LoggerPlugin = (): PluginTypes.Plugin => { | ||
const defines = { | ||
name: 'logger', | ||
} as PluginTypes.PluginDefines | ||
|
||
const init = ( | ||
emitter: PluginTypes.PluginEmitter, | ||
stores: PluginTypes.PluginStores | ||
) => { | ||
PluginLoggerActions(emitter, stores) | ||
PluginLoggerProject(emitter, stores) | ||
} | ||
|
||
return { init, defines } | ||
} | ||
export const LoggerPlugin = () => | ||
createPlugin({ name: 'logger' }, [PluginLoggerActions, PluginLoggerProject]) |
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,17 +1,5 @@ | ||
import { PluginTypes } from 'better-write-types' | ||
import { createPlugin } from 'better-write-plugin-core' | ||
import { PluginThemeSet } from './set' | ||
|
||
export const ThemePlugin = (): PluginTypes.Plugin => { | ||
const defines = { | ||
name: 'theme', | ||
} as PluginTypes.PluginDefines | ||
|
||
const init = ( | ||
emitter: PluginTypes.PluginEmitter, | ||
stores: PluginTypes.PluginStores | ||
) => { | ||
PluginThemeSet(emitter, stores) | ||
} | ||
|
||
return { init, defines } | ||
} | ||
export const ThemePlugin = () => | ||
createPlugin({ name: 'theme' }, [PluginThemeSet]) |
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
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