Skip to content

Commit

Permalink
Merge b0a921e into ed0a1ed
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Mar 12, 2019
2 parents ed0a1ed + b0a921e commit ef75082
Show file tree
Hide file tree
Showing 27 changed files with 8,209 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .alobuild-prep-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

PLAINTEXT_GPG=/tmp/alobuild-$(cat /proc/sys/kernel/random/uuid)

echo $BUILD_GPG_PUB_KEY | base64 -d > $PLAINTEXT_GPG
echo >> $PLAINTEXT_GPG
echo $BUILD_GPG_PRIV_KEY | base64 -d >> $PLAINTEXT_GPG
chmod 600 $PLAINTEXT_GPG
gpg --batch --yes --import $PLAINTEXT_GPG
rm -f $PLAINTEXT_GPG

PWD_GPG=/tmp/alobuild-$(cat /proc/sys/kernel/random/uuid)

echo '/usr/bin/gpg2 --passphrase ${BUILD_GPG_KEY_PWD} --batch --no-tty "$@"' > $PWD_GPG
chmod 700 $PWD_GPG

git config gpg.program $PWD_GPG
git config commit.gpgsign true
git config --global user.signingkey $BUILD_GPG_KEY_ID
27 changes: 27 additions & 0 deletions .alobuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
global:
dist-dirs: &distDirs dist
tsconfig: tsconfig.json

clean-pkg-json:
sort-scripts: true

copy-files:
from:
- package.json
- LICENSE
- CHANGELOG.md
- README.md
to: *distDirs

