Skip to content

Studio by WordPress.com, a free desktop app that helps developers streamline their local WordPress development workflow.

License

Notifications You must be signed in to change notification settings

syaifulnizamiphone7/studio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Studio by WordPress.com

A desktop application for creating local WordPress environments powered by WordPress Playground.

Development

$ nvm use
$ npm install
$ npm start

The app automatically launches with the Chromium developer tools opened by default.

src/index.ts is the entry point for the main process.

src/renderer.ts is the entry point for the "renderer"—the code running in the Chromium window.

Code formatting has been set up to make merging PRs easier. It uses the same prettier/eslint mechanism as Calypso, see p4TIVU-9Lo-p2 for details on setting up your editor.

Debugging

The renderer process can be debugged using the Chromium developer tools. To open the developer tools, press Cmd+Option+I on Mac or Ctrl+Shift+I on Windows.

The React tree in the renderer process can be debugged with the standalone React Developer Tools. To do this, start the the React Developer Tools and then start the app with the REACT_DEV_TOOLS=true flag set.

$ npx react-devtools
$ REACT_DEV_TOOLS=true npm start

The main process can be debugged using the Node.js inspector. To do this, run the app with the --inspect-brk-electron flag:

$ npm start -- --inspect-brk-electron

Then open chrome://inspect in a Chromium-based browser and click "inspect" next to the process you want to debug.

Building Installers

Installers can currently be built on Mac (Intel or Apple Silicon) and Windows:

$ npm install
$ npm run make

Localization

See localization docs

Versioning and Updates

See versioning docs

[Linux] Authentication setup for local development

In order for the authentication to work on Linux, you need to follow the next steps:

  • Run npm run make from the root of the project
  • Create a new .desktop file in ~/.local/share/applications/ with the following content:
[Desktop Entry]
Name=Studio By WordPress.com dev
Comment=Studio By WordPress.com dev
Exec=<path_of_project>/out/Studio-linux-x64/studio %U
Type=Application
Terminal=false
MimeType=x-scheme-handler/wpcom-local-dev;
Categories=Development;
  • Run update-desktop-database ~/.local/share/applications/ to update the desktop database
  • Ensure that there is an new entry in ~/.config/mimeapps.list for x-scheme-handler/wpcom-local-dev protocol.

About

Studio by WordPress.com, a free desktop app that helps developers streamline their local WordPress development workflow.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 95.3%
  • JavaScript 1.8%
  • CSS 0.9%
  • Ruby 0.8%
  • PowerShell 0.5%
  • Shell 0.3%
  • Other 0.4%