Improve OSS plugin template

Summary:
Based https://github.com/facebook/flipper/issues/1866 and running `npx flipper-plugin init` locally. Doesn't address the original issue

Fixes #1866

Reviewed By: passy

Differential Revision: D26147089

fbshipit-source-id: 608dc92c5ccc741b6e760ea5a5034f9444e951b7
This commit is contained in:
Michel Weststrate
2021-02-01 02:24:22 -08:00
committed by Facebook GitHub Bot
parent 8c3abf7450
commit 2f15ef883d
2 changed files with 8 additions and 4 deletions

View File

@@ -70,7 +70,7 @@ test('It generates the correct files', async () => {
\\"prepack\\": \\"flipper-pkg lint && flipper-pkg bundle\\",
\\"build\\": \\"flipper-pkg bundle\\",
\\"watch\\": \\"flipper-pkg bundle --watch\\",
\\"test\\": \\"jest\\"
\\"test\\": \\"jest --no-watchman\\"
},
\\"peerDependencies\\": {
\\"flipper\\": \\"latest\\",
@@ -80,6 +80,7 @@ test('It generates the correct files', async () => {
\\"devDependencies\\": {
\\"@babel/preset-react\\": \\"latest\\",
\\"@babel/preset-typescript\\": \\"latest\\",
\\"@testing-library/react\\": \\"latest\\",
\\"@types/jest\\": \\"latest\\",
\\"@types/react\\": \\"latest\\",
\\"@types/react-dom\\": \\"latest\\",
@@ -87,7 +88,8 @@ test('It generates the correct files', async () => {
\\"flipper\\": \\"latest\\",
\\"flipper-plugin\\": \\"latest\\",
\\"flipper-pkg\\": \\"latest\\",
\\"jest\\": \\"latest\\"
\\"jest\\": \\"latest\\",
\\"typescript\\": \\"latest\\"
}
}
",

View File

@@ -16,7 +16,7 @@
"prepack": "flipper-pkg lint && flipper-pkg bundle",
"build": "flipper-pkg bundle",
"watch": "flipper-pkg bundle --watch",
"test": "jest"
"test": "jest --no-watchman"
},
"peerDependencies": {
"flipper": "latest",
@@ -26,6 +26,7 @@
"devDependencies": {
"@babel/preset-react": "latest",
"@babel/preset-typescript": "latest",
"@testing-library/react": "latest",
"@types/jest": "latest",
"@types/react": "latest",
"@types/react-dom": "latest",
@@ -33,6 +34,7 @@
"flipper": "latest",
"flipper-plugin": "latest",
"flipper-pkg": "latest",
"jest": "latest"
"jest": "latest",
"typescript": "latest"
}
}