GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Axel Rauschmayer (rauschma@fosstodon.org)'s status on Sunday, 03-Mar-2024 07:52:39 JST Axel Rauschmayer Axel Rauschmayer

    #TypeScript: Stale compiled files can cause issues (when you rename an input file, the old output file isn’t removed). That’s why I occasionally do:

    npm run build

    "scripts": {
    "build": "npm run clean && tsc",
    "clean": "shx rm -rf ./dist/*",
    ···
    }

    shx provides cross-platform shell commands: https://exploringjs.com/nodejs-shell-scripting/ch_package-scripts.html#file-system-operations

    In conversation about a year ago from fosstodon.org permalink

    Attachments

    1. No result found on File_thumbnail lookup.
      Running cross-platform tasks via npm package scripts • Shell scripting with Node.js
    • Embed this notice
      Sergey Shandar (functionalscript@techhub.social)'s status on Sunday, 03-Mar-2024 07:52:39 JST Sergey Shandar Sergey Shandar
      in reply to

      @rauschma it's one of the problems why I avoid build steps at all costs. I'm so happy that I switched to JavaScript + JSDoc (TypeScript as a linter) and never look back.

      In conversation about a year ago permalink
    • Embed this notice
      jcaron (jcaron@mastodon.social)'s status on Monday, 04-Mar-2024 12:57:43 JST jcaron jcaron
      in reply to
      • Sergey Shandar

      @functionalscript @rauschma this, JSDoc typing is the way to go 🤙

      In conversation about a year ago permalink
    • Embed this notice
      Sergey Shandar (functionalscript@techhub.social)'s status on Monday, 04-Mar-2024 12:57:43 JST Sergey Shandar Sergey Shandar
      in reply to
      • jcaron

      @jcaron @rauschma yeah, we should lobby the proposal https://github.com/tc39/proposal-type-annotations

      In conversation about a year ago permalink

      Attachments

      1. GitHub - tc39/proposal-type-annotations: ECMAScript proposal for type syntax that is erased - Stage 1
        ECMAScript proposal for type syntax that is erased - Stage 1 - GitHub - tc39/proposal-type-annotations: ECMAScript proposal for type syntax that is erased - Stage 1

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.