Skip to content

Commit

Permalink
migrate to angular 6 #231
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuzuld committed May 6, 2018
1 parent 0d39e3f commit ef60ebb
Show file tree
Hide file tree
Showing 108 changed files with 7,305 additions and 7,347 deletions.
64 changes: 0 additions & 64 deletions .angular-cli.json

This file was deleted.

16 changes: 0 additions & 16 deletions .eslintrc

This file was deleted.

7 changes: 0 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/demo
/.tmp
/dist
/dist-server
/tmp
/out-tsc

Expand Down Expand Up @@ -37,10 +34,6 @@ yarn-error.log
testem.log
/typings

# e2e
/e2e/*.js
/e2e/*.map

# System Files
.DS_Store
Thumbs.db
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ angular-gridster2

### Angular implementation of angular-gridster [Demo](http://tiberiuzuld.github.io/angular-gridster2)

### Requires Angular 5.x
### Requires Angular 6.x
### For other Angular versions check the other branches.

## Install
Expand Down
171 changes: 171 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"gridster-app": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "app",
"schematics": {},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/demo",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css",
"src/theme.scss"
],
"scripts": [
"node_modules/marked/lib/marked.js"
]
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "angular-gridster2:build"
},
"configurations": {
"production": {
"browserTarget": "angular-gridster2:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "angular-gridster2:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": [
"src/styles.css",
"src/theme.scss"
],
"scripts": [
"node_modules/marked/lib/marked.js"
],
"assets": [
"src/favicon.ico",
"src/assets"
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
"angular-gridster2-e2e": {
"root": "e2e/",
"projectType": "application",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "angular-gridster2:serve"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
]
}
}
}
},
"angular-gridster2": {
"root": "projects/angular-gridster2",
"sourceRoot": "projects/angular-gridster2/src",
"projectType": "library",
"prefix": "gridster",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/angular-gridster2/tsconfig.lib.json",
"project": "projects/angular-gridster2/ng-package.json"
},
"configurations": {
"production": {
"project": "projects/angular-gridster2/ng-package.prod.json"
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/angular-gridster2/src/test.ts",
"tsConfig": "projects/angular-gridster2/tsconfig.spec.json",
"karmaConfig": "projects/angular-gridster2/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/angular-gridster2/tsconfig.lib.json",
"projects/angular-gridster2/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"defaultProject": "gridster-app",
"cli": {
"packageManager": "npm"
}
}
4 changes: 2 additions & 2 deletions protractor.conf.js → e2e/protractor.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { SpecReporter } = require('jasmine-spec-reporter');
exports.config = {
allScriptsTimeout: 11000,
specs: [
'./e2e/**/*.e2e-spec.ts'
'./src/**/*.e2e-spec.ts'
],
capabilities: {
'browserName': 'chrome'
Expand All @@ -21,7 +21,7 @@ exports.config = {
},
onPrepare() {
require('ts-node').register({
project: 'e2e/tsconfig.e2e.json'
project: require('path').join(__dirname, './tsconfig.e2e.json')
});
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
}
Expand Down
4 changes: 2 additions & 2 deletions e2e/app.e2e-spec.ts → e2e/src/app.e2e-spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AppPage } from './app.po';
import {AppPage} from './app.po';

describe('cli-test App', () => {
describe('workspace-project App', () => {
let page: AppPage;

beforeEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion e2e/app.po.ts → e2e/src/app.po.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { browser, by, element } from 'protractor';
import {browser, by, element} from 'protractor';

export class AppPage {
navigateTo() {
Expand Down
3 changes: 1 addition & 2 deletions e2e/tsconfig.e2e.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/e2e",
"baseUrl": "./",
"outDir": "../out-tsc/app",
"module": "commonjs",
"target": "es5",
"types": [
Expand Down
15 changes: 0 additions & 15 deletions gulpfile.js

This file was deleted.

Loading

0 comments on commit ef60ebb

Please sign in to comment.