Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for Lerna NPM package management. #91

Merged
merged 4 commits into from
Oct 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
node_modules
yarn-error.log

# NPM "fbt-runtime" package folder for publishing
./fbt-runtime

# MacOS
.DS_Store

Expand All @@ -25,10 +22,10 @@ live-demo-app/output
live-demo-app/src/translatedFbts.json
live-demo-app/yarn-error.log

# Publisehd NPM modules
fbt-runtime/**
!fbt-runtime/.yarnrc
!fbt-runtime/package.json
# "Built" Publisehd NPM modules
packages/fbt/**
!packages/fbt/.yarnrc
!packages/fbt/package.json

# documentation build artifacts
website/build/
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ We haven't had the best track record of code/feature changes before this date, b
- [babel-plugin-fbt-runtime versions](#babel-plugin-fbt-runtime-versions)
- [fb-tiger-hash versions](#fb-tiger-hash-versions)

### Top-level Github
- Prepare directory structure for Lerna

### fbt versions
<details>
<summary>
Expand Down
12 changes: 6 additions & 6 deletions demo-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"license": "MIT",
"scripts": {
"build": "babel-node ../node_modules/webpack/bin/webpack",
"manifest": "babel-node ../transform/babel-plugin-fbt/bin/manifest --src src",
"collect-fbts": "babel-node ../transform/babel-plugin-fbt/bin/collectFBT --pretty --manifest < .src_manifest.json > .source_strings.json",
"test-collect-fbts": "babel-node ../transform/babel-plugin-fbt/bin/collectFBT --plugins @babel/plugin-syntax-flow --pretty --manifest < .src_manifest.json > .test_source_strings.json",
"translate-fbts": "babel-node ../transform/babel-plugin-fbt/bin/translate.js --translations translations/*.json --jenkins > src/translatedFbts.json",
"translate-fbts-single-file": "babel-node ../transform/babel-plugin-fbt/bin/translate.js --jenkins --stdin < translation_input.json > src/translatedFbts.json",
"test-translate-fbts-into-output-dir": "babel-node ../transform/babel-plugin-fbt/bin/translate.js --translations translations/*.json --jenkins --output-dir src/translatedFbts",
"manifest": "babel-node ../packages/babel-plugin-fbt/bin/manifest --src src",
"collect-fbts": "babel-node ../packages/babel-plugin-fbt/bin/collectFBT --pretty --manifest < .src_manifest.json > .source_strings.json",
"test-collect-fbts": "babel-node ../packages/babel-plugin-fbt/bin/collectFBT --plugins @babel/plugin-syntax-flow --pretty --manifest < .src_manifest.json > .test_source_strings.json",
"translate-fbts": "babel-node ../packages/babel-plugin-fbt/bin/translate.js --translations translations/*.json --jenkins > src/translatedFbts.json",
"translate-fbts-single-file": "babel-node ../packages/babel-plugin-fbt/bin/translate.js --jenkins --stdin < translation_input.json > src/translatedFbts.json",
"test-translate-fbts-into-output-dir": "babel-node ../packages/babel-plugin-fbt/bin/translate.js --translations translations/*.json --jenkins --output-dir src/translatedFbts",
"clean-fbts": "rm .enum_manifest.json .src_manifest.json .source_strings.json src/translatedFbts.json 2&> /dev/null || exit 0",
"start": "babel-node ../node_modules/webpack-dev-server/bin/webpack-dev-server --open",
"test": "babel-node ../node_modules/jest/bin/jest --config ./jest.config.json"
Expand Down
11 changes: 6 additions & 5 deletions live-demo-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"license": "MIT",
"scripts": {
"build": "babel-node ../node_modules/webpack/bin/webpack",
"manifest": "babel-node ../transform/babel-plugin-fbt/bin/manifest --src src",
"collect-fbts": "babel-node ../transform/babel-plugin-fbt/bin/collectFBT --pretty --manifest < .src_manifest.json > .source_strings.json",
"manifest": "babel-node ../packages/babel-plugin-fbt/bin/manifest --src src",
"collect-fbts": "babel-node ../packages/babel-plugin-fbt/bin/collectFBT --pretty --manifest < .src_manifest.json > .source_strings.json",
"translate-fbts": "babel-node ../packages/babel-plugin-fbt/bin/translate.js --translations translations/*.json --jenkins > src/translatedFbts.json",
"translate-fbts-single-file": "babel-node ../packages/babel-plugin-fbt/bin/translate.js --jenkins --stdin < translation_input.json > src/translatedFbts.json",
"test-collect-fbts": "babel-node ../transform/babel-plugin-fbt/bin/collectFBT --plugins @babel/plugin-syntax-flow --pretty --manifest < .src_manifest.json > .test_source_strings.json",
"translate-fbts": "babel-node ../transform/babel-plugin-fbt/bin/translate.js --translations translations/*.json --jenkins > src/translatedFbts.json",
"translate-fbts-single-file": "babel-node ../transform/babel-plugin-fbt/bin/translate.js --jenkins --stdin < translation_input.json > src/translatedFbts.json",
"test-translate-fbts-into-output-dir": "babel-node ../transform/babel-plugin-fbt/bin/translate.js --translations translations/*.json --jenkins --output-dir src/translatedFbts",
"test-translate-fbts-into-output-dir": "babel-node ../packages/babel-plugin-fbt/bin/translate.js --translations translations/*.json --jenkins --output-dir src/translatedFbts",
"clean-fbts": "rm .enum_manifest.json .src_manifest.json .source_strings.json src/translatedFbts.json 2&> /dev/null || exit 0",
"start": "babel-node ../node_modules/webpack-dev-server/bin/webpack-dev-server --open",
"test": "babel-node ../node_modules/jest/bin/jest --config ./jest.config.json"
Expand Down Expand Up @@ -75,6 +75,7 @@
"babel-plugin-minify-replace": "0.5.0",
"babel-plugin-fbt": "^0.10.0",
"babel-plugin-fbt-runtime": "^0.9.5",
"fbt": "^0.10.0",
"fbjs": "1.0.0",
"fbt": "^0.10.0",
"lodash": "4.17.11",
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@
},
"workspaces": [
"demo-app",
"fb-tiger",
"fbt-runtime",
"live-demo-app",
"transform/*",
"packages/*",
"website"
],
"engines": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.