Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Angular v9 #131

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .angulardoc.json

This file was deleted.

File renamed without changes.
62 changes: 42 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,26 +1,48 @@
# Logs
logs
*.log
npm-debug.log*
# See http://help.github.com/ignore-files/ for more about ignoring files.

# Dependency directory
# compiled output
dist
/tmp
/out-tsc
# Only exists if Bazel was run
/bazel-out

# dependencies
/node_modules
node_modules

# Optional npm cache directory
.npm
# profiling files
chrome-profiler-events*.json
speed-measure-plugin*.json

# typescript
typings
# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# OS
.DS_Store
.idea/
*.lock
# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# Project
*.ngsummary.json
*.ngfactory.ts
src/*.d.ts
src/*.js
.rpt2_cache
.angulardoc.json
# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
.DS_Store
Thumbs.db
.npmrc
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"printWidth": 100
}
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

97 changes: 63 additions & 34 deletions sample/angular.json → angular.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,31 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"newProjectRoot": "packages",
"projects": {
"exemple": {
"root": "",
"sourceRoot": "src",
"angular-ace-editor": {
"projectType": "application",
"prefix": "app",
"schematics": {
"@schematics/angular:component": {
"styleext": "sass"
"style": "scss"
}
},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/exemple",
"outputPath": "dist/angular-ace-editor",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.sass"],
"scripts": [
"node_modules/ace-builds/src-min/ace.js",
"node_modules/ace-builds/src-min/mode-html.js"
]
"styles": ["src/styles.scss"],
"scripts": []
},
"configurations": {
"production": {
Expand All @@ -42,7 +40,6 @@
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
Expand All @@ -51,6 +48,11 @@
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]
}
Expand All @@ -59,67 +61,94 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "exemple:build"
"browserTarget": "angular-ace-editor:build"
},
"configurations": {
"production": {
"browserTarget": "exemple:build:production"
"browserTarget": "angular-ace-editor:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "exemple:build"
"browserTarget": "angular-ace-editor: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.sass"],
"scripts": [],
"assets": ["src/favicon.ico", "src/assets"]
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.scss"],
"scripts": []
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["src/tsconfig.app.json", "src/tsconfig.spec.json"],
"tsConfig": ["tsconfig.app.json", "tsconfig.spec.json", "e2e/tsconfig.json"],
"exclude": ["**/node_modules/**"]
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "angular-ace-editor:serve"
},
"configurations": {
"production": {
"devServerTarget": "angular-ace-editor:serve:production"
}
}
}
}
},
"exemple-e2e": {
"root": "e2e/",
"projectType": "application",
"prefix": "",
"ng2-ace-editor": {
"projectType": "library",
"root": "packages/ng2-ace-editor",
"sourceRoot": "packages/ng2-ace-editor/src",
"prefix": "lib",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "exemple:serve"
"tsConfig": "packages/ng2-ace-editor/tsconfig.lib.json",
"project": "packages/ng2-ace-editor/ng-package.json"
},
"configurations": {
"production": {
"devServerTarget": "exemple:serve:production"
"tsConfig": "packages/ng2-ace-editor/tsconfig.lib.prod.json"
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "packages/ng2-ace-editor/src/test.ts",
"tsConfig": "packages/ng2-ace-editor/tsconfig.spec.json",
"karmaConfig": "packages/ng2-ace-editor/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "e2e/tsconfig.e2e.json",
"tsConfig": [
"packages/ng2-ace-editor/tsconfig.lib.json",
"packages/ng2-ace-editor/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
}
}
}
},
"defaultProject": "exemple"
"defaultProject": "ng2-ace-editor",
"cli": {
"analytics": "5f7d053f-9245-4dbc-95d1-76adf6ac058d"
}
}
12 changes: 12 additions & 0 deletions browserslist
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# You can see what browsers were selected by your queries by running:
# npx browserslist

> 0.5%
last 2 versions
Firefox ESR
not dead
not IE 9-11 # For IE 9-11 support, remove 'not'.
Loading