Update scripts and release for outline-react

This commit is contained in:
Dominic Gannaway
2020-12-16 22:15:14 +00:00
committed by acywatson
parent 62068f585c
commit 6e6b68cbd7
4 changed files with 40 additions and 1 deletions

View File

@ -0,0 +1,3 @@
# `outline-react`
This package provides a set of extensions and utilities for Outline that allow for rich-text editing in React applications.

View File

@ -1,5 +1,17 @@
{
"name": "outline-react",
"author": {
"name": "Dominic Gannaway",
"email": "dg@domgan.com"
},
"description": "The library provides powerful Outline extensions for React.",
"keywords": [
"react",
"outline",
"editor",
"rich-text"
],
"license": "MIT",
"version": "0.0.4",
"dependencies": {
"outline": "0.0.4",
@ -8,5 +20,10 @@
"peerDependencies": {
"react": ">=17.0.1",
"react-dom": ">=17.0.1"
},
"repository": {
"type": "git",
"url": "https://github.com/facebookexternal/Outline",
"directory": "packages/outline-react"
}
}

View File

@ -0,0 +1,5 @@
# `outline`
Outline is a fast, light-weight, extensible library for building rich text editors on the web.
The `outline` package contains only the core functionality that powers Outline.

View File

@ -10,7 +10,21 @@ async function prepareOutlinePackage() {
await exec(`cp -R ./packages/outline/dist ./packages/outline/npm`);
await exec(`cp -R ./packages/outline/package.json ./packages/outline/npm`);
await exec(`cp -R LICENSE ./packages/outline/npm`);
await exec(`cp -R README.md ./packages/outline/npm`);
await exec(`cp -R ./packages/outline/README.md ./packages/outline/npm`);
}
async function prepareOutlineReactPackage() {
await exec(`rm -rf ./packages/outline-react/npm`);
await exec(`mkdir ./packages/outline-react/npm`);
await exec(`cp -R ./packages/outline-react/dist ./packages/outline-react/npm`);
await exec(`cp -R ./packages/outline-react/*.js ./packages/outline-react/npm`);
// await exec(`cp -R ./packages/outline-react/OutlineEnv.js ./packages/outline-react/npm`);
// await exec(`cp -R ./packages/outline-react/OutlineHotKeys.js ./packages/outline-react/npm`);
// await exec(`cp -R ./packages/outline-react/use* ./packages/outline-react/npm`);
// await exec(`cp -R ./packages/outline-react/package.json ./packages/outline-react/npm`);
await exec(`cp -R LICENSE ./packages/outline-react/npm`);
await exec(`cp -R ./packages/outline-react/README.md ./packages/outline-react/npm`);
}
prepareOutlinePackage();
prepareOutlineReactPackage();