Skip to content

Commit

Permalink
feat(): version 4.0.0 with Angular 12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Ks89 committed Jun 8, 2021
1 parent 8a2b4e4 commit 2bb6934
Show file tree
Hide file tree
Showing 22 changed files with 477 additions and 597 deletions.
13 changes: 8 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,25 @@
3. `cd ../..`
4. `npm run clean`
5. `npm run build:lib`
6. `npm publish @ks89/ngx-codemirror`
7. `git push origin master`
8. `git push origin vx.x.x` <-- tag name created by npm version (for instance v5.0.1)
6. `cd @ks89/ngx-codemirror`
7. `npm publish`
8. `git push origin master`
9. `git push origin vx.x.x` <-- tag name created by npm version (for instance v1.0.1)

## Beta and RC releases (@beta)
1. `cd projects/ks89/ngx-codemirror`
2. Manually change the version of `./libs/ngx-codemirror/package.json` with either this format `x.x.x-beta.x` or `x.x.x-rc.x` (also respect semver!)
3. `cd ../..`
4. `npm run clean`
5. `npm run build:lib`
6. `npm publish @ks89/ngx-codemirror --tag beta`
6. `cd @ks89/ngx-codemirror`
7. `npm publish --tag beta`

## Alpha releases (@next)
1. `cd projects/ks89/ngx-codemirror`
2. Manually change the version of `./libs/ngx-codemirror/package.json` with this format `x.x.x-alpha.x` (also respect semver!)
3. `cd ../..`
4. `npm run clean`
5. `npm run build:lib`
6. `npm publish @ks89/ngx-codemirror --tag next`
6. `cd @ks89/ngx-codemirror`
7. `npm publish --tag next`
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<br>

**Tested only with Angular 10.x.x and angular-cli 10.x.x**
**Tested only with Angular 12.x.x and angular-cli 12.x.x**


## Installation
Expand Down Expand Up @@ -79,7 +79,7 @@ To build this project run `npm run build:lib && npm start` in the root folder.
The MIT License (MIT)
Copyright (c) 2018-2020 Stefano Cappa (Ks89)
Copyright (c) 2018-2021 Stefano Cappa (Ks89)
Copyright (c) 2016 Simon Babay
Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
36 changes: 0 additions & 36 deletions e2e/protractor.conf.js

This file was deleted.

23 changes: 0 additions & 23 deletions e2e/src/app.e2e-spec.ts

This file was deleted.

11 changes: 0 additions & 11 deletions e2e/src/app.po.ts

This file was deleted.

14 changes: 0 additions & 14 deletions e2e/tsconfig.json

This file was deleted.

20 changes: 16 additions & 4 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,28 @@ module.exports = function (config) {
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('karma-coverage'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
jasmine: {
// you can add configuration options for Jasmine here
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
// for example, you can disable the random execution with `random: false`
// or set a specific seed with `seed: 4321`
},
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
jasmineHtmlReporter: {
suppressAll: true // removes the duplicated traces
},
coverageReporter: {
dir: require('path').join(__dirname, './coverage/ngx-codemirror'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
subdir: '.',
reporters: [
{ type: 'html' },
{ type: 'text-summary' }
]
},
reporters: ['progress', 'kjhtml'],
port: 9876,
Expand Down
Loading

0 comments on commit 2bb6934

Please sign in to comment.