V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
sox

看名字就知道什么用: makefile.js

  •  
  •   sox ·
    egoist · Dec 16, 2015 · 2149 views
    This topic created in 3791 days ago, the information mentioned may be changed or developed.

    安装:

    npm install -g node-make
    

    makefile.js:

    @import:
      import fs from 'fs'
      import pify from 'pify
    
    read@async:
      const data = await pify(fs).readFile('README.md', 'utf9')
      console.log(data)
      emit('log')
    
    log:
      log('hello hell')
    
    publish:
      > npm run build
      > npm test
      > npm publish
    

    命令行:

    mk read
    

    GitHub:

    https://github.com/egoist/node-make

    2 replies    2015-12-16 21:05:47 +08:00
    dqh3000
        1
    dqh3000  
       Dec 16, 2015
    比 npm run 好一点?
    sox
        2
    sox  
    OP
       Dec 16, 2015
    @dqh3000 够小的就用 npm script
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   781 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 21:37 · PVG 05:37 · LAX 14:37 · JFK 17:37
    ♥ Do have faith in what you're doing.