Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
KSXGitHub committed Jan 15, 2018
1 parent 07a48e0 commit a691e60
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 74 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ temp.*
*.temp
*.tern-project
*.tern-project.json
/bin/*.js

# Logs
logs
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ jest.config*
/sh
/coverage
docs
bin/*.ls
7 changes: 0 additions & 7 deletions check/javascript.standard.check.js

This file was deleted.

42 changes: 0 additions & 42 deletions check/lib/test-spawn.js

This file was deleted.

2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import * as QR from 'qr-image'
export = QR
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('qr-image')
8 changes: 0 additions & 8 deletions jest.config.js

This file was deleted.

3 changes: 0 additions & 3 deletions jest/jest.config.yaml

This file was deleted.

11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
"description": "Command-line for qr-image",
"main": "index.js",
"author": "Hoàng Văn Khải <hvksmr1996@gmail.com>",
"bin": {
"qr-image": "bin/qr-image-bin.js",
"create-qr-image": "bin/qr-image-bin.js",
"qr-image-bin": "bin/qr-image-bin.js"
},
"devDependencies": {
"jest": "^22.1.0",
"js-yaml": "^3.10.0",
"livescript": "^1.5.0",
"standard": "^10.0.3"
},
Expand All @@ -23,7 +26,9 @@
"remake-package-json": "node sh/remake-package-json",
"clean": "bash 'sh/clean.sh'",
"fix": "bash 'sh/fix.sh'",
"test": "bash 'sh/test.sh'"
"build": "bash 'sh/build.sh'",
"test": "bash 'sh/test.sh'",
"bin": "lsc bin/qr-image-bin.ls"
},
"directories": {
"test": "test"
Expand Down
3 changes: 3 additions & 0 deletions sh/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /usr/bin/env bash
lsc -o bin/ -m linked bin/qr-image-bin.ls || exit $?
chmod +x bin/*.js || exit $?
1 change: 1 addition & 0 deletions sh/clean.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env bash

CLEANLIST="$(pwd)/sh/lib/clean-list.sh"

Expand Down
1 change: 1 addition & 0 deletions sh/fix.sh
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#! /usr/bin/env bash
standard --fix
13 changes: 2 additions & 11 deletions sh/test.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,2 @@
(
printf "Checking Code Style... "
standard > stdout.tmp 2> stderr.tmp && (
echo "passed"
) || (
echo "failed" >&2
cat stderr.tmp >&2
cat stdout.tmp
exit 2
)
)
#! /usr/bin/env bash
standard && bash ./sh/build.sh

0 comments on commit a691e60

Please sign in to comment.