Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atomic packages #29

Merged
merged 29 commits into from
Jul 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
08eb997
chore: remove unused dev deps
aminya Jul 17, 2020
6e33f6e
chore: using CI action instead of travis
aminya Jul 17, 2020
c11b161
chore: update git configs
aminya Jul 17, 2020
e6705a8
chore: dep bumper action
aminya Jul 17, 2020
46c0801
chore: prettier config
aminya Jul 17, 2020
5629637
chore: babe; config
aminya Jul 17, 2020
4fa3dab
chore: rollup config
aminya Jul 17, 2020
ef9a57e
chore: lint config
aminya Jul 17, 2020
1047b50
chore: add dev dependencies
aminya Jul 17, 2020
2f701e5
chore: add scripts
aminya Jul 17, 2020
f7f81ec
chore: update lock
aminya Jul 17, 2020
8e331d6
chore: fix typings
aminya Jul 17, 2020
f0a7992
test: add basic tests
aminya Jul 17, 2020
54948fd
chore: npm run bump
aminya Jul 17, 2020
b62d092
chore: update package-lock
aminya Jul 17, 2020
296ac95
chore: main export named
aminya Jul 17, 2020
870ff6b
chore: fix render type
aminya Jul 17, 2020
66dcc7a
chore: add tsconfig
aminya Jul 17, 2020
a63eda2
fix: utils
aminya Jul 17, 2020
17da8a1
chore: renderer import types
aminya Jul 17, 2020
671298d
chore: renderer export named
aminya Jul 17, 2020
174d012
fix: renderer use optional chaining
aminya Jul 17, 2020
fca1695
chore: renderer types
aminya Jul 17, 2020
83df123
fix: use rolled up bundle
aminya Jul 17, 2020
0302f71
fix: npm run format
aminya Jul 17, 2020
f65d80d
fix: enable build-commit
aminya Jul 17, 2020
1a5def4
chore: add readme
aminya Jul 17, 2020
9c7a3e5
chore: use latest linter preset
aminya Jul 17, 2020
2392c45
chore: npm run format
aminya Jul 17, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "eslint-config-atomic",
"ignorePatterns": ["dist/", "node_modules/"]
}
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* text=auto

# don't diff machine generated files
dist/ -diff
package-lock.json -diff
90 changes: 90 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: CI
on:
- push
- pull_request

defaults:
run:
shell: bash

