JS & TS
vscode
"version": "0.2.0",
"configurations": [
{
"name": "Start Backend",
"type": "node",
"runtimeExecutable": "/Users/canche01/.nvm/versions/node/v18.20.3/bin/node",
"request": "launch",
"args": [
"package",
"start",
"--config",
"${workspaceFolder}/backstage/app-config.local.yaml"
],
"cwd": "${workspaceFolder}/backstage/packages/backend",
"program": "${workspaceFolder}/backstage/node_modules/.bin/backstage-cli",
"skipFiles": [
"<node_internals>/**"
],
"console": "integratedTerminal"
}
]
ESLint
https://github.com/typescript-eslint/typescript-eslint
linting.
Webpack
bundling
Rollup
building package
gulp
Automation - gulp is a toolkit that helps you automate painful or time-consuming tasks in your development workflow.
https://github.com/gulpjs/gulp
gulp command line
$ npm install --global gulp-cli
gulp for devDependencies
$ npm install --save-dev gulp
create gulpfile.js and test it.
$ vim gulpfile.js
$ gulp
karma
A simple tool that allows you to execute JavaScript code in multiple real browsers.
angularjs 的 test runner.
The main purpose of Karma is to make your test-driven development easy, fast, and fun.
https://github.com/karma-runner/karma
karma command line:
$ npm install -g karma-cli
karma for devDependencies
$ npm install --save-dev karma
$ npm install karma-jasmine karma-chrome-launcher jasmine-core --save-dev
run karma
$ karma start