Skip to content

Commit 81a3265

Browse files
committed
Initial commit from the template
0 parents  commit 81a3265

8 files changed

Lines changed: 211 additions & 0 deletions

File tree

.eslintrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "eslint-config-atomic",
3+
"ignorePatterns": ["dist/", "node_modules/", "spec/fixtures", "examples", "lib/grammars/*.coffee"]
4+
}

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
* text=auto
2+
3+
# don't diff machine generated files
4+
dist/ -diff
5+
package-lock.json -diff

.github/workflows/CI.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: CI
2+
on:
3+
- push
4+
- pull_request
5+
6+
defaults:
7+
run:
8+
shell: bash
9+
10+
jobs:
11+
Test:
12+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
13+
name: ${{ matrix.os }} - Atom ${{ matrix.atom_channel }}
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os:
19+
- ubuntu-latest
20+
# - macos-latest
21+
# - windows-latest
22+
atom_channel: [stable, beta]
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: UziTech/action-setup-atom@v1
26+
with:
27+
channel: ${{ matrix.atom_channel }}
28+
- name: Versions
29+
run: apm -v
30+
- name: Install APM dependencies
31+
run: |
32+
apm install
33+
34+
# Lint:
35+
# if: "!contains(github.event.head_commit.message, '[skip ci]')"
36+
# runs-on: ubuntu-latest
37+
# env:
38+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
# steps:
40+
# - uses: actions/checkout@v2
41+
# with:
42+
# fetch-depth: 0
43+
# - name: Commit lint ✨
44+
# uses: wagoid/commitlint-github-action@v2
45+
#
46+
# - uses: UziTech/action-setup-atom@v1
47+
# - name: Setup PNPM
48+
# uses: pnpm/action-setup@v1.2.1
49+
# with:
50+
# version: latest
51+
#
52+
# - name: Install dependencies
53+
# run: pnpm install
54+
#
55+
# - name: Format ✨
56+
# run: pnpm test.format
57+
#
58+
# - name: Lint ✨
59+
# run: pnpm test.lint
60+
61+
Release:
62+
needs: [Test]
63+
if: github.ref == 'refs/heads/master' &&
64+
github.event.repository.fork == false
65+
runs-on: ubuntu-latest
66+
steps:
67+
- uses: actions/checkout@v2
68+
- uses: UziTech/action-setup-atom@v1
69+
- uses: actions/setup-node@v1
70+
with:
71+
node-version: "14.x"
72+
- name: NPM install
73+
run: npm install
74+
75+
# https://github.com/semantic-release/semantic-release/issues/1636
76+
# - name: Release 🎉
77+
# uses: cycjimmy/semantic-release-action@v2
78+
# env:
79+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
80+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
81+
Skip:
82+
if: contains(github.event.head_commit.message, '[skip ci]')
83+
runs-on: ubuntu-latest
84+
steps:
85+
- name: Skip CI 🚫
86+
run: echo skip ci

.github/workflows/bump_deps.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Bump_Dependencies
2+
3+
on:
4+
schedule:
5+
- cron: "5 8 * * Sun" # 8:05 every Sunday
6+
7+
jobs:
8+
Bump_Dependencies:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
node-version: "12"
15+
- name: Setup PNPM
16+
uses: pnpm/action-setup@master
17+
with:
18+
version: latest
19+
20+
- name: setup npm-check-updates
21+
run: pnpm install -g npm-check-updates
22+
23+
- run: |
24+
ncu -u --dep prod
25+
pnpm install
26+
27+
- uses: tibdex/github-app-token@v1
28+
id: generate-token
29+
with:
30+
app_id: ${{ secrets.APP_ID }}
31+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
32+
- uses: peter-evans/create-pull-request@v3
33+
with:
34+
token: ${{ steps.generate-token.outputs.token }}
35+
commit-message: "fix: update Dependencies"
36+
title: "fix: update Dependencies"
37+
labels: Dependencies
38+
branch: "Bump_Dependencies"
39+
40+
Bump_devDependencies:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v2
44+
- uses: actions/setup-node@v2
45+
with:
46+
node-version: "12"
47+
- name: Setup PNPM
48+
uses: pnpm/action-setup@master
49+
with:
50+
version: latest
51+
52+
- name: setup npm-check-updates
53+
run: pnpm install -g npm-check-updates
54+
55+
- run: |
56+
ncu -u --dep dev
57+
pnpm install
58+
59+
- uses: tibdex/github-app-token@v1
60+
id: generate-token
61+
with:
62+
app_id: ${{ secrets.APP_ID }}
63+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
64+
- uses: peter-evans/create-pull-request@v3
65+
with:
66+
token: ${{ steps.generate-token.outputs.token }}
67+
commit-message: "chore: update devDependencies"
68+
title: "chore: update devDependencies"
69+
labels: Dependencies
70+
branch: "Bump_devDependencies"

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# OS metadata
2+
.DS_Store
3+
Thumbs.db
4+
5+
# Node
6+
node_modules
7+
package-lock.json
8+
9+
# TypeScript
10+
*.tsbuildinfo
11+
12+
# Build directories
13+
dist

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
public-hoist-pattern[]=*
2+
package-lock=false
3+
lockfile=true
4+
prefer-frozen-lockfile=false

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules
2+
package.json
3+
package-lock.json
4+
pnpm-lock.yaml
5+
changelog.md
6+
coverage
7+
build
8+
dist

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2020 Amin Yahyaabadi
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)