jobs:
Test:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
name: ${{ matrix.os }} - Atom ${{ matrix.atom_channel }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
# - macos-latest
# - windows-latest
atom_channel: [stable, beta]
steps:
- uses: actions/checkout@v2
- uses: UziTech/action-setup-atom@v1
with:
channel: ${{ matrix.atom_channel }}
- name: Versions
run: apm -v
- name: Install APM dependencies
run: |
apm ci # uses locked module. use `apm install` for non-locked
- name: Atom Package dependencies
run: |
npm install array-to-txt-file
node -e 'const pkg = require("./package.json"); deps=Array.from(pkg["package-deps"]); const arrayToTxtFile = require("array-to-txt-file"); arrayToTxtFile(deps,"deps.txt", ()=>{});'
cat deps.txt | \
while read dep; do
apm install $dep
done
- name: Run tests 👩🏾‍💻
run: npm run test

Lint:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Commit lint ✨
uses: wagoid/commitlint-github-action@v1
- uses: actions/setup-node@v1
with:
node-version: "14.x"
- name: Install NPM dependencies
run: |
npm ci # uses locked module. use `npm install` for non-locked
- name: Lint ✨
run: npm run lint

Release:
needs: [Test, Lint]
if: github.ref == 'refs/heads/master' &&
github.event.repository.fork == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: UziTech/action-setup-atom@v1
- uses: actions/setup-node@v1
with:
node-version: "14.x"
- name: NPM install
run: npm ci
- name: Build and Commit
run: npm run build-commit
- name: Release 🎉
uses: cycjimmy/semantic-release-action@v2
with:
extends: |
@semantic-release/apm-config
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ATOM_ACCESS_TOKEN: ${{ secrets.ATOM_ACCESS_TOKEN }}
Skip:
if: contains(github.event.head_commit.message, '[skip ci]')
runs-on: ubuntu-latest
steps:
- name: Skip CI 🚫
run: echo skip ci
25 changes: 25 additions & 0 deletions .github/workflows/bump_deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Bump_Dependencies

on:
schedule:
- cron: "0 0 * * *"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: "14"
- run: |
npm ci
npm run bump
npm install
- uses: peter-evans/create-pull-request@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update dependencies
title: "[AUTO] Update dependencies"
labels: Dependencies
branch: "Bump"
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# OS metadata
.DS_Store
npm-debug.log
Thumbs.db

# Node
node_modules

# TypeScript
*.tsbuildinfo

# Build directories
dist
25 changes: 25 additions & 0 deletions .prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Add to .prettierignore to ignore files and folders

// This configuration all the formats including typescript, javascript, json, yaml, markdown
module.exports = {
tabWidth: 2,
printWidth: 120,
semi: false,
singleQuote: false,
overrides: [
{
files: "{*.json}",
options: {
parser: "json",
trailingComma: "es5",
},
},
{
files: "{*.md}",
options: {
parser: "markdown",
proseWrap: "preserve",
},
},
],
};
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
package.json
package-lock.json
coverage
build
dist
lib
4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

60 changes: 0 additions & 60 deletions .travis.yml

This file was deleted.

37 changes: 14 additions & 23 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,74 +1,65 @@
## [1.2.4](https://github.com/atom-ide-community/atom-ide-markdown-service/compare/v1.2.3...v1.2.4) (2020-04-13)


### Bug Fixes

* activation hook to improve the loading time by deferring it ([85172b7](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/85172b7))
- activation hook to improve the loading time by deferring it ([85172b7](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/85172b7))

## [1.2.3](https://github.com/atom-ide-community/atom-ide-markdown-service/compare/v1.2.2...v1.2.3) (2019-06-24)


### Bug Fixes

* upgrade additional build packages ([42e995c](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/42e995c))
- upgrade additional build packages ([42e995c](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/42e995c))

## [1.2.2](https://github.com/atom-ide-community/atom-ide-markdown-service/compare/v1.2.1...v1.2.2) (2019-06-21)


### Bug Fixes

* grammar name handling ([0a9106b](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/0a9106b))
- grammar name handling ([0a9106b](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/0a9106b))

## [1.2.1](https://github.com/atom-ide-community/atom-ide-markdown-service/compare/v1.2.0...v1.2.1) (2019-06-19)


### Bug Fixes

* upgrade packages ([ef5e4c1](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/ef5e4c1))
- upgrade packages ([ef5e4c1](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/ef5e4c1))

# [1.2.0](https://github.com/atom-ide-community/atom-ide-markdown-service/compare/v1.1.2...v1.2.0) (2019-04-18)


### Features

* typing and documentation added ([4e7f229](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/4e7f229))
* use async/await and default grammar if not set on code section ([d01b00e](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/d01b00e))
- typing and documentation added ([4e7f229](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/4e7f229))
- use async/await and default grammar if not set on code section ([d01b00e](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/d01b00e))

## [1.1.2](https://github.com/atom-ide-community/atom-ide-markdown-service/compare/v1.1.1...v1.1.2) (2019-04-08)


### Bug Fixes

* line break at line 80 in code snippets ([859d265](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/859d265))
- line break at line 80 in code snippets ([859d265](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/859d265))

## [1.1.1](https://github.com/atom-ide-community/atom-ide-markdown-service/compare/v1.1.0...v1.1.1) (2019-03-21)


### Bug Fixes

* error handling, removed obsolete token handling ([523576a](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/523576a))
- error handling, removed obsolete token handling ([523576a](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/523576a))

# [1.1.0](https://github.com/atom-ide-community/atom-ide-markdown-service/compare/v1.0.1...v1.1.0) (2019-03-18)


### Features

* add request token to align request with responses ([0788730](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/0788730))
- add request token to align request with responses ([0788730](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/0788730))

## [1.0.1](https://github.com/atom-ide-community/atom-ide-markdown-service/compare/v1.0.0...v1.0.1) (2019-03-18)


### Bug Fixes

* improve promise handling ([ab3d655](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/ab3d655))
- improve promise handling ([ab3d655](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/ab3d655))

# 1.0.0 (2019-03-17)


### Features

* initial release ([f4635dc](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/f4635dc))
- initial release ([f4635dc](https://github.com/atom-ide-community/atom-ide-markdown-service/commit/f4635dc))

## 0.1.0 - First Release
* Every feature added
* Every bug fixed

- Every feature added
- Every bug fixed
20 changes: 10 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,22 @@ The format we follow is:

[optional footer]"

*Type*: Here are the types available and when they should be used:
_Type_: Here are the types available and when they should be used:

| Type | Effect | Used for |
|------|--------|----------|
| fix | Creates a patch release | Bug fixes that don't break the public API |
| feat | Creates a minor release | Features added that don't break the public API |
| BREAKING CHANGE | Creates a major release (this is only used after we reach 1.0) | Features or bug fixes that require breaking changes |
| chore | Does not make a release | Development work that doesn't affect the core package functionality |
| Type | Effect | Used for |
| --------------- | -------------------------------------------------------------- | ------------------------------------------------------------------- |
| fix | Creates a patch release | Bug fixes that don't break the public API |
| feat | Creates a minor release | Features added that don't break the public API |
| BREAKING CHANGE | Creates a major release (this is only used after we reach 1.0) | Features or bug fixes that require breaking changes |
| chore | Does not make a release | Development work that doesn't affect the core package functionality |

Please checkout the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0-beta.3/#summary) to find more types and what they do.

*Message*: can be anything you want. Start with a lower case. Limit the first line (type and message) to 50 chars.
_Message_: can be anything you want. Start with a lower case. Limit the first line (type and message) to 50 chars.

*Description*: try to describe _why_ your change was needed rather than _what_ your change was (we can see that in the code). Wrap lines at 72 chars.
_Description_: try to describe _why_ your change was needed rather than _what_ your change was (we can see that in the code). Wrap lines at 72 chars.

*Footer*: If your bug fix or feature is related to a github issue, this is where you would link it. For example, `Fixes: #1`.
_Footer_: If your bug fix or feature is related to a github issue, this is where you would link it. For example, `Fixes: #1`.

### More Info

Expand Down
Loading