build:
entry: src/index.ts
targets:
- cjs
- declaration
- fesm5
- fesm2015
- umd
license-banner: true
out: *distDirs
umd-name: MemoiseDecorator
externals: tslib
19 changes: 19 additions & 0 deletions .babelrc.legacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"presets": [
"@babel/preset-env"
],
"plugins": [
[
"@babel/plugin-proposal-decorators",
{
"legacy": true
}
],
[
"@babel/plugin-proposal-class-properties",
{
"loose": true
}
]
]
}
17 changes: 17 additions & 0 deletions .babelrc.new
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"plugins": [
[
"@babel/plugin-proposal-decorators",
{
"legacy": false,
"decoratorsBeforeExport": true
}
],
[
"@babel/plugin-proposal-class-properties",
{
"loose": true
}
]
]
}
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @Alorel
9 changes: 9 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- Please only include exactly one feature/bugfix per commit.
- Please use the [Angular commit message format](https://github.com/bcoe/conventional-changelog-standard/blob/61da424c2aabf93ff9302b42d6fc2c17ff95c087/convention.md) for your commits.
- When applicable, please use an appropriate scope, e.g. if fixing a bug in the *foo* feature, the commit message could look something like `fix(foo): The hug() method no longer eats babies`.
- Please ensure that your branch is up to date with master before opening the pull request.
- Please ensure that there is adequate test coverage for your code: run `yarn test` and see the `coverage` directory.
- Please lint your work; see [package.json](https://github.com/Alorel/memoise-decorator/blob/master/package.json).
- Please ensure that your code is well-documented. Add README entries if applicable.
- If your pull request is a work in progress, please start the title with `[WIP]`, e.g. `[WIP] One glorious feature`
- Please ensure you use [yarn package manager](https://yarnpkg.com) and not npm.
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- [ ] I have read the README and API docs (if applicable); the issue is not covered there.
- [ ] I have searched the repository issues and pull requests; my query is not covered there.

-----

Issue goes here.
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Bug Report
about: Something isn't working

---

- [ ] I have read the README and API docs (if applicable); the issue is not covered there.
- [ ] I have searched the repository issues and pull requests; my query is not covered there.

-----

- **Expected behaviour**: XXXXX
- **Actual behaviour**: XXXXX
- **Environment**:
- **Node version**: x.y.z
- **Browser and browser version (if applicable)**: XXXXX
- **Steps to reproduce**:
- Step 1
- Step 2
- ...
- Step n
- **Reproducible code sample**:
- **[stackblitz.com](https://stackblitz.com)** (preferred):
- **Git repository** (*only* if a Stackblitz example is not possible):

-----

Additional information, screenshots etc go here.
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Feature Request
about: I want new functionality

---

- [ ] I have read the README and API docs (if applicable); the issue is not covered there.
- [ ] I have searched the repository issues and pull requests; my query is not covered there.

-----

- **Describe the feature**: XXXXX
- **Why it is needed** (include use cases): XXXXX
- **Pseudocode** (non-functional schematic of how it could operate):
```javascript
const code = await getCode();
await makePR(code);
```
- [ ] I would be able to implement this feature and make a pull request.

-----

Additional information goes here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/guidance_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Guidance Request
about: I don't know how to do something

---

- [ ] I have read the README and API docs (if applicable); the issue is not covered there.
- [ ] I have searched the repository issues and pull requests; my query is not covered there.

-----

- **Desired outcome**: XXXXX
- **My attempts**:
- **On [stackblitz.com](https://stackblitz.com)** (preferred):
- **Git repository** (*only* if a Stackblitz example is not possible):

-----

Additional information goes here.
10 changes: 10 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- [ ] I have read and followed the [contribution guidelines](https://github.com/Alorel/memoise-decorator/blob/master/.github/CONTRIBUTING.md).

My pull request is a:

- [ ] Feature
- [ ] Bug fix
- [ ] Documentation fix
- [ ] Other

-----
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.idea/
node_modules/
dist/
coverage/
.nyc_output/
yarn-error.log
*.tgz
/.alobuild-tsconfig-*.json
package-lock.json
test/Test.*.js
21 changes: 21 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"reporter": [
"text",
"text-summary",
"html",
"lcov"
],
"extension": [
".ts"
],
"require": [
"ts-node/register"
],
"exclude": [
"**/test/**/*",
"**/webpack.config.js",
"**/rollup.config.js"
],
"sourceMap": true,
"instrument": true
}
35 changes: 35 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
branch: master
tagFormat: '${version}'

verifyConditions:
- path: &npm '@semantic-release/npm'
pkgRoot: '.'
- &gh '@semantic-release/github'

prepare:
- '@semantic-release/changelog'
- '@alorel-personal/semantic-release'
- *npm
- path: &exec '@semantic-release/exec'
cmd: yarn run doctoc
- path: *exec
cmd: alo copy-files
- path: *exec
cmd: alo clean-dist
- path: *exec
cmd: alo clean-pkg-json
- path: '@semantic-release/git'
message: 'chore(release): ${nextRelease.version}'
assets:
- CHANGELOG.md
- README.md
- package.json
- yarn.lock

publish:
- path: *npm
pkgRoot: './dist'
- *gh

generateNotes:
config: '@alorel-personal/conventional-changelog-alorel'
35 changes: 35 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
language: node_js
node_js:
- stable
- lts/*
before_install:
- 'npm i -g yarn greenkeeper-lockfile'
- 'if [[ $GH_TOKEN ]]; then ./.alobuild-prep-release.sh; fi;'
- greenkeeper-lockfile-update
install: 'yarn install --check-files'
script:
- 'yarn run tslint'
- 'yarn run typecheck'
- 'yarn test --forbid-only --forbid-pending'
after_script: 'if [[ $GH_TOKEN ]]; then greenkeeper-lockfile-upload; fi;'
after_success: 'cat ./coverage/lcov.info | coveralls'
cache:
yarn: true
stages:
- Test
- name: Release
if: 'branch = master AND type = push AND (NOT tag IS present)'
jobs:
include:
- stage: Release
node_js: stable
before_install:
- 'npm i -g yarn'
- 'if [[ $GH_TOKEN ]]; then ./.alobuild-prep-release.sh; fi;'
before_script:
- 'yarn run build'
- 'alo copy-files'
script: semantic-release
after_success: []
after_script: []

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Arturas Molcanovas <a.molcanovas@gmail.com> (https://github.com/Alorel)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit ef75082

Please sign in to comment.