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

Commit 01981e3

Browse files
committed
Use angular-cli#1.0.0-rc.1 #984
1 parent 8ab3107 commit 01981e3

11 files changed

+96
-20
lines changed

demo/angular-cli.json renamed to demo/.angular-cli.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
33
"project": {
4-
"version": "1.0.0-beta.32.3",
54
"name": "angular-datatables-demo"
65
},
76
"apps": [
@@ -18,7 +17,8 @@
1817
"main": "main.ts",
1918
"polyfills": "polyfills.ts",
2019
"test": "test.ts",
21-
"tsconfig": "tsconfig.json",
20+
"tsconfig": "tsconfig.app.json",
21+
"testTsconfig": "tsconfig.spec.json",
2222
"prefix": "app",
2323
"styles": [
2424
"../node_modules/datatables.net-dt/css/jquery.dataTables.css",
@@ -44,12 +44,13 @@
4444
},
4545
"lint": [
4646
{
47-
"files": "src/**/*.ts",
48-
"project": "src/tsconfig.json"
47+
"project": "src/tsconfig.app.json"
4948
},
5049
{
51-
"files": "e2e/**/*.ts",
52-
"project": "e2e/tsconfig.json"
50+
"project": "src/tsconfig.spec.json"
51+
},
52+
{
53+
"project": "e2e/tsconfig.e2e.json"
5354
}
5455
],
5556
"test": {

demo/karma.conf.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ module.exports = function (config) {
2929
fixWebpackSourcePaths: true
3030
},
3131
angularCli: {
32-
config: './.angular-cli.json',
3332
environment: 'dev'
3433
},
3534
reporters: config.angularCli && config.angularCli.codeCoverage

demo/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "angular-datatables-demo",
33
"version": "2.0.2-dev",
44
"license": "MIT",
5-
"angular-cli": {},
65
"scripts": {
76
"ng": "ng",
87
"start": "ng serve",
@@ -38,7 +37,7 @@
3837
"zone.js": "0.7.7"
3938
},
4039
"devDependencies": {
41-
"@angular/cli": "1.0.0-beta.32.3",
40+
"@angular/cli": "1.0.0-rc.1",
4241
"@angular/compiler-cli": "2.4.8",
4342
"@types/jasmine": "2.5.38",
4443
"@types/node": "~6.0.60",

demo/protractor.conf.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Protractor configuration file, see link for more information
22
// https://github.com/angular/protractor/blob/master/lib/config.ts
33

4-
/*global jasmine */
54
const { SpecReporter } = require('jasmine-spec-reporter');
65

76
exports.config = {
@@ -22,7 +21,7 @@ exports.config = {
2221
},
2322
beforeLaunch: function() {
2423
require('ts-node').register({
25-
project: 'e2e'
24+
project: 'e2e/tsconfig.e2e.json'
2625
});
2726
},
2827
onPrepare() {

demo/src/app/advanced/row-click-event.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h4 class="header">Preview</h4>
2828
<br />
2929
<table datatable [dtOptions]="dtOptions" class="row-border hover"></table>
3030
</div>
31-
<ap-row-click-event-snippet></app-row-click-event-snippet>
31+
<app-row-click-event-snippet></app-row-click-event-snippet>
3232
</div>
3333
</div>
3434
</div>

demo/src/app/getting-started.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ <h2 class="header">Installation</h2>
1919
The documentation will only deal with projects that use <a href="https://github.com/angular/angular-cli">angular-cli</a>. Indeed, the front-end ecosystem is evolving at a pace I can't follow anymore. Thus, there will only have a tutorial for angular-cli's project. If you managed to make it work in, for example, SystemJS projects, please submit a pull request to improve this documentation. Thanks!
2020
</p>
2121
<div class="col s12">
22-
<h4>Angular-CLI version 1.0.0-beta.32.3</h4>
22+
<h4>Angular-CLI version 1.0.0-rc.1</h4>
2323
<p>I recommend using <a href="https://github.com/angular/angular-cli">angular-cli</a> to create and manage your angular2 project</p>
2424
<p>
25-
Since Angular-CLI is still in beta, I prefer to warn you the demo was developpped in version <b>1.0.0-beta.32.3</b> and newer version of Angular-CLI may need to have different configuration.
25+
Since Angular-CLI is still in beta, I prefer to warn you the demo was developpped in version <b>1.0.0-rc1</b> and newer version of Angular-CLI may need to have different configuration.
2626
</p>
2727
</div>
2828
<div class="col s12">
@@ -35,7 +35,7 @@ <h4>NPM</h4>
3535
<div class="section">
3636
<h2 class="header" id="setup">Setup</h2>
3737
<div class="col s12">
38-
<h4 id="angular-cli">angular-cli.json</h4>
38+
<h4 id="angular-cli">.angular-cli.json</h4>
3939
<p>Add the dependencies in the scripts and styles attributes:</p>
4040
<section [innerHTML]="angularCliJsonSnippet" highlight-js-content=".json"></section>
4141
</div>

demo/src/app/getting-started.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@ npm install angular-datatables --save</code>
1818
<code class="json highlight">{
1919
"apps": [
2020
{
21+
...
2122
"styles": [
2223
"../node_modules/datatables.net-dt/css/jquery.dataTables.css"
2324
],
2425
"scripts": [
2526
"../node_modules/jquery/dist/jquery.js",
2627
"../node_modules/datatables.net/js/jquery.dataTables.js"
27-
]
28+
],
29+
...
2830
}
2931
]
3032
}</code>

demo/src/tsconfig.app.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"compilerOptions": {
3+
"sourceMap": true,
4+
"declaration": false,
5+
"moduleResolution": "node",
6+
"emitDecoratorMetadata": true,
7+
"experimentalDecorators": true,
8+
"lib": [
9+
"es2016",
10+
"dom"
11+
],
12+
"outDir": "../out-tsc/app",
13+
"target": "es5",
14+
"module": "es2015",
15+
"baseUrl": "",
16+
"types": []
17+
},
18+
"exclude": [
19+
"test.ts",
20+
"**/*.spec.ts"
21+
]
22+
}

demo/src/tsconfig.spec.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"compilerOptions": {
3+
"sourceMap": true,
4+
"declaration": false,
5+
"moduleResolution": "node",
6+
"emitDecoratorMetadata": true,
7+
"experimentalDecorators": true,
8+
"lib": [
9+
"es2016"
10+
],
11+
"outDir": "../out-tsc/spec",
12+
"module": "commonjs",
13+
"target": "es6",
14+
"baseUrl": "",
15+
"types": [
16+
"jasmine",
17+
"node"
18+
]
19+
},
20+
"files": [
21+
"test.ts"
22+
],
23+
"include": [
24+
"**/*.spec.ts"
25+
]
26+
}

demo/tsconfig.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"compileOnSave": false,
3+
"compilerOptions": {
4+
"outDir": "./dist/out-tsc",
5+
"sourceMap": true,
6+
"declaration": false,
7+
"moduleResolution": "node",
8+
"emitDecoratorMetadata": true,
9+
"experimentalDecorators": true,
10+
"target": "es5",
11+
"lib": [
12+
"es2016",
13+
"dom"
14+
]
15+
}
16+
}

deploy-doc.sh

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,32 @@
33
# Exit the script if a command fails
44
set -e
55

6-
gitmessage=${1:-'Deploy documentation to gh-pages'}
7-
86
function info {
9-
echo "[-] $1"
7+
echo "[-] $1"
8+
}
9+
10+
function help {
11+
echo "[x] Missing arguments..."
12+
info "Usage: $ deploy-doc.sh <version>"
13+
info "Example:"
14+
info " $ deploy-doc.sh 2.0.0"
1015
}
1116

17+
if [ -z "$1" ]; then
18+
help
19+
exit 1
20+
fi
21+
22+
version=${1}
23+
gitmessage="Deploy documentation $version to gh-pages"
1224
cwd=$(pwd)
1325
project_name=${PWD##*/}
1426

1527
info "Deloying the documentation to the GH pages from $cwd (project name is $project_name)"
1628

1729
info "Building documentation..."
1830
cd $cwd/demo
19-
ng build --prod --aot --base-href /angular-datatables/
31+
npm run ng build -prod -aot --base-href /angular-datatables/
2032

2133
info "Copying the doc folder to /tmp"
2234
rm -rf /tmp/angular-datatables-demo

0 commit comments

Comments
 (0)