Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit 62d2e60

Browse files
authored
Merge branch 'master' into master
2 parents 727fcd2 + 765e938 commit 62d2e60

File tree

433 files changed

+1588
-32868
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

433 files changed

+1588
-32868
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Before you write your question, please take some extra time to write a good titl
66
- jquery version:
77
- datatables version:
88
- angular-datatables version:
9-
- angular-MM version:
9+
- angular-cli version:
1010

1111
## What's the problem?
1212

.gitignore

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ _temp
1616
!karma*.js
1717
!protractor*.js
1818
!systemjs.config.js
19-
!typings/typings.d.ts
20-
!wallaby.js
21-
!index.js
22-
!index.d.js
23-
!dist/*.js
24-
!dist/*.js.map
2519
!demo/src/**/*.js
20+
!rollup.conf.js
21+
!rollup-uglify.conf.js
22+
23+
# angular-datatables specific
24+
*.js.map
25+
*.d.ts
26+
*.metadata.json
27+
index*.js

.npmignore

Lines changed: 60 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,67 @@
1-
examples
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Node template
3+
# Logs
4+
logs
5+
*.log
6+
npm-debug.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
13+
# Directory for instrumented libs generated by jscoverage/JSCover
14+
lib-cov
15+
16+
# Coverage directory used by tools like istanbul
17+
coverage
18+
19+
# Compiled binary addons (http://nodejs.org/api/addons.html)
20+
build/Release
21+
22+
# Dependency directory
223
node_modules
3-
src
4-
typings
5-
.editorconfig
6-
_test-output
7-
.travis.yml
24+
25+
/.codeclimate.yml
26+
/.gitignore
27+
/.gitattributes
28+
/.npmignore
29+
/.travis.yml
30+
/.eslintignore
31+
/.eslintrc
32+
33+
# Build System files
34+
/tslint.json
35+
/rollup-uglify.conf.js
36+
/rollup.conf.js
37+
/protractor.config.js
38+
/systemjs.config.js
39+
40+
# Typescript source files
41+
*.ts
42+
!*.d.ts
43+
*.js.map
44+
!/bundles/*.js.map
45+
!*.metadata.json
46+
tsconfig.json
47+
tsconfig-build.json
48+
49+
50+
# Editor specific
51+
.idea
52+
.vscode
53+
54+
# test cases
855
karma-test-shim.js
956
karma.conf.js
10-
tsconfig.json
11-
tslint.json
12-
typings.json
13-
protractor.config.js
57+
test
58+
_test-output
59+
60+
# other stuffs
1461
.github
1562
DEVELOPER.md
16-
systemjs.config.js
17-
.vscode
63+
.editorconfig
64+
65+
# angular-datatables specific
1866
demo
1967
deploy-doc.sh

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ before_script:
1515
install:
1616
- npm install
1717
script:
18-
- npm run lint
19-
- npm run test-once
18+
- npm run build

DEVELOPER.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Prerequisites
44

5-
Node.js and npm are essential to Angular 2 development.
5+
Node.js and npm are essential to Angular development.
66

77
[Get it now](https://docs.npmjs.com/getting-started/installing-node) if it's not already installed on your machine.
88

@@ -71,3 +71,15 @@ Karma is occasionally confused and it is often necessary to shut down its browse
7171
restart it. No worries; it's pretty quick.
7272

7373
The `HTML-Reporter` is also wired in. That produces a prettier output; look for it in `~_test-output/tests.html`.
74+
75+
## Deploying the documentation to Github Pages
76+
77+
Run `deploy-doc.sh` to deploy the documentation to the Github Pages
78+
79+
You may need to have the following:
80+
- git
81+
- have the basic commands in your OS
82+
83+
```
84+
./deploy-doc.sh <version>
85+
```

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Angular DataTables [![Build Status](https://travis-ci.org/l-lin/angular-datatables.png?branch=angular2)](https://travis-ci.org/l-lin/angular-datatables) [![npm version](https://badge.fury.io/js/angular-datatables.svg)](https://badge.fury.io/js/angular-datatables)
22

3-
> [Angular 2](https://angular.io/) + [DataTables](https://datatables.net/)
3+
> [Angular](https://angular.io/) + [DataTables](https://datatables.net/)
44
55
# Documentation
66

77
Please check the [online documentation](http://l-lin.github.io/angular-datatables/)
88

99
# FAQ
10-
## Why version 2.X? Where is version 1.X?
10+
## Why version 4.X? Where is version 3.X? And 1.X?
1111

12-
Since AngularJS has released a version 2 that is breaking everything, I made a version 2 for simplicity purpose, to indicate the major version of this library is using the version 2 of AngularJS.
12+
The major version of the projet (it's using a [Semantic versioning](http://semver.org/)) will be synchronized with the major version of Angular.
1313

1414
## Why is there less functionnalities?
1515

@@ -23,10 +23,6 @@ Only on bugs, and only if I have the time (which I don't really have much nowada
2323

2424
Let's not multiply the tools and do all in NPM!
2525

26-
## Where is the Angular renderer? What about the Promise renderer?
27-
28-
Not developed yet!
29-
3026
## Where are the DTOptionsBuilder, DTColumnBuilder and DTColumnDefBuilder?
3127

3228
In the first versions of angular-datatables, there were some builder to help using the directive.
Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
23
"project": {
3-
"version": "1.0.0-beta.24",
44
"name": "angular-datatables-demo"
55
},
66
"apps": [
@@ -15,55 +15,59 @@
1515
],
1616
"index": "index.html",
1717
"main": "main.ts",
18+
"polyfills": "polyfills.ts",
1819
"test": "test.ts",
19-
"tsconfig": "tsconfig.json",
20+
"tsconfig": "tsconfig.app.json",
21+
"testTsconfig": "tsconfig.spec.json",
2022
"prefix": "app",
21-
"mobile": false,
2223
"styles": [
2324
"../node_modules/datatables.net-dt/css/jquery.dataTables.css",
25+
"../node_modules/datatables.net-buttons-dt/css/buttons.dataTables.css",
26+
"../node_modules/datatables.net-colreorder-dt/css/colReorder.dataTables.css",
2427
"../node_modules/materialize-css/dist/css/materialize.css",
2528
"styles.css"
2629
],
2730
"scripts": [
2831
"../node_modules/jquery/dist/jquery.js",
2932
"../node_modules/tether/dist/js/tether.js",
30-
"../node_modules/datatables.net/js/jquery.dataTables.js"
33+
"../node_modules/datatables.net/js/jquery.dataTables.js",
34+
"../node_modules/datatables.net-buttons/js/dataTables.buttons.js",
35+
"../node_modules/datatables.net-buttons/js/buttons.colVis.js",
36+
"../node_modules/datatables.net-buttons/js/buttons.flash.js",
37+
"../node_modules/datatables.net-buttons/js/buttons.html5.js",
38+
"../node_modules/datatables.net-buttons/js/buttons.print.js",
39+
"../node_modules/datatables.net-colreorder/js/dataTables.colReorder.js"
3140
],
41+
"environmentSource": "environments/environment.ts",
3242
"environments": {
33-
"source": "environments/environment.ts",
3443
"dev": "environments/environment.ts",
3544
"prod": "environments/environment.prod.ts"
3645
}
3746
}
3847
],
39-
"addons": [],
40-
"packages": [
41-
"node_modules/angular2-highlight-js/lib"
42-
],
4348
"e2e": {
4449
"protractor": {
4550
"config": "./protractor.conf.js"
4651
}
4752
},
53+
"lint": [
54+
{
55+
"project": "src/tsconfig.app.json"
56+
},
57+
{
58+
"project": "src/tsconfig.spec.json"
59+
},
60+
{
61+
"project": "e2e/tsconfig.e2e.json"
62+
}
63+
],
4864
"test": {
4965
"karma": {
5066
"config": "./karma.conf.js"
5167
}
5268
},
5369
"defaults": {
5470
"styleExt": "css",
55-
"prefixInterfaces": false,
56-
"inline": {
57-
"style": false,
58-
"template": false
59-
},
60-
"spec": {
61-
"class": false,
62-
"component": true,
63-
"directive": true,
64-
"module": false,
65-
"pipe": true,
66-
"service": true
67-
}
71+
"component": {}
6872
}
6973
}

demo/README.md

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,14 @@
11
# angular-datatables demo
22

3-
This project was generated with [angular-cli](https://github.com/angular/angular-cli) version 1.0.0-beta.21.
3+
This project was generated with [angular-cli](https://github.com/angular/angular-cli).
44

55
## Development server
6-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
6+
Run `npm start` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
77

88
## Build
99

10-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.
11-
12-
## Deploying to Github Pages
13-
14-
Run `deploy-doc.sh` to deploy the documentation to the Github Pages
15-
16-
You may need to have the following:
17-
- git
18-
- angular-cli installed in global
19-
- have the basic commands in your OS
20-
21-
```
22-
./deploy-doc.sh "My commit message"
23-
```
10+
Run `npm run build:prod` to build the project. The build artifacts will be stored in the `dist/` directory.
2411

2512
## Further help
2613

27-
To get more help on the `angular-cli` use `ng --help` or go check out the [Angular-CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
14+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

demo/karma.conf.js

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,36 @@
44
module.exports = function (config) {
55
config.set({
66
basePath: '',
7-
frameworks: ['jasmine', 'angular-cli'],
7+
frameworks: ['jasmine', '@angular/cli'],
88
plugins: [
99
require('karma-jasmine'),
1010
require('karma-chrome-launcher'),
11-
require('karma-remap-istanbul'),
12-
require('angular-cli/plugins/karma')
11+
require('karma-jasmine-html-reporter'),
12+
require('karma-coverage-istanbul-reporter'),
13+
require('@angular/cli/plugins/karma')
1314
],
15+
client:{
16+
clearContext: false // leave Jasmine Spec Runner output visible in browser
17+
},
1418
files: [
1519
{ pattern: './src/test.ts', watched: false }
1620
],
1721
preprocessors: {
18-
'./src/test.ts': ['angular-cli']
22+
'./src/test.ts': ['@angular/cli']
1923
},
2024
mime: {
2125
'text/x-typescript': ['ts','tsx']
2226
},
23-
remapIstanbulReporter: {
24-
reports: {
25-
html: 'coverage',
26-
lcovonly: './coverage/coverage.lcov'
27-
}
27+
coverageIstanbulReporter: {
28+
reports: [ 'html', 'lcovonly' ],
29+
fixWebpackSourcePaths: true
2830
},
2931
angularCli: {
30-
config: './angular-cli.json',
3132
environment: 'dev'
3233
},
3334
reporters: config.angularCli && config.angularCli.codeCoverage
34-
? ['progress', 'karma-remap-istanbul']
35-
: ['progress'],
35+
? ['progress', 'coverage-istanbul']
36+
: ['progress', 'kjhtml'],
3637
port: 9876,
3738
colors: true,
3839
logLevel: config.LOG_INFO,

0 commit comments

Comments
 (0)