-
Notifications
You must be signed in to change notification settings - Fork 25
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
Showing
93 changed files
with
4,360 additions
and
10,895 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 |
---|---|---|
|
@@ -7,6 +7,9 @@ node_modules/ | |
# Tests | ||
coverage/ | ||
|
||
# Typescript | ||
.ts/ | ||
|
||
# Publish | ||
dist/packages-dist/ | ||
site/ |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"compileOnSave": false, | ||
"compilerOptions": { | ||
"outDir": "../types/", | ||
"sourceMap": true, | ||
"declaration": true, | ||
"moduleResolution": "node", | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"noImplicitAny": true, | ||
"suppressImplicitAnyIndexErrors": true, | ||
"target": "es6", | ||
"lib": [ | ||
"es2017", | ||
"dom" | ||
] | ||
}, | ||
"include": [ | ||
"../packages/*/src/**/*.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,31 @@ | ||
{ | ||
"rulesDirectory": [ | ||
"../node_modules/vrsource-tslint-rules/rules", | ||
"../node_modules/tslint-eslint-rules/dist/rules" | ||
], | ||
"extends": [ | ||
"tslint-eslint-rules" | ||
], | ||
"rules": { | ||
"no-console": [true, "log"], | ||
"no-duplicate-imports": true, | ||
"no-duplicate-variable": true, | ||
"no-jasmine-focus": true, | ||
"no-var-keyword": true, | ||
"semicolon": [true], | ||
"variable-name": [true, "ban-keywords"], | ||
"no-inner-declarations": [true, "function"], | ||
"quotemark": [true, "double"] | ||
}, | ||
"jsRules": { | ||
"no-console": [true, "log"], | ||
"no-duplicate-imports": true, | ||
"no-duplicate-variable": true, | ||
"no-jasmine-focus": true, | ||
"require-internal-with-underscore": true, | ||
"semicolon": [true], | ||
"variable-name": [true, "ban-keywords"], | ||
"no-inner-declarations": [true, "function"], | ||
"quotemark": [true, "double"] | ||
} | ||
} |
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,50 @@ | ||
/* global __dirname, module, require */ | ||
const path = require("path"); | ||
|
||
module.exports = (options) => { | ||
if (options.entry === undefined) { | ||
throw Error("options.entry must be specified.") | ||
} | ||
if (options.filename === undefined) { | ||
throw Error("options.Filename must be specified.") | ||
} | ||
if (options.library === undefined) { | ||
throw Error("options.library must be specified.") | ||
} | ||
|
||
return { | ||
entry: options.entry, | ||
output: { | ||
filename: options.filename, | ||
library: options.library, | ||
libraryTarget: "umd2", | ||
umdNamedDefine: false | ||
}, | ||
externals: options.externals, | ||
resolve: { | ||
extensions: [".ts", ".js"] | ||
}, | ||
devtool: "source-map", | ||
module: { | ||
loaders: [ | ||
{ | ||
enforce: 'pre', | ||
test: /\.ts$/, | ||
loader: 'tslint-loader', | ||
exclude: /node_modules/, | ||
options: { | ||
failOnHint: true, | ||
configFile: path.join("config", "tslint.json"), | ||
} | ||
}, | ||
{ | ||
test: /\.ts$/, | ||
loader: "ts-loader", | ||
options: { | ||
configFile: path.join("config", "tsconfig.webpack.json") | ||
} | ||
} | ||
] | ||
}, | ||
}; | ||
}; |
Oops, something went wrong.