Skip to content

Commit

Permalink
close #258
Browse files Browse the repository at this point in the history
  • Loading branch information
larshp committed Oct 8, 2018
1 parent a240f85 commit 6ebde23
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
1 change: 1 addition & 0 deletions .npmignore
Expand Up @@ -2,6 +2,7 @@ typings/
npm-debug.log
*.js.map
coverage/
docs/*
web/*
build/test/*
test/*
11 changes: 5 additions & 6 deletions package.json
Expand Up @@ -14,17 +14,16 @@
"browserify": "browserify build/src/runner.js -o build/bundle.js -s abaplint",
"uglify": "uglifyjs build/bundle.js --compress warnings=false --mangle --keep-fnames -o build/bundle.js",
"tslint": "tslint -c tslint.json 'src/**/*.ts' 'test/**/*.ts'",
"precompile": "npm run clean && tsc --pretty",
"compile": "sh version.sh && npm run browserify",
"postcompile": "npm run uglify",
"precompile": "rm -rf build",
"compile": "tsc --pretty",
"postcompile": "sh version.sh",
"pretest": "npm run compile",
"test": "mocha --recursive --reporter progress build/test",
"posttest": "npm run tslint && npm run web",
"clean": "rm -rf build",
"precoverage": "istanbul cover ./node_modules/mocha/bin/_mocha build/test --report lcovonly -- -R spec --recursive",
"precoverage": "tsc --sourceMap && istanbul cover ./node_modules/mocha/bin/_mocha build/test --report lcovonly -- -R spec --recursive",
"coverage": "remap-istanbul -i coverage/coverage.json -o coverage/coverage-remap.json",
"postcoverage": "codecov -f coverage/coverage-remap.json",
"preweb": "cp build/bundle.js web/script/bundle.js",
"preweb": "npm run browserify && npm run uglify && cp build/bundle.js web/script/bundle.js",
"web": "cp node_modules/codemirror/lib/codemirror.js web/script/ && cp node_modules/codemirror/addon/selection/mark-selection.js web/script/ && cp node_modules/codemirror/lib/codemirror.css web/style/",
"postweb": "cp node_modules/codemirror/theme/mbo.css web/style/ && cp node_modules/codemirror-abap/build/abap.js web/script/",
"viz": "mkdir -p web/viz && rm -f web/viz/*.txt && rm -f web/viz/*.svg && node build/src/abap/graphs.js && node web/script/generate.js && rm -f web/viz/*.txt"
Expand Down
9 changes: 9 additions & 0 deletions test/statements/select.ts
Expand Up @@ -130,6 +130,15 @@ let tests = [
" WHERE status = ' '\n" +
" ORDER BY change ASCENDING.",

// todo
/*
"SELECT SINGLE field1, field2\n" +
" INTO (@<ls_data>-field1, @<ls_data>-field2)\n" +
" FROM ztable\n" +
" WHERE matnr = @<ls_data>-matnr\n" +
" AND werks = @<ls_data>-werks.",
*/

"SELECT field FROM table INTO TABLE @DATA(lt_result) WHERE moo IN ( @gc_foo , @gc_bar ).",
];

Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Expand Up @@ -9,14 +9,16 @@
"noImplicitAny": true,
"declaration": true,
"lib": ["es2017"],
"sourceMap": true
"sourceMap": false
},
"filesGlob": [
"./**/*.ts"
],
"exclude": [
"node_modules",
"typings",
"web",
"docs",
"build"
]
}

0 comments on commit 6ebde23

Please sign in to comment.