Browse Source

Add CircleCI

pull/142/head
Josh Dick 6 years ago
parent
commit
dc8431c1a3
No known key found for this signature in database GPG Key ID: 504C35EB636445DC
  1. 37
      .circleci/config.yml
  2. 6
      build/build.js
  3. 636
      build/package-lock.json

37
.circleci/config.yml

@ -0,0 +1,37 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:latest
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4
working_directory: ~/repo/build
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
# run tests!
- run: npm test

6
build/build.js

@ -137,8 +137,8 @@ try {
// From termcolors/lib/formats/terminal-app.js // From termcolors/lib/formats/terminal-app.js
const code = [ const code = [
new Buffer('62706c6973743030d40102030405061516582476657273696f6e58246f626a65637473592461726368697665725424746f7012000186a0a307080f55246e756c6cd3090a0b0c0d0e554e535247425c4e53436f6c6f7253706163655624636c6173734f1027', 'hex'), Buffer.from('62706c6973743030d40102030405061516582476657273696f6e58246f626a65637473592461726368697665725424746f7012000186a0a307080f55246e756c6cd3090a0b0c0d0e554e535247425c4e53436f6c6f7253706163655624636c6173734f1027', 'hex'),
new Buffer('0010018002d2101112135a24636c6173736e616d655824636c6173736573574e53436f6c6f72a21214584e534f626a6563745f100f4e534b657965644172636869766572d1171854726f6f74800108111a232d32373b41484e5b628c8e9095a0a9b1b4bdcfd2d700000000000001010000000000000019000000000000000000000000000000d9', 'hex') Buffer.from('0010018002d2101112135a24636c6173736e616d655824636c6173736573574e53436f6c6f72a21214584e534f626a6563745f100f4e534b657965644172636869766572d1171854726f6f74800108111a232d32373b41484e5b628c8e9095a0a9b1b4bdcfd2d700000000000001010000000000000019000000000000000000000000000000d9', 'hex')
] ]
terminalAppTemplate = termcolors.export( terminalAppTemplate = termcolors.export(
@ -150,7 +150,7 @@ try {
return n.toFixed(10).toString() return n.toFixed(10).toString()
}).join(' ') }).join(' ')
var output = code[0].toString('binary') + srgb + code[1].toString('binary') var output = code[0].toString('binary') + srgb + code[1].toString('binary')
output = (new Buffer(output, 'binary')).toString('base64') output = (Buffer.from(output, 'binary')).toString('base64')
return output.match(/.{1,68}/g).join('\n\t') return output.match(/.{1,68}/g).join('\n\t')
}) })
) )

636
build/package-lock.json

File diff suppressed because it is too large
Loading…
Cancel
Save