Unternberg → Kitzbühel
One more video is after the break (Aspres, France)
One more video is after the break (Aspres, France)
Two more videos are after the break:
It turned out that the newest versions (at least 5+) of webpack support Typescript out of the box. So the algorithm is next:
tsconfig.json at the root level. Content:{ "compilerOptions": { "module": "CommonJS", "target": "ES5", "esModuleInterop": true, "checkJs": false, "strict": true, } }
.js files to *.tsrequire, use import.webpack package has typings out of the box.
Configuration & RuleSetRuledevServer write this: interface Configuration extends WebpackConfiguration { devServer?: WebpackDevServerConfiguration; }
*.d.ts filedeclare module 'postcss-assets' { export default function postcssAssets(opts: { basePath: string; relative: boolean; }): unknown; }
webpack.config.ts file is placed at the root level. I mean exactly at the same spot where node_modules is. Otherwise, you won’t be able to build it. No compilerOptions helped me. Put this content:
[Unit] Description={name} [Service] Type=simple User={user} ExecStart=/usr/bin/node {full-path-to-script}.js [Install] WantedBy=multi-user.target
… somewhere as {name}.service, where:
{name} is the name of the service{user} is the name of the user to run the script (optional)… then:
this sudo ln -s /{full_path}/{name}.service /lib/systemd/system/{name}.service sudo systemctl daemon-reloadsudo systemctl enable {name}.servicesudo systemctl start {name}How does it work?
WantedBy section).ExecStart command. Important: we specify the full path to nodeSystemD remembers the PID of the new process and considers the service is ongoing until the process is died.systemctrl start {name} won’t do anything if the previous process is alive.Type=Simple
One more video (with my launches) is after the break