
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
concordialang-plugin
Advanced tools
🔌 Concordia Compiler plug-in interface
👉 The following procedure requires Concordia Compiler
2.0.0-alpha-19
or later
concordialang-
. We recommend that it contains the target frameworks - e.g. concordialang-foo-bar
if you will use the (hypothetical) frameworks "foo"
and "bar"
.package.json
(e.g., npm init
).concordialang-types
and concordialang-plugin
as dependencies (e.g., npm i concordialang-types concordialang-plugin
)."concordiaPlugin": true
to your package.json
.src/index.ts
) with a class that implements the interface Plugin
(see API).default
export (i.e, export default class
)."main"
from your package.json
to the JS file that contains the created class (e.g., "dist/index.js"
).Note: You can use JavaScript instead of TypeScript.
package.json
(e.g., npm init --yes
).features/example.feature
).npm i -D concordialang
) and run the init command (npx concordia --init
).npm i -D /path/to/your-plugin
)npx concordia -p your-plugin
) and see with it is executed correctly.npm login
."files"
into your package.json
that indicates the (source code) files to distribute."version"
of your package file was set correctly.npm publish --dry-run
to simulate the publishing.npm publish
.See fake-plugin for a simple example.
export interface Plugin {
//
// Test Generation and Execution
//
/**
* Multi-platform command to start a testing server, if needed.
*
* 👉 Set its value only if the testing framework does need a testing server.
*
* @example
* "selenium-standalone start"
*/
serveCommand?: string;
/**
* Generates source code from abstract test scripts, according to the given options.
*
* @param abstractTestScripts Abstract test scripts
* @param options Options
* @return Generation results.
*/
generateCode?: (
abstractTestScripts: AbstractTestScript[],
options: TestScriptGenerationOptions
) => Promise< TestScriptGenerationResult >;
/**
* Executes test scripts, according to the given options.
*
* @param options Execution options.
* @return Execution results.
*/
executeCode?: ( options: TestScriptExecutionOptions ) => Promise< TestScriptExecutionResult >;
/**
* Converts a file produced by the execution of test scripts (e.g. a JSON or a XML file).
*
* @param filePath Input file.
* @return Execution results.
*/
convertReportFile?: ( filePath: string ) => Promise< TestScriptExecutionResult >;
//
// Events
//
/**
* Event that happens before the compiler reports the test script results.
*
* @param result Test script execution result.
* @param options Test script execution options.
*/
beforeReporting?: ( result?: TestScriptExecutionResult, options?: TestScriptExecutionOptions ) => Promise< void >;
/**
* Event that happens after the compiler reports the test script results.
*
* @param result Test script execution result.
* @param options Test script execution options.
*/
afterReporting?: ( result?: TestScriptExecutionResult, options?: TestScriptExecutionOptions ) => Promise< void >;
}
Please see the src
folder for more information about the used types.
FAQs
Concordia Compiler Plug-in
We found that concordialang-plugin 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.