Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
bobril-build
Advanced tools
Helper tool to build Bobril applications Mainly it will support copying sprites, building big sprites. support i18n. All this during optimal TypeScript compilation.
Changelog: https://github.com/Bobris/Bobril-build/blob/master/CHANGELOG.md
Requires: Node version 8+ (needs to support async)
How to use:
npm install bobril-build -g
Then create package.json with typescript.main or name your main ts file as index.ts or app.ts and start:
bb
This will start bobril build in interactive mode. It will watch changes of your application, recompile and host in on http://localhost:8080. It uses latest Typescript to compile and prefer Node moduleResolution. Compilation for maximum speed enables skipDefaultLibCheck.
In interactive mode it also starts chrome headless and runs tests. Results could be seen on http://localhost:8080/bb. To start another testing agent point any browser to http://localhost:8080/bb/test. If you want to debug tests open http://localhost:8080/test.html, any failed asserts throws expections so it is easy to stop on them.
There is also command line single build option. Start to learn all options:
bb -h
For development of bobril-build check out this project and start:
npm link
Compile using tasks in VSCode or running tsc
(in directories src
, srcHelpers
, spec
). Web and Webt dirs are compiled by itself bb b
.
Use bobril.asset(path) to include asset to compilation. *.css files are automatically linked in index.html head. *.js files are automatically prepended to bundle.js.
Jenkins integration (in memory compile, run tests in Chrome Headless, write result in JUnit xml format):
bb test -o junitTestResult.xml
It reads package.json
and understands:
{
"typescript": {
"main": "pathToMain.ts"
},
"bobril": {
"dir": "name of directory where to place release default is dist",
"resourcesAreRelativeToProjectDir": false, // this is default
"example": "pathToExample.ts", // sample application entry point - if main is index.ts than example.ts is searched for default
"title": "index.html Title",
"interactiveToDisk": false, // write output of interactive mode do "dir" directory
"compilerOptions": {
"noImplicitAny": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"strictNullChecks": true,
"declaration": true,
},
"prefixStyleDefs": undefined,
"constantOverrides": {
"module_name": {
"export_name": "New value, it supports also number and boolean values"
}
},
"dependencies": "install", // "disable" = no yarn at start, "install" = yarn install, "upgrade" = yarn upgrade
"plugins": {
"pluginName": {
"configKey": "configValue"
}
},
"defaultLanguage": "en-US" // default translation language
}
}
It is currently not selfhosting but it will come...
0.79.1
FAQs
Bobril-build core npm downloader and runner
The npm package bobril-build receives a total of 2,106 weekly downloads. As such, bobril-build popularity was classified as popular.
We found that bobril-build 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.