
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
create-jxa-app
Advanced tools
Create MacOS Javascript for Automation (JXA) Apps with no build configuration.
Create JXA Apps and Command Line Scripts with no build configuration.
This Setup is only supported on MacOS > 10.11.
If something doesn’t work, please file an issue. If you have questions or need help, please ask in GitHub Discussions.
npx creat-jxa-app my-app
cd my-app
npm start
The compiled MacOs App is created in the build folder and can be started.
You’ll need to have Node 10.16.0 or later version on your local development machine (but it’s not required on the server). We recommend using the latest LTS version. Only MacOS is supported.
To create a new app, you may choose one of the following methods:
npx creat-jxa-app my-app
(npx is a package runner tool that comes with npm 5.2+ and higher, see instructions for older npm versions)
npm init jxa-app my-app
npm init <initializer> is available in npm 6+
yarn create jxa-app my-app
yarn create <starter-kit-package> is available in Yarn 0.25+
It will create a directory called my-app inside the current folder.
Inside that directory, it will generate the initial project structure and install the transitive dependencies:
my-app
├── README.md
├── node_modules
├── package.json
├── .gitignore
├── build
└── src
├── index.js
No configuration or complicated folder structures, only the files you need to build your app.
Once the installation is done, you can open your project folder:
cd my-app
Inside the newly created project, you can run some built-in commands:
npm start or yarn startRuns the compiler in watch mode. Finale application is in build folder.
All libaries are bundled.
There is a sourcemap inlined for debugging and the sourcecode is not mangled or compressed.
npm test or yarn testRuns jest with your tests.
npm run build or yarn buildBuilds the app for production to the build folder.
It correctly bundles all external libaries in production mode and optimizes the build for the best performance. No sourcemap files and code is mangled and compressed.
Your app is ready to be deployed.
Description
Create a JXA App project setup
Usage
$ create-jxa-app [project_directory] [options]
Options
-template, --<path-to-template> specify a template for the created project
--verbose print additional logs
--use-pnp use yarn plug-and-play manager
--use-npm use npm to install packages
-v, --version Displays current version
-h, --help Displays this message
FAQs
Create MacOS Javascript for Automation (JXA) Apps with no build configuration.
We found that create-jxa-app 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
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.