This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const rules = [ | |
{ type: 'space', regex: /^\s/ }, | |
{ type: 'lParen', regex: /^\(/ }, | |
{ type: 'rParen', regex: /^\)/ }, | |
{ type: 'number', regex: /^[0-9\.]+/ }, | |
{ type: 'string', regex: /^".*?"/ }, | |
{ type: 'variable', regex: /^[^\s\(\)]+/ } // take from the beginning 1+ characters until you hit a ' ', '(', or ')' // TODO - support escaped double quote | |
]; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const Discord = require('discord.io'); | |
const teamcity = require('teamcity'); | |
const auth = require('../auth.json'); | |
// Create Discord Bot | |
const bot = new Discord.Client({ | |
token: auth.token, | |
autorun: true | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const rollup = require('rollup'); | |
const esm = require('esm'); | |
const { config } = esm(module)('../rollup.config'); | |
function generateOptions(filePath, name) { | |
return { | |
input: { input: filePath, plugins: config.plugins }, | |
output: { | |
file: `./dist/test/${name}.js`, |
OlderNewer