Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@mmit/typescript-starter
Advanced tools
Read HTML: https://github.com/GoogleChrome/puppeteer/issues/2913
yarn add @types/expect-puppeteer @types/puppeteer jest-puppeteer puppeteer -D
Install: yarn add qunit @types/qunit -D
tsconfig.json
:
{
include: [
// QUnit scheint sonst nicht zu funktionieren
"node_modules/@types/qunit/index.d.ts"
]
}
src/types/global.d.ts
:
import 'qunit';
git clone git@github.com:MikeMitterer/typescript-starter.git <new project>
cd <new project>
rm -rf .git
git init
# GH Repo anlegen e.g. ts-signer
git remote add origin git@github.com:MikeMitterer/ts-signer.git
# Repo in package.json anpassen
"repository": {
"type": "git",
"url": "https://github.com/MikeMitterer/typescript-training"
},
In README.md und package.json die GH-Url anpassen
# Version auf 0.1.0 ziehen
sed -i '' -e "s/\"version\": \".*\"/\"version\": \"0.1.0\"/" package.json | cat package.json | grep '"version'
# Package-Name, Description und REPO-Url anpassen
ws package.json
# Deploy evtl. auf restricted umstellen
"deploy": "yarn version --new-version patch && yarn publish --access restricted --non-interactive",
"deploy": "yarn version --new-version patch && yarn publish --access public --non-interactive",
# README rudimentär anpassen (Title + Home)
Repo bei README einfügen
# .rsync, .deployWebApp.conf, tools, TODO löschen
rm -rf .rsync tools TODO
LICENCE anpassen
> https://docs.npmjs.com/files/package.json#license
# Evtl. (verhindert das publishen)
"private": true,
# Wenn die Licence private ist
"license": "UNLICENSED",
build.jenkins anpassen (Builds in 'Test' können alle entfernt werden)
Check ob die default-Dependencies benötigt werden
# Auf GIT pushen
git add . && git commit -am "Initial release" && git push -u origin master
yarn clean
yarn deploy
Erstellt die nötigen Files in lib
yarn deploy:node
Erstellt im bin
-Folder das File app.js dass mit node bin app.js
aufgerufen werden kann
yarn deploy:web
Browser-Part wird in dist
veröffentlicht. Kann mit simplehttpserver dist/
getestet werden
yarn test | jest Führt die Unit-Tests aus
yarn-upgrade-latest
# Kill Browser
ps | grep -i -C 0 "[/]webpack-dev-server" | awk '{print $1}' | while read psid; do echo "kill -HUP ${psid}"; done
FAQs
This is a starter project for typescript projects
The npm package @mmit/typescript-starter receives a total of 17 weekly downloads. As such, @mmit/typescript-starter popularity was classified as not popular.
We found that @mmit/typescript-starter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.