If your patch changes the API or fixes a bug please use one of the following prefixes in your commit subject:
[fixed] ...[changed] ...[added] ...[removed] ...
| #!/usr/bin/env node | |
| const fs = require('fs'); | |
| const messenger = require('@codedungeon/messenger'); | |
| try { | |
| // read package.json as object | |
| const pkgJsonData = JSON.parse(fs.readFileSync('./package.json', 'utf-8')); | |
| // add lint script |
| module.exports = { | |
| extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'], | |
| parser: '@typescript-eslint/parser', | |
| parserOptions: { | |
| ecmaVersion: 2020, | |
| }, | |
| plugins: ['@typescript-eslint'], | |
| root: true, | |
| rules: { | |
| 'no-unused-vars': 'off', |
| #!/usr/bin/env node | |
| const execa = require('execa'); | |
| const msg = require('@codedungeon/messenger'); | |
| const findMatches = (str = '', findStr = '') => { | |
| const re = new RegExp(findStr, 'g'); | |
| return str.match(re); | |
| }; |
| <% const today = date.now('YYYY-MM-DD') %> | |
| <%- date.dayNumber(`${today}`) %> |
| //test |
| module.exports = { | |
| accepted: "必須接受 :attribute。", | |
| after: ":attribute 必須在 :after 之後。", | |
| after_or_equal: ":attribute 必須跟 :after_or_equal 同一天或是在 :after_or_equal 之後。", | |
| alpha: ":attribute 只能包含字母。", | |
| alpha_dash: ":attribute 只能包含字母,連結號(-)和底線(_)。", | |
| alpha_num: ":attribute 只能包含字母和數字。", | |
| alpha_numeric: ":attribute 只能包含字母和數字。", | |
| array: "The :attribute must be an array", | |
| before: ":attribute 必須在 :before 之前。", |
| #!/bin/bash | |
| ESC_SEQ="\x1b[" | |
| COL_RESET=${ESC_SEQ}"39;49;00m" | |
| COL_BLUE=${ESC_SEQ}"34;01m" | |
| COL_GREEN=${ESC_SEQ}"32;01m" | |
| COL_CYAN=${ESC_SEQ}"36;01m" | |
| ITERATIONS=${1:-5} |
| /*eslint no-console: "off"*/ | |
| const { spawnSync } = require("child_process"); | |
| const colors = require("chalk"); | |
| let iterations = process.argv.slice(2)[0] || 5; | |
| console.log(""); | |
| console.time(colors.red("Execution Time")); | |
| for (let idx = 1; idx <= iterations; idx++) { |