forked from kazuhikoarase/qrcode-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff9c249
commit 120c0b5
Showing
12 changed files
with
114 additions
and
4 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path=""/> | ||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="output" path=""/> | ||
</classpath> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,21 @@ | ||
build.path.exportedFolder= | ||
build.path.sourceFolder=ts/src/ts | ||
compiler.outputDirOption=ts/build/ts | ||
compiler.outputFileOption=QRCode.js | ||
build.path.sourceFolder= | ||
compiler.codeGenTarget=ECMASCRIPT5 | ||
compiler.compileOnSave=false | ||
compiler.generateDeclarationFiles=false | ||
compiler.inlineSourceMap=false | ||
compiler.inlineSources=false | ||
compiler.jsx=NONE | ||
compiler.mapSourceFiles=false | ||
compiler.moduleGenTarget=NONE | ||
compiler.moduleResolution=CLASSIC | ||
compiler.noFallthroughCasesInSwitch=false | ||
compiler.noImplicitAny=false | ||
compiler.noImplicitReturns=false | ||
compiler.noLib=false | ||
compiler.outputDirOption= | ||
compiler.outputFileOption= | ||
compiler.removeComments=false | ||
compiler.suppressExcessPropertyErrors=false | ||
compiler.suppressImplicitAnyIndexErrors=false | ||
eclipse.preferences.version=1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
eclipse.preferences.version=1 | ||
encoding//php/sample_custom.php=MS932 | ||
encoding//php/sample_html.php=MS932 | ||
encoding//php/sample_image.php=MS932 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.eclipse.wst.jsdt.launching.JRE_CONTAINER |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Global |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ts-test |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,7 @@ interface QRCode { | |
} | ||
|
||
declare var qrcode : QRCodeFactory; | ||
|
||
declare module 'qrcode-generator' { | ||
export = qrcode; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
module.exports = function(grunt) { | ||
|
||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
src: 'src', | ||
build: 'build', | ||
dist: 'dist', | ||
ts: { | ||
main: { | ||
options : { sourceMap: false }, | ||
src: ['<%= src %>/**/*.ts'], | ||
outDir: '<%= build %>' | ||
} | ||
}, | ||
nodeunit: { | ||
all: [ '<%= build %>/*_test.js' ], | ||
options: { | ||
reporter: 'default', | ||
reporterOptions: { | ||
output: 'dist' | ||
} | ||
} | ||
}, | ||
clean: { | ||
build : { src: ['<%= build %>', '.tscache'] }, | ||
dist : { src: ['<%= dist %>'] } | ||
} | ||
}); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-clean'); | ||
grunt.loadNpmTasks('grunt-contrib-nodeunit'); | ||
grunt.loadNpmTasks("grunt-ts"); | ||
|
||
grunt.registerTask('default', ['ts']); | ||
|
||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "ts-test", | ||
"version": "0.1.0", | ||
"devDependencies": { | ||
"grunt": "^1.0.0", | ||
"grunt-contrib-clean": "^1.0.0", | ||
"grunt-contrib-nodeunit": "^1.0.0", | ||
"grunt-ts": "^6.0.0-beta.3", | ||
"typescript": "^2.0.0", | ||
"uglify": "^0.1.5", | ||
"qrcode-generator": "file:../" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
declare var require: any; | ||
declare var exports : any; | ||
|
||
import * as imported from "qrcode-generator"; | ||
|
||
exports.reqImp = function(test : any) { | ||
|
||
var testQR = function(qrcode : any) { | ||
test.equal(typeof qrcode, 'function'); | ||
test.equal(typeof qrcode.stringToBytes, 'function'); | ||
}; | ||
|
||
var required = require('qrcode-generator'); | ||
testQR(required); | ||
testQR(imported); | ||
test.done(); | ||
}; |