@ckeditor/ckeditor5-package-tools v1.1.0
CKEditor 5 Package Tools
This package implements the scripts and utils used by ckeditor5-package-generator
.
Installation
npm install --save @ckeditor/ckeditor5-package-tools
Usage
The following scripts are available in the package:
test
– prepares an entry file and passes it to the karma test runner,start
– prepares the development server with the live-reloading mechanism,dll:build
– prepares a file compatible with CKEditor 5 DLL that exposes plugins from the package,translations:collect
– collects translations context and prepares them to be sent to Transifex,translations:upload
– uploads collected contexts to Transifex,translations:download
– downloads translated contexts from Transifex,export-package-as-javascript
– changesmain
entry inpackage.json
file to point to a.js
file,export-package-as-typescript
– changesmain
entry inpackage.json
file to point to a.ts
file.
There are two ways to integrate these scripts, either with npm scripts or Node.js scripts.
Integration with npm scripts
Available scripts can be called via npm scripts in the package.json
file, e.g.:
{
"dll:build": "ckeditor5-package-tools dll:build"
}
The translations:download
and translations:upload
tasks require the --transifex
modifier:
{
"translations:download": "ckeditor5-package-tools translations:download --transifex [API URL]"
}
Integration with Node.js scripts
Available scripts can be called manually as Node scripts, e.g.:
const packageTools = require( '@ckeditor/ckeditor5-package-tools' );
packageTools[ 'dll:build' ]( /* Ckeditor5PackageToolsOptions */ );
All available scripts require the Ckeditor5PackageToolsOptions
object. Its interface is described in the lib/utils/parse-arguments.js
file.
Additionally, translations:download
and translations:upload
tasks require the transifex
option to be passed in the Ckeditor5PackageToolsOptions
object.
Contribute
The source code of this package is available on GitHub in https://github.com/ckeditor/ckeditor5-package-generator/tree/master/packages/ckeditor5-package-tools.
Changelog
See the CHANGELOG.md
file.
License
The package is licensed under the terms of MIT license. Please check the LICENSE.md
file.
10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago