forked from swimlane/ngx-charts
-
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
Showing
363 changed files
with
39,477 additions
and
6,353 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,20 +1,12 @@ | ||
sudo: false | ||
language: node_js | ||
|
||
node_js: | ||
- "6" | ||
cache: | ||
directories: | ||
- node_modules | ||
branches: | ||
only: | ||
- master | ||
- 'node' | ||
|
||
before_install: | ||
- export CHROME_BIN=chromium-browser | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
- sleep 3 | ||
|
||
install: | ||
- npm install | ||
- npm i loader-utils | ||
addons: | ||
code_climate: | ||
repo_token: 354a61ebebb73e09b1dbabff55de0a1350575913e0b3b20dfbb3426647addc96 |
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,3 @@ | ||
{ | ||
"typescript.check.workspaceVersion": false | ||
} |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
const webpack = require('webpack'); | ||
const webpackMerge = require('webpack-merge'); | ||
const WebpackNotifierPlugin = require('webpack-notifier'); | ||
const ProgressBarPlugin = require('progress-bar-webpack-plugin'); | ||
const chalk = require('chalk'); | ||
const HtmlWebpackPlugin = require('html-webpack-plugin'); | ||
const ForkCheckerPlugin = require('awesome-typescript-loader').ForkCheckerPlugin; | ||
|
||
const commonConfig = require('./webpack.common'); | ||
const { ENV, dir } = require('./helpers'); | ||
|
||
module.exports = function(options) { | ||
return webpackMerge(commonConfig({ env: ENV }), { | ||
devtool: 'cheap-module-source-map', | ||
devServer: { | ||
port: 9999, | ||
hot: options.HMR, | ||
stats: { | ||
modules: false, | ||
cached: false, | ||
chunk: false | ||
} | ||
}, | ||
entry: { | ||
'app': './demo/bootstrap.ts', | ||
'libs': './demo/libs.ts' | ||
}, | ||
module: { | ||
exprContextCritical: false, | ||
rules: [ | ||
{ | ||
enforce: 'pre', | ||
test: /\.js$/, | ||
loader: 'source-map-loader', | ||
exclude: /(node_modules)/ | ||
}, | ||
{ | ||
enforce: 'pre', | ||
test: /\.ts$/, | ||
loader: 'tslint-loader', | ||
exclude: /(node_modules|release|dist)/ | ||
}, | ||
{ | ||
test: /\.ts$/, | ||
loaders: [ | ||
'awesome-typescript-loader' | ||
], | ||
exclude: [/\.(spec|e2e|d)\.ts$/] | ||
}, | ||
{ | ||
test: /\.scss$/, | ||
loaders: [ | ||
'style-loader', | ||
'css-loader?sourceMap', | ||
'postcss-loader?sourceMap', | ||
'sass-loader?sourceMap' | ||
] | ||
} | ||
] | ||
}, | ||
plugins: [ | ||
// new ForkCheckerPlugin(), | ||
// new webpack.HotModuleReplacementPlugin() | ||
new webpack.optimize.CommonsChunkPlugin({ | ||
name: ['libs'], | ||
minChunks: Infinity | ||
}), | ||
new HtmlWebpackPlugin({ | ||
template: 'demo/index.html', | ||
chunksSortMode: 'dependency', | ||
title: 'ng2d3' | ||
}), | ||
new WebpackNotifierPlugin({ | ||
excludeWarnings: true | ||
}), | ||
new ProgressBarPlugin({ | ||
format: chalk.yellow.bold('Webpack Building...') + | ||
' [:bar] ' + chalk.green.bold(':percent') + ' (:elapsed seconds)' | ||
}) | ||
] | ||
}); | ||
|
||
}; |
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,99 @@ | ||
const webpack = require('webpack'); | ||
const webpackMerge = require('webpack-merge'); | ||
const CleanWebpackPlugin = require('clean-webpack-plugin'); | ||
const HtmlWebpackPlugin = require('html-webpack-plugin'); | ||
const commonConfig = require('./webpack.common'); | ||
const { ENV, dir, APP_VERSION } = require('./helpers'); | ||
// const ngtools = require('@ngtools/webpack'); | ||
|
||
const banner = | ||
`/** | ||
* ng2d3 v${APP_VERSION} (https://github.com/swimlane/ng2d3) | ||
* Copyright 2016 | ||
* Licensed under MIT | ||
*/`; | ||
|
||
module.exports = function(env) { | ||
return webpackMerge(commonConfig({ env: ENV }), { | ||
devtool: 'source-map', | ||
module: { | ||
exprContextCritical: false, | ||
rules: [ | ||
{ | ||
test: /\.ts$/, | ||
loaders: [ | ||
'awesome-typescript-loader' | ||
], | ||
exclude: [/\.(spec|e2e|d)\.ts$/] | ||
}, | ||
{ | ||
test: /\.scss$/, | ||
loaders: [ | ||
'style-loader', | ||
'css-loader?sourceMap', | ||
'postcss-loader?sourceMap', | ||
'sass-loader?sourceMap' | ||
] | ||
} | ||
] | ||
}, | ||
entry: { | ||
'index': './src/index.ts' | ||
}, | ||
output: { | ||
path: dir('release'), | ||
libraryTarget: 'umd', | ||
library: 'ng2d3', | ||
umdNamedDefine: true | ||
}, | ||
externals: { | ||
'@angular/platform-browser-dynamic': '@angular/platform-browser-dynamic', | ||
'@angular/platform-browser': '@angular/platform-browser', | ||
'@angular/core': '@angular/core', | ||
'@angular/common': '@angular/common', | ||
'@angular/forms': '@angular/forms', | ||
'core-js': 'core-js', | ||
'core-js/es6': 'core-js/es6', | ||
'core-js/es7/reflect': 'core-js/es7/reflect', | ||
'd3-array': 'd3-array', | ||
'd3-brush': 'd3-brush', | ||
'd3-color': 'd3-color', | ||
'd3-force': 'd3-force', | ||
'd3-format': 'd3-format', | ||
'd3-interpolate': 'd3-interpolate', | ||
'd3-scale': 'd3-scale', | ||
'd3-selection': 'd3-selection', | ||
'd3-shape': 'd3-shape', | ||
'd3-hierarchy': 'd3-hierarchy', | ||
'rxjs': 'rxjs', | ||
'rxjs/Rx': 'rxjs/Rx', | ||
'rxjs/Subject': 'rxjs/Subject', | ||
'rxjs/Subscription': 'rxjs/Subscription', | ||
'rxjs/observable/PromiseObservable': 'rxjs/observable/PromiseObservable', | ||
'rxjs/operator/toPromise': 'rxjs/operator/toPromise', | ||
'rxjs/Observable': 'rxjs/Observable', | ||
'zone.js/dist/zone': 'zone.js/dist/zone', | ||
'moment': 'moment' | ||
}, | ||
plugins: [ | ||
new webpack.BannerPlugin({ | ||
banner: banner, | ||
raw: true, | ||
entryOnly: true | ||
}), | ||
/* | ||
new ngtools.AotPlugin({ | ||
tsConfigPath: 'tsconfig-aot.json', | ||
baseDir: dir() | ||
entryModule: dir('ng2d3.ts') + '#NG2D3Module' | ||
}), | ||
new CleanWebpackPlugin(['release'], { | ||
root: dir(), | ||
verbose: false, | ||
dry: false | ||
}) | ||
*/ | ||
] | ||
}); | ||
|
||
}; |
Oops, something went wrong.