Skip to content

Commit

Permalink
build(npm): add semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
fulls1z3 committed Nov 20, 2019
1 parent 17095b9 commit 353d2ad
Show file tree
Hide file tree
Showing 33 changed files with 4,155 additions and 1,817 deletions.
9 changes: 7 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ version: 2
jobs:
build:
docker:
- image: circleci/node:8-browsers
- image: circleci/node:10-browsers
environment:
JOBS: 1
steps:
- checkout
- run: sudo npm install -g yarn@0
- run: sudo yarn global add @angular/cli@7
- run: sudo yarn global add semantic-release@15
- run: sudo yarn global add greenkeeper-lockfile@1
- restore_cache:
keys:
Expand All @@ -16,9 +20,10 @@ jobs:
key: deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths: 'node_modules'
- run: yarn ci:before
- run: yarn test:ci
# - run: yarn test:ci
- run: yarn build
- run: yarn ci:after
- run: npx semantic-release
- run: bash <(curl -s https://codecov.io/bash)
- store_artifacts:
path: coverage
Expand Down
12 changes: 4 additions & 8 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 140
trim_trailing_whitespace = true

[*.md]
max_line_length = 140
trim_trailing_whitespace = false
max_line_length = off

[*.html]
indent_size = 4
35 changes: 28 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,40 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
.temp/
dist/
/dist
/tmp
/out-tsc

# dependencies
node_modules/
/node_modules

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

# build tools
coverage/
test-report.xml
# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

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

# System Files
.DS_Store
Thumbs.db
20 changes: 8 additions & 12 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
# angular gitignore
# see https://github.com/prettier/prettier/issues/2294
# Add files here to ignore them from prettier formatting

## compiled output
/.awcache
# compiled output
/dist
/docs
/tmp
/out-tsc

## dependencies
/bower_components
# dependencies
/node_modules

## IDEs and editors
# IDEs and editors
/.idea
.project
.classpath
Expand Down Expand Up @@ -43,8 +40,7 @@ test-report.xml
.DS_Store
Thumbs.db

# auto-generated files
/angular.json
/.angular-cli.json
/package-lock.json
/yarn.lock
# others
/tools
angular.json
yarn.lock
3 changes: 1 addition & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"printWidth": 140,
"singleQuote": true,
"endOfLine": "crlf"
"singleQuote": true
}
56 changes: 0 additions & 56 deletions CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 Burak Tasci
Copyright (c) 2019 Burak Tasci

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
107 changes: 50 additions & 57 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,50 @@
# ngx-cache

Cache utility for **Angular**

[![CircleCI](https://circleci.com/gh/fulls1z3/ngx-cache.svg?style=shield)](https://circleci.com/gh/fulls1z3/ngx-cache)
[![coverage](https://codecov.io/github/fulls1z3/ngx-cache/coverage.svg?branch=master)](https://codecov.io/gh/fulls1z3/ngx-cache)
[![tested with jest](https://img.shields.io/badge/tested_with-jest-99424f.svg)](https://github.com/facebook/jest)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
[![Greenkeeper badge](https://badges.greenkeeper.io/fulls1z3/ngx-cache.svg)](https://greenkeeper.io/)
[![Angular Style Guide](https://mgechev.github.io/angular2-style-guide/images/badge.svg)](https://angular.io/styleguide)

> Please support this project by simply putting a Github star. Share this library with friends on Twitter and everywhere else you can.
#### NOTICE

> This _[7.x.x] branch_ is intented to work with `Angular v7.x.x`. If you're developing on a later release of **Angular**
> than `v7.x.x`, then you should probably choose the appropriate version of this library by visiting the _[master] branch_.
## Packages:

| Name | Description | NPM |
| --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- |
| [@ngx-cache/core](https://github.com/fulls1z3/ngx-cache/tree/master/packages/@ngx-cache/core) | Cache utility for **Angular** | [![npm version](https://badge.fury.io/js/%40ngx-cache%2Fcore.svg)](https://www.npmjs.com/package/@ngx-cache/core) |
| [@ngx-cache/platform-browser](https://github.com/fulls1z3/ngx-cache/tree/master/packages/@ngx-cache/platform-browser) | **SPA/Browser platform** implementation of [ngx-cache] | [![npm version](https://badge.fury.io/js/%40ngx-cache%2Fplatform-browser.svg)](https://www.npmjs.com/package/@ngx-cache/platform-browser) |
| [@ngx-cache/platform-server](https://github.com/fulls1z3/ngx-cache/tree/master/packages/@ngx-cache/platform-server) | **Server platform** implementation of [ngx-cache] | [![npm version](https://badge.fury.io/js/%40ngx-cache%2Fplatform-server.svg)](https://www.npmjs.com/package/@ngx-cache/platform-server) |
| [@ngx-cache/fs-storage](https://github.com/fulls1z3/ngx-cache/tree/master/packages/@ngx-cache/fs-storage) | **Fs storage** for [ngx-cache] (server platform) | [![npm version](https://badge.fury.io/js/%40ngx-cache%2Ffs-storage.svg)](https://www.npmjs.com/package/@ngx-cache/fs-storage) |

### Examples

- [ng-seed/universal] is an officially maintained seed project, showcasing common patterns and best practices for **`ngx-cache`**.

## Contributing

If you want to file a bug, contribute some code, or improve documentation, please read up on the following contribution guidelines:

- [Issue guidelines](CONTRIBUTING.md#submit)
- [Contributing guidelines](CONTRIBUTING.md)
- [Coding rules](CONTRIBUTING.md#rules)
- [Change log](CHANGELOG.md)

#### Thanks to

- [JetBrains], for their support to this open source project with free [WebStorm] licenses.

## License

The MIT License (MIT)

Copyright (c) 2018 [Burak Tasci]

[master]: https://github.com/fulls1z3/ngx-cache/core/tree/master
[7.x.x]: https://github.com/fulls1z3/ngx-cache/core/tree/7.x.x
[ngx-cache]: https://github.com/fulls1z3/ngx-cache
[ng-seed/universal]: https://github.com/ng-seed/universal
[jetbrains]: https://www.jetbrains.com/community/opensource
[webstorm]: https://www.jetbrains.com/webstorm
[burak tasci]: https://github.com/fulls1z3
# ngx-cache

Cache utility for **Angular**

[![CircleCI](https://circleci.com/gh/fulls1z3/ngx-cache.svg?style=shield)](https://circleci.com/gh/fulls1z3/ngx-cache)
[![coverage](https://codecov.io/github/fulls1z3/ngx-cache/coverage.svg?branch=master)](https://codecov.io/gh/fulls1z3/ngx-cache)
[![tested with jest](https://img.shields.io/badge/tested_with-jest-99424f.svg)](https://github.com/facebook/jest)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
[![Greenkeeper badge](https://badges.greenkeeper.io/fulls1z3/ngx-cache.svg)](https://greenkeeper.io/)
[![Angular Style Guide](https://mgechev.github.io/angular2-style-guide/images/badge.svg)](https://angular.io/styleguide)

> Please support this project by simply putting a Github star. Share this library with friends on Twitter and everywhere else you can.
## Packages:

| Name | Description | NPM |
| --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- |
| [@ngx-cache/core](https://github.com/fulls1z3/ngx-cache/tree/master/packages/@ngx-cache/core) | Cache utility for **Angular** | [![npm version](https://badge.fury.io/js/%40ngx-cache%2Fcore.svg)](https://www.npmjs.com/package/@ngx-cache/core) |
| [@ngx-cache/platform-browser](https://github.com/fulls1z3/ngx-cache/tree/master/packages/@ngx-cache/platform-browser) | **SPA/Browser platform** implementation of [ngx-cache] | [![npm version](https://badge.fury.io/js/%40ngx-cache%2Fplatform-browser.svg)](https://www.npmjs.com/package/@ngx-cache/platform-browser) |
| [@ngx-cache/platform-server](https://github.com/fulls1z3/ngx-cache/tree/master/packages/@ngx-cache/platform-server) | **Server platform** implementation of [ngx-cache] | [![npm version](https://badge.fury.io/js/%40ngx-cache%2Fplatform-server.svg)](https://www.npmjs.com/package/@ngx-cache/platform-server) |
| [@ngx-cache/fs-storage](https://github.com/fulls1z3/ngx-cache/tree/master/packages/@ngx-cache/fs-storage) | **Fs storage** for [ngx-cache] (server platform) | [![npm version](https://badge.fury.io/js/%40ngx-cache%2Ffs-storage.svg)](https://www.npmjs.com/package/@ngx-cache/fs-storage) |

### Examples

- [ng-seed/universal] is an officially maintained seed project, showcasing common patterns and best practices for **`ngx-cache`**.

## Contributing

If you want to file a bug, contribute some code, or improve documentation, please read up on the following contribution guidelines:

- [Issue guidelines](CONTRIBUTING.md#submit)
- [Contributing guidelines](CONTRIBUTING.md)
- [Coding rules](CONTRIBUTING.md#rules)
- [Change log](/releases)

#### Thanks to

- [JetBrains], for their support to this open source project with free [WebStorm] licenses.

## License

The MIT License (MIT)

Copyright (c) 2019 [Burak Tasci]

[ngx-cache]: https://github.com/fulls1z3/ngx-cache
[ng-seed/universal]: https://github.com/ng-seed/universal
[jetbrains]: https://www.jetbrains.com/community/opensource
[webstorm]: https://www.jetbrains.com/webstorm
[burak tasci]: https://github.com/fulls1z3
15 changes: 1 addition & 14 deletions commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,7 @@ module.exports = {
'scope-enum': [
2,
'always',
[
'project-wide',
'core',
'fs-storage',
'platform-browser',
'platform-server',
'package',
'npm',
'webpack',
'circle',
'lint',
'packaging',
'changelog'
]
['core', 'fs-storage', 'platform-browser', 'platform-server', 'package', 'npm', 'circle', 'lint', 'packaging', 'changelog']
]
}
};
Loading

0 comments on commit 353d2ad

Please sign in to comment.