Skip to content

Commit

Permalink
Merge pull request #35 from dolittle/cleanup
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
woksin committed Nov 5, 2021
2 parents 1c3ebeb + faef1d6 commit ece2742
Show file tree
Hide file tree
Showing 91 changed files with 560 additions and 2,667 deletions.
14 changes: 14 additions & 0 deletions .editorconfig
@@ -0,0 +1,14 @@
# EditorConfig helps create consistency for formatting of all
#
# http://EditorConfig.org

root = true

[*]
end_of_line = lf
indent_style = space
indent_size = 4
charset = utf-8

[*.yml]
indent_size = 2
1 change: 1 addition & 0 deletions .eslintrc.yml
@@ -0,0 +1 @@
extends: dolittle
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE.md
@@ -0,0 +1,19 @@
### Description
Replace this text with a short Description

### Environment
* Operating System and version
* Development Environment
* Runtime Environment, SDK versions

### Steps to recreate
1. Replace this
2. text with
3. the steps
4. to recreate

### Current behavior
Explain what it's doing and why it's wrong

### Expected behavior
Explain what it should be doing after it's fixed.
29 changes: 29 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,29 @@
## Summary

Summary of the PR here. The GitHub release description is created from this comment so keep it nice and descriptive.

Remember to remove sections that you don't need or use.

### Added

- Describe the added features

### Changed

- Describe the outwards facing code change

### Fixed

- Describe the fix and the bug

### Removed

- Describe what was removed and why

### Security

- Describe the security issue and the fix

### Deprecated

- Describe the part of the code being deprecated and why
63 changes: 63 additions & 0 deletions .github/workflows/workflow.yml
@@ -0,0 +1,63 @@
name: Typescript.Build CI/CD

on:
push:
branches:
- "**"
pull_request:
types: [closed]

jobs:
build:
name: Continuous Integration
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup node v12
uses: actions/setup-node@v1
with:
node-version: 12.x
registry-url: "https://registry.npmjs.org"
- run: yarn
- run: yarn ci

- name: Establish context
id: context
uses: dolittle/establish-context-action@v2

- name: Increment version
id: increment-version
if: ${{ steps.context.outputs.should-publish == 'true' }}
uses: dolittle/increment-version-action@v2
with:
version: ${{ steps.context.outputs.current-version }}
release-type: ${{ steps.context.outputs.release-type }}

- name: Prepend to Changelog
if: ${{ steps.context.outputs.should-publish == 'true' && steps.context.outputs.release-type != 'prerelease' }}
uses: dolittle/add-to-changelog-action@v2
with:
version: ${{ steps.increment-version.outputs.next-version }}
body: ${{ steps.context.outputs.pr-body }}
pr-url: ${{ steps.context.outputs.pr-url }}
changelog-path: CHANGELOG.md
user-email: build@dolittle.com
user-name: dolittle-build

- name: Create GitHub Release
if: ${{ steps.context.outputs.should-publish == 'true' }}
uses: dolittle/github-release-action@v2
with:
token: ${{ secrets.BUILD_PAT }}
version: ${{ steps.increment-version.outputs.next-version }}
body: ${{ steps.context.outputs.pr-body }}

- name: Release JavaScript
if: ${{ steps.context.outputs.should-publish == 'true' }}
uses: dolittle/release-typescript-lib-action@v1
with:
version: ${{ steps.increment-version.outputs.next-version }}
root: "."
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 6 additions & 0 deletions .mocharc.js
@@ -0,0 +1,6 @@
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

const dolittle = require('@dolittle/typescript.testing/.mocharc.json');

module.exports = dolittle;
6 changes: 6 additions & 0 deletions .prettierrc
@@ -0,0 +1,6 @@
{
"singleQuote": true,
"jsxSingleQuote": true,
"printWidth": 90,
"tabWidth": 4
}
7 changes: 5 additions & 2 deletions .vscode/settings.json
@@ -1,4 +1,7 @@
{
"tslint.configFile": "tslint.json",
"tslint.packageManager": "yarn"
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.alwaysShowStatus": true
}
58 changes: 0 additions & 58 deletions Documentation/tasks/_index.md

This file was deleted.

33 changes: 0 additions & 33 deletions Documentation/wallaby/_index.md

This file was deleted.

57 changes: 0 additions & 57 deletions Documentation/web-pack/_index.md

This file was deleted.

57 changes: 0 additions & 57 deletions Documentation/web-pack/aurelia/_index.md

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion Examples/Vanilla-Structure-With-Source/Source/index.ts

This file was deleted.

0 comments on commit ece2742

Please sign in to comment.