-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactored the project to run the front end code as a separate npm package * Added Slickgrid as UI component rather than Backgrid * Added Gulp scripts for building
- Loading branch information
Anthony Dresser
authored
Aug 2, 2016
1 parent
e316a6d
commit e0ef372
Showing
214 changed files
with
22,557 additions
and
12,690 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
out | ||
node_modules | ||
node_modules | ||
.DS_Store | ||
*.log | ||
tools | ||
examples |
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 |
---|---|---|
@@ -1,12 +1,16 @@ | ||
// Place your settings in this file to overwrite default and user settings. | ||
{ | ||
"files.trimTrailingWhitespace": true, | ||
|
||
"files.exclude": { | ||
"out": false // set this to true to hide the "out" folder with the compiled JS files | ||
}, | ||
"search.exclude": { | ||
"out": true // set this to false to include "out" folder in search results | ||
}, | ||
"typescript.tsdk": "./node_modules/typescript/lib" // we want to use the TS server from our node_modules folder to control its version | ||
"typescript.tsdk": "./node_modules/typescript/lib", // we want to use the TS server from our node_modules folder to control its version | ||
"files.watcherExclude": { | ||
"**/.git/objects/**": true, | ||
"**/out/*" : 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,23 @@ | ||
// Available variables which can be used inside of strings. | ||
// ${workspaceRoot}: the root folder of the team | ||
// ${file}: the current opened file | ||
// ${fileBasename}: the current opened file's basename | ||
// ${fileDirname}: the current opened file's dirname | ||
// ${fileExtname}: the current opened file's extension | ||
// ${cwd}: the current working directory of the spawned process | ||
|
||
// A task runner that calls a custom npm script that compiles the extension. | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "0.1.0", | ||
|
||
// we want to run npm | ||
"command": "npm", | ||
|
||
// the command is a shell script | ||
"command": "gulp", | ||
"isShellCommand": true, | ||
|
||
// show the output window only if unrecognized errors occur. | ||
"showOutput": "silent", | ||
|
||
// we run the custom script "compile" as defined in package.json | ||
"args": ["run", "compile", "--loglevel", "silent"], | ||
|
||
// The tsc compiler is started in watching mode | ||
"isWatching": true, | ||
|
||
// use the standard tsc in watch mode problem matcher to find compile problems in the output. | ||
"problemMatcher": "$tsc-watch" | ||
"args": [ | ||
"--no-color" | ||
], | ||
"tasks": [ | ||
{ | ||
"taskName": "build-all", | ||
"args": [], | ||
"isBuildCommand": true, | ||
"isWatching": false, | ||
"problemMatcher": [ | ||
"$lessCompile", | ||
"$tsc", | ||
"$jshint" | ||
] | ||
} | ||
] | ||
} |
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,76 @@ | ||
var gulp = require('gulp'); | ||
var install = require('gulp-install'); | ||
var tslint = require('gulp-tslint'); | ||
var ts = require('gulp-typescript'); | ||
var tsProject = ts.createProject('tsconfig.json'); | ||
var del = require('del'); | ||
var srcmap = require('gulp-sourcemaps'); | ||
var config = require('./tasks/config'); | ||
|
||
require('./tasks/htmltasks') | ||
|
||
gulp.task('ext:tslint', () => { | ||
return gulp.src([ | ||
config.paths.project.root + '/src/**/*.ts', | ||
'!' + config.paths.project.root + '/src/views/htmlcontent/**/*' | ||
]) | ||
.pipe((tslint({ | ||
formatter: "verbose" | ||
}))) | ||
.pipe(tslint.report()); | ||
}); | ||
|
||
gulp.task('ext:compile-src', () => { | ||
return gulp.src([ | ||
config.paths.project.root + '/src/**/*.ts', | ||
config.paths.project.root + '/typings/**/*.ts', | ||
'!' + config.paths.project.root + '/src/views/htmlcontent/**/*']) | ||
.pipe(srcmap.init()) | ||
.pipe(ts(tsProject)) | ||
.pipe(srcmap.write('.')) | ||
.pipe(gulp.dest('out/src/')); | ||
}); | ||
|
||
gulp.task('ext:compile-tests', () => { | ||
return gulp.src([ | ||
config.paths.project.root + '/test/**/*.ts', | ||
config.paths.project.root + '/typings/**/*.ts']) | ||
.pipe(srcmap.init()) | ||
.pipe(ts(tsProject)) | ||
.pipe(srcmap.write('.')) | ||
.pipe(gulp.dest('out/test/')); | ||
|
||
}) | ||
|
||
gulp.task('ext:compile', gulp.series('ext:compile-src', 'ext:compile-tests')); | ||
|
||
gulp.task('ext:copy-tests', () => { | ||
return gulp.src(config.paths.project.root + '/test/resources/**/*') | ||
.pipe(gulp.dest(config.paths.project.root + '/out/test/resources/')) | ||
}) | ||
|
||
gulp.task('ext:copy-html', () => { | ||
return gulp.src(config.paths.project.root + '/src/views/htmlcontent/src/**/*') | ||
.pipe(gulp.dest(config.paths.project.root + '/out/src/views/htmlcontent/')) | ||
}) | ||
|
||
gulp.task('ext:copy', gulp.series('ext:copy-tests', 'ext:copy-html')) | ||
|
||
gulp.task('ext:build', gulp.series('ext:compile', 'ext:copy')); | ||
|
||
gulp.task('ext:clean', () => { | ||
return del('out') | ||
}); | ||
|
||
gulp.task('build-extension', gulp.series('ext:tslint', 'ext:clean', 'ext:build')); | ||
|
||
gulp.task('build-all', gulp.series('build-html', 'build-extension')); | ||
|
||
gulp.task('install', function(){ | ||
return gulp.src(['./package.json', './src/views/htmlcontent/package.json']) | ||
.pipe(install()); | ||
}) | ||
|
||
gulp.task('watch', function(){ | ||
return gulp.watch(config.paths.project.root + '/src/**/*', gulp.series('build-all')) | ||
}) |
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,7 @@ | ||
var gulp = require('gulp'); | ||
var install = require('gulp-install'); | ||
|
||
gulp.task('install', function(){ | ||
return gulp.src(['./package.json', './src/views/htmlcontent/package.json']) | ||
.pipe(install()); | ||
}); |
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
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
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
Oops, something went wrong.