CodePlay Common is a set of build scripts and shared configuration files for Capacitor-based mobile apps. Version 3.2.19 simplifies common tasks like splash screen animation, automatic AdMob ID extraction from capacitor.config.json, and generating build variants for multiple app stores. It installs In-App Purchase plugins conditionally based on the target store. The package is intended to reduce boilerplate and manual setup by 40% for multi-app projects. It integrates with Ionic and Capacitor workflows, targeting developers who maintain multiple apps with shared build logic. The package is actively maintained on GitHub by merbin2012, though full source requires donation.
npm install codeplay-commonNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing the default export and running a build with common configuration for splash screen and multi-store output.
Use 'import codeplayCommon from 'codeplay-common'' instead of 'import ... from 'codeplay-common/dist/...'
Replace IAP plugin with @capacitor/inapppurchases and update build config.
Use 'stores: ['google', 'apple']' instead of 'googlePlay: true, appleStore: true'
Ensure capacitor.config.json is present and contains valid JSON.
Run 'npm install codeplay-common' and ensure project is configured for ESM (type: module in package.json or use .mjs extension)
Use 'import codeplayBuild from 'codeplay-common'' for default, or 'import { CodePlayBuild } from 'codeplay-common'' if using named exportAdd 'type': 'module' to package.json or transpile with Babel/TypeScript
Create capacitor.config.json with at least {} in the project root directory