![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@jag-k/rollup-plugin-scriptable
Advanced tools
Create a Scriptable bundle from your project
npm i -D @jag-k/rollup-plugin-scriptable
// rollup.config.js
import scriptableBundle from "@jag-k/rollup-plugin-scriptable";
import * as config from "./config.json";
export default {
input: 'src/index.js',
output: [
{
file: `dist/widget.js`,
format: 'es',
plugins: [scriptableBundle(config)]
}
]
};
// config.json
{
"always_run_in_app": false,
"icon": {
"color": "blue",
"glyph": "users"
},
"name": "Widget",
"share_sheet_inputs": []
}
After build, you will get 2 files:
dist
├── HASS Persons.js
└── HASS Persons.scriptable
In .js
file added banner for Scriptable app.
.scriptable
file contains bundle for Scriptable app.
This is config.json
file with script
key which value is compiled code.
You can use rollup-plugin-copy
to copy files to iCloud for easy
development and debugging Scriptable scripts.
// rollup.config.js
import scriptableBundle from "@jag-k/rollup-plugin-scriptable";
import copy from 'rollup-plugin-copy';
import * as config from "./config.json";
export default {
input: 'src/main.ts',
output: [
{
file: `dist/${config.name}.js`,
format: 'es',
plugins: [scriptableBundle(config)]
},
],
plugins: process.env.COPY_TO_ICLOUD === 'true' ? [
copy({
targets: [
{
src: `dist/*.js`,
dest: '~/Library/Mobile Documents/iCloud~dk~simonbs~Scriptable/Documents/'
},
]
})
] : []
};
FAQs
Create a Scriptable bundle from your project
The npm package @jag-k/rollup-plugin-scriptable receives a total of 19 weekly downloads. As such, @jag-k/rollup-plugin-scriptable popularity was classified as not popular.
We found that @jag-k/rollup-plugin-scriptable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.