GitXplorerGitXplorer
n

do-nothing-script

public
0 stars
0 forks
16 issues

Commits

List of commits on branch master.
Unverified
84b28c36ce92a0874a1e4a7ac021c60b7c7a1236

chore(release): 2.0.0

nnewyork-anthonyng committed 5 years ago
Verified
a01e434160db5e284f973bee4db2e10971ac3fc8

Merge pull request #3 from newyork-anthonyng/feature/an/javascript

nnewyork-anthonyng committed 5 years ago
Unverified
120b1968210efcd4963d250994bd587e983e5c54

feat: handle JavaScript files

nnewyork-anthonyng committed 5 years ago
Unverified
c2fec3db72451aa5e71eda811e4c1e8f062a6064

chore: add semantic release

nnewyork-anthonyng committed 5 years ago
Unverified
107a72966083d10b7181ad74d51c6bb1a569c3d5

bug: remove blank text

nnewyork-anthonyng committed 5 years ago
Unverified
8043f3c858ed3f773070ee005573aadb25bae2f5

docs: update README.md

nnewyork-anthonyng committed 5 years ago

README

The README file for this repository.

do-nothing-script

Automate everything...or just use a checklist.

This script does nothing; it's an automated checklist.

Getting started

npm install --save-dev do-nothing-script

npx do-nothing --file prompts.js

Strings

Return an array of strings that are used in the checklist.

// prompts.js
module.exports = [
    `1. Remember to add code (git add)`,
    `2. Remember to commit code (git commit)`,
    `3. Remember to push code (git push)`,
    `4. git paid`
];

Expressions

You can use JavaScript expressions.

// prompts.js
module.exports = [
    `1. Remember to add code (git add)`,
    `${1 + 1}. Remember to commit code (git commit)`,
    `3. Remember to push code (git push)`,
    `4. git paid ${Math.random()}`
];

Functions

You can use functions that return a Promise.

// prompts.js

const makeApiCall = function() {
    return fetch('https://SOME_AWESOME_API.com/json')
        .then(response => response.json())
        .then(data => {
            return `2: ${data}`;
        });
}

module.exports = [
    `1. Remember to add code (git add)`,
    makeApiCall
];

Inspired by this HackerNews post