Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev'
Browse files Browse the repository at this point in the history
# Conflicts:
#	angular.json
#	package-lock.json
#	package.json
#	projects/editor/src/lib/diff-editor.component.ts
#	projects/editor/src/lib/editor.component.ts
#	scripts/rollup.js
  • Loading branch information
atu1kr committed Feb 24, 2019
2 parents 2ffca32 + af96ca7 commit a64309d
Show file tree
Hide file tree
Showing 58 changed files with 5,970 additions and 7,600 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Editor configuration, see http://editorconfig.org
# Editor configuration, see https://editorconfig.org
root = true

[*]
Expand Down
14 changes: 8 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@

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

# dependencies
/node_modules

# profiling files
chrome-profiler-events.json
speed-measure-plugin.json

# IDEs and editors
/.idea
.project
Expand All @@ -24,20 +29,17 @@
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings
yarn-error.log

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

# System Files
.DS_Store
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ import { AppComponent } from './app.component';
const monacoConfig: NgxMonacoEditorConfig = {
baseUrl: 'app-name/assets', // configure base path for monaco editor
defaultOptions: { scrollBeyondLastLine: false }, // pass default options to be used
onMonacoLoad: () => { console.log((<any>window).monaco); } // here monaco object will be available as window.monaco use this function to extend monaco editor functionality.
onMonacoLoad: () => { console.log((<any>window).monaco); } // here monaco object will be available as window.monaco use this function to extend monaco editor functionalities.
};
@NgModule({
Expand Down
128 changes: 46 additions & 82 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,40 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
"ngx-monaco-editor": {
"root": "",
"sourceRoot": "src",
"editor-tester": {
"root": "projects/editor-tester/",
"sourceRoot": "projects/editor-tester/src",
"projectType": "application",
"prefix": "app",
"schematics": {},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist",
"index": "src/index.html",
"main": "src/main.ts",
"tsConfig": "src/tsconfig.app.json",
"polyfills": "src/polyfills.ts",
"outputPath": "dist/editor-tester",
"index": "projects/editor-tester/src/index.html",
"main": "projects/editor-tester/src/main.ts",
"polyfills": "projects/editor-tester/src/polyfills.ts",
"tsConfig": "projects/editor-tester/tsconfig.app.json",
"assets": [
{
"glob": "**/*",
"input": "node_modules/monaco-editor/min",
"output": "/assets/monaco"
}
"projects/editor-tester/src/favicon.ico",
"projects/editor-tester/src/assets",
{ "glob": "**/*", "input": "node_modules/monaco-editor/min", "output": "./assets/monaco/" }
],
"styles": [
"projects/editor-tester/src/styles.css"
],
"styles": [],
"scripts": []
"scripts": [],
"es5BrowserSupport": true
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "projects/editor-tester/src/environments/environment.ts",
"with": "projects/editor-tester/src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
Expand All @@ -37,10 +46,11 @@
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"fileReplacements": [
"budgets": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
}
]
}
Expand All @@ -49,46 +59,26 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "ngx-monaco-editor:build",
"port": 4200,
"host": "localhost"
"browserTarget": "editor-tester:build"
},
"configurations": {
"production": {
"browserTarget": "ngx-monaco-editor:build:production"
"browserTarget": "editor-tester:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "ngx-monaco-editor:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"karmaConfig": "./karma.conf.js",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"scripts": [],
"styles": [],
"assets": [
{
"glob": "**/*",
"input": "node_modules/monaco-editor/min",
"output": "/assets/monaco"
}
]
"browserTarget": "editor-tester:build"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
"projects/editor-tester/tsconfig.app.json",
"projects/editor-tester/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
Expand All @@ -97,23 +87,25 @@
}
}
},
"ngx-monaco-editor-e2e": {
"root": "",
"sourceRoot": "",
"projectType": "application",
"editor": {
"root": "projects/editor",
"sourceRoot": "projects/editor/src",
"projectType": "library",
"prefix": "ngx-monaco",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"protractorConfig": "./protractor.conf.js",
"devServerTarget": "ngx-monaco-editor:serve"
"tsConfig": "projects/editor/tsconfig.lib.json",
"project": "projects/editor/ng-package.json"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"e2e/tsconfig.e2e.json"
"projects/editor/tsconfig.lib.json",
"projects/editor/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
Expand All @@ -123,33 +115,5 @@
}
}
},
"defaultProject": "ngx-monaco-editor",
"schematics": {
"@schematics/angular:class": {
"spec": false
},
"@schematics/angular:component": {
"spec": false,
"inlineStyle": true,
"inlineTemplate": true,
"prefix": "app",
"styleext": "css"
},
"@schematics/angular:directive": {
"spec": false,
"prefix": "app"
},
"@schematics/angular:guard": {
"spec": false
},
"@schematics/angular:module": {
"spec": false
},
"@schematics/angular:pipe": {
"spec": false
},
"@schematics/angular:service": {
"spec": false
}
}
}
"defaultProject": "ngx-monaco-editor"
}
33 changes: 0 additions & 33 deletions build.conf.js

This file was deleted.

3 changes: 0 additions & 3 deletions gulpfile.js

This file was deleted.

Loading

0 comments on commit a64309d

Please sign in to comment.