get embed.js copied over to embedr
This commit is contained in:
committed by
Dan Abramov
parent
7c0888728a
commit
b585091108
@@ -13,6 +13,11 @@ build-web: ## Compile web bundle, copy to bskyweb directory
|
|||||||
yarn intl:build
|
yarn intl:build
|
||||||
yarn build-web
|
yarn build-web
|
||||||
|
|
||||||
|
.PHONY: build-web-embed
|
||||||
|
build-web-embed: ## Compile web embed bundle, copy to bskyweb/embedr* directories
|
||||||
|
yarn intl:build
|
||||||
|
yarn build-embed
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: ## Run all tests
|
test: ## Run all tests
|
||||||
NODE_ENV=test EXPO_PUBLIC_ENV=test yarn test
|
NODE_ENV=test EXPO_PUBLIC_ENV=test yarn test
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ test-coverage.out
|
|||||||
static/js/*.js
|
static/js/*.js
|
||||||
static/js/*.map
|
static/js/*.map
|
||||||
static/js/*.js.LICENSE.txt
|
static/js/*.js.LICENSE.txt
|
||||||
|
static/js/empty.txt
|
||||||
templates/scripts.html
|
templates/scripts.html
|
||||||
templates/*-embed.html
|
templates/*-embed.html
|
||||||
static/embed/*.html
|
static/embed/*.html
|
||||||
|
|||||||
+1
-1
@@ -20,7 +20,7 @@
|
|||||||
"build-ios": "yarn use-build-number-with-bump eas build -p ios",
|
"build-ios": "yarn use-build-number-with-bump eas build -p ios",
|
||||||
"build-android": "yarn use-build-number-with-bump eas build -p android",
|
"build-android": "yarn use-build-number-with-bump eas build -p android",
|
||||||
"build": "yarn use-build-number-with-bump eas build",
|
"build": "yarn use-build-number-with-bump eas build",
|
||||||
"build-embed": "cd bskyembed && yarn build && cd .. && node ./scripts/post-embed-build.js",
|
"build-embed": "cd bskyembed && yarn build && yarn build-snippet && cd .. && node ./scripts/post-embed-build.js",
|
||||||
"start": "expo start --dev-client",
|
"start": "expo start --dev-client",
|
||||||
"start:prod": "expo start --dev-client --no-dev --minify",
|
"start:prod": "expo start --dev-client --no-dev --minify",
|
||||||
"clean-cache": "rm -rf node_modules/.cache/babel-loader/*",
|
"clean-cache": "rm -rf node_modules/.cache/babel-loader/*",
|
||||||
|
|||||||
@@ -11,6 +11,22 @@ const embedAssetDest = path.join(projectRoot, 'bskyweb', 'embedr-static')
|
|||||||
|
|
||||||
fs.cpSync(embedAssetSource, embedAssetDest, {recursive: true})
|
fs.cpSync(embedAssetSource, embedAssetDest, {recursive: true})
|
||||||
|
|
||||||
|
const embedEmbedJSSource = path.join(
|
||||||
|
projectRoot,
|
||||||
|
'bskyembed',
|
||||||
|
'dist',
|
||||||
|
'embed.js',
|
||||||
|
)
|
||||||
|
|
||||||
|
const embedEmbedJSDest = path.join(
|
||||||
|
projectRoot,
|
||||||
|
'bskyweb',
|
||||||
|
'embedr-static',
|
||||||
|
'embed.js',
|
||||||
|
)
|
||||||
|
|
||||||
|
fs.cpSync(embedEmbedJSSource, embedEmbedJSDest)
|
||||||
|
|
||||||
// copy entrypoint(s) to embedr
|
// copy entrypoint(s) to embedr
|
||||||
|
|
||||||
// additional entrypoints will need more work, but this'll do for now
|
// additional entrypoints will need more work, but this'll do for now
|
||||||
|
|||||||
Reference in New Issue
Block a user