-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(Build): Rewriten all the way the library is built.
Added semantic-release, travis-ci, webpack to build the bundle, removed some dependency. Closes #58
- Loading branch information
Showing
19 changed files
with
3,557 additions
and
104 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,27 +1,45 @@ | ||
# Node | ||
################# | ||
## Misc | ||
################# | ||
**/.DS_Store | ||
nbproject | ||
manifest.mf | ||
build.xml | ||
node_modules/* | ||
npm-debug.log | ||
|
||
# TypeScript | ||
*.js | ||
!config/* | ||
!karma.conf.js | ||
!webpack.config.js | ||
*.map | ||
*.d.ts | ||
!make.js | ||
!examples/**/*.js | ||
coverage | ||
*.metadata.json | ||
bundles | ||
|
||
# JetBrains | ||
################# | ||
## JetBrains | ||
################# | ||
.idea | ||
.project | ||
.settings | ||
.idea/* | ||
*.iml | ||
|
||
# Windows | ||
############ | ||
## Windows | ||
############ | ||
|
||
# Windows image file caches | ||
Thumbs.db | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
# Mac | ||
############ | ||
## Mac | ||
############ | ||
|
||
# Mac crap | ||
.DS_Store | ||
**/.DS_Store | ||
|
||
# AoT | ||
aot | ||
*.metadata.json |
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,35 +1,47 @@ | ||
# Node | ||
################# | ||
## Misc | ||
################# | ||
nbproject | ||
manifest.mf | ||
build.xml | ||
node_modules/* | ||
npm-debug.log | ||
tsconfig.json | ||
|
||
# DO NOT IGNORE TYPESCRIPT FILES FOR NPM | ||
# TypeScript | ||
# *.js | ||
# *.map | ||
# *.ts | ||
*.ts | ||
!*.d.ts | ||
tests | ||
examples | ||
.github | ||
coverage | ||
!*.metadata.json | ||
!bundles/*.js | ||
|
||
# Typings | ||
typings/* | ||
|
||
# JetBrains | ||
################# | ||
## JetBrains | ||
################# | ||
.idea | ||
.project | ||
.settings | ||
.idea/* | ||
*.iml | ||
|
||
# Windows | ||
############ | ||
## Windows | ||
############ | ||
|
||
# Windows image file caches | ||
Thumbs.db | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
# Mac | ||
############ | ||
## Mac | ||
############ | ||
|
||
# Mac crap | ||
.DS_Store | ||
**/.DS_Store | ||
|
||
# VSCode | ||
.vscode | ||
|
||
# Tools | ||
tools | ||
# Config | ||
config |
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,4 +1,36 @@ | ||
language: node_js | ||
|
||
cache: | ||
directories: | ||
- $HOME/.npm | ||
- $HOME/.yarn-cache | ||
- node_modules | ||
|
||
sudo: false | ||
|
||
notifications: | ||
email: false | ||
|
||
node_js: | ||
- '4.2.1' | ||
- '6' | ||
|
||
branches: | ||
except: | ||
- "/^v\\d+\\.\\d+\\.\\d+$/" | ||
|
||
before_install: | ||
- export CHROME_BIN=chromium-browser | ||
- npm i -g yarn | ||
|
||
before_script: | ||
- npm prune | ||
|
||
install: | ||
- yarn | ||
|
||
after_success: | ||
- npm run semantic-release | ||
|
||
before_script: | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start |
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,32 @@ | ||
/** | ||
* taken from angular2-webpack-starter | ||
*/ | ||
var path = require('path'); | ||
|
||
// Helper functions | ||
var ROOT = path.resolve(__dirname, '..'); | ||
|
||
function hasProcessFlag(flag) { | ||
return process.argv.join('').indexOf(flag) > -1; | ||
} | ||
|
||
function isWebpackDevServer() { | ||
return process.argv[1] && !! (/webpack-dev-server$/.exec(process.argv[1])); | ||
} | ||
|
||
function root(args) { | ||
args = Array.prototype.slice.call(arguments, 0); | ||
return path.join.apply(path, [ROOT].concat(args)); | ||
} | ||
|
||
function checkNodeImport(context, request, cb) { | ||
if (!path.isAbsolute(request) && request.charAt(0) !== '.') { | ||
cb(null, 'commonjs ' + request); return; | ||
} | ||
cb(); | ||
} | ||
|
||
exports.hasProcessFlag = hasProcessFlag; | ||
exports.isWebpackDevServer = isWebpackDevServer; | ||
exports.root = root; | ||
exports.checkNodeImport = checkNodeImport; |
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,14 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { Ng2Highcharts } from './src/ng2-highcharts'; | ||
import { Ng2Highmaps } from './src/ng2-highmaps'; | ||
import { Ng2Highstocks } from './src/ng2-highstocks'; | ||
|
||
export * from './src/ng2-highcharts'; | ||
export * from './src/ng2-highstocks'; | ||
export * from './src/ng2-highmaps'; | ||
|
||
@NgModule({ | ||
declarations: [Ng2Highcharts, Ng2Highmaps, Ng2Highstocks], | ||
exports: [Ng2Highcharts, Ng2Highmaps, Ng2Highstocks] | ||
}) | ||
export class Ng2HighchartsModule { } |
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 @@ | ||
export * from './index'; |
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 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
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.
Oops, something went wrong.