SkateJS build
raw JSON → 12.2.0 verified Sat Apr 25 auth: no javascript maintenance
A CLI tool providing common build tasks for SkateJS projects, such as bundling, testing, linting, and release management. The current stable version is 12.2.0, last released in February 2017. The package is designed to simplify project setup with opinionated defaults, including support for Webpack, Karma, ESLint, and semantic-release. Key breaking changes include removal of IE9/IE10 support and JSDOM as default test environment. However, the project appears to be in maintenance mode with no recent updates and limited community adoption.
Common errors
error skatejs-build: command not found ↓
cause The package is not installed globally or not in PATH.
fix
Run 'npm install skatejs-build --save-dev' and use 'npx skatejs-build <command>' or add scripts to package.json.
error TypeError: Cannot read property 'replace' of undefined ↓
cause sk-init command may fail if package.json is missing or malformed.
fix
Ensure 'npm init' has been run and package.json is valid before running 'sk-init'.
error Module not found: Error: Can't resolve 'skatejs-build' ↓
cause Attempting to require or import the package as a JavaScript module instead of using CLI.
fix
Use CLI commands via npx or npm scripts; the package is not meant to be imported programmatically.
Warnings
breaking v12.0.0 removed support for IE9 and IE10. If you need to support these, you must add polyfills manually. ↓
fix Add polyfills for IE9/IE10 in your project's webpack config or via a polyfill service.
breaking v11.0.0 removed JSDOM integration. The test environment now defaults to real browsers loaded from cwd's browsers file. ↓
fix Run 'sk-init' to generate a browsers file, or configure Karma manually.
deprecated The package has not been updated since February 2017 and may not work with modern tooling (e.g., Node.js >=12, Webpack 4/5). ↓
fix Consider alternative build tools like Webpack CLI, Karma, or semantic-release directly.
gotcha Commands like sk-bundle and sk-tests are only available via npx or npm scripts; they are not JavaScript modules and cannot be imported. ↓
fix Use as CLI commands: 'npx skatejs-build <command>' or add to package.json scripts.
Install
npm install skatejs-build yarn add skatejs-build pnpm add skatejs-build Imports
- sk-init wrong
npm install -g skatejs-build && sk-initcorrectcommand: npx skatejs-build sk-init - sk-bundle wrong
require('skatejs-build/sk-bundle')correctcommand: npx skatejs-build sk-bundle - sk-tests wrong
import { skTests } from 'skatejs-build'correctcommand: npx skatejs-build sk-tests
Quickstart
mkdir my-project
cd my-project
npm init -y
npm install skatejs-build --save-dev
npx skatejs-build sk-init
npx skatejs-build sk-bundle
npx skatejs-build sk-tests