Skip to content

Commit e5a744d

Browse files
authored
Merge pull request #2 from atom-community/run
2 parents b7e9b7b + 47ca54b commit e5a744d

24 files changed

+8138
-856
lines changed

.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/"]
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: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
Test:
10+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
11+
name: ${{ matrix.os }} - Atom ${{ matrix.atom_channel }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os:
17+
- ubuntu-latest
18+
- macos-latest
19+
- windows-latest
20+
atom_channel: [stable, beta]
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: atom-community/action-setup-atom@v1
24+
with:
25+
channel: ${{ matrix.atom_channel }}
26+
27+
- name: Install dependencies
28+
run: |
29+
apm install
30+
31+
- name: Run tests 👩🏾‍💻
32+
run: npm run test
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+
- name: Install dependencies
47+
run: npm install
48+
49+
# - name: Format ✨
50+
# run: npm run test.format
51+
52+
- name: Lint ✨
53+
run: npm run test.lint
54+
55+
Release:
56+
needs: [Test, Lint]
57+
if: github.ref == 'refs/heads/master' &&
58+
github.event.repository.fork == false
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: actions/checkout@v2
62+
- uses: atom-community/action-setup-atom@v1
63+
- uses: actions/setup-node@v2
64+
with:
65+
node-version: "12.x"
66+
- name: NPM install
67+
run: npm install
68+
- name: Build and Commit
69+
run: npm run build-commit
70+
# NOTE: uncomment when ready
71+
# - name: Release 🎉
72+
# uses: cycjimmy/semantic-release-action@v2
73+
# with:
74+
# extends: |
75+
# @semantic-release/apm-config
76+
# env:
77+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78+
# ATOM_ACCESS_TOKEN: ${{ secrets.ATOM_ACCESS_TOKEN }}
79+
80+
Skip:
81+
if: contains(github.event.head_commit.message, '[skip ci]')
82+
runs-on: ubuntu-latest
83+
steps:
84+
- name: Skip CI 🚫
85+
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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
pnpm-lock.yaml
3+
package-lock.json
4+
CHANGELOG.md
5+
dist

LICENSE.txt

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2020 atom-ide-community
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.
22+
23+
This repository includes code from the following projects, which have their own licenses:
24+
- [atom-ide-ui](https://github.com/facebookarchive/atom-ide-ui/blob/master/LICENSE):
25+
> BSD License
26+
>
27+
> For atom-ide-ui software
28+
>
29+
> Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
30+
>
31+
> Redistribution and use in source and binary forms, with or without modification,
32+
> are permitted provided that the following conditions are met:
33+
>
34+
> * Redistributions of source code must retain the above copyright notice, this
35+
> list of conditions and the following disclaimer.
36+
>
37+
> * Redistributions in binary form must reproduce the above copyright notice,
38+
> this list of conditions and the following disclaimer in the documentation
39+
> and/or other materials provided with the distribution.
40+
>
41+
> * Neither the name Facebook nor the names of its contributors may be used to
42+
> endorse or promote products derived from this software without specific
43+
> prior written permission.
44+
>
45+
> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
46+
> ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
47+
> WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
48+
> DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
49+
> ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
50+
> (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
51+
> LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
52+
> ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
53+
> (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
54+
> SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55+
56+
> -----------------------------------------------
57+
> Additional Grant of Patent Rights Version 2
58+
59+
> "Software" means the atom-ide-ui software contributed by Facebook, Inc.
60+
61+
> Facebook, Inc. ("Facebook") hereby grants to each recipient of the Software
62+
> ("you") a perpetual, worldwide, royalty-free, non-exclusive, irrevocable
63+
> (subject to the termination provision below) license under any Necessary
64+
> Claims, to make, have made, use, sell, offer to sell, import, and otherwise
65+
> transfer the Software. For avoidance of doubt, no license is granted under
66+
> Facebook’s rights in any patent claims that are infringed by (i) modifications
67+
> to the Software made by you or any third party or (ii) the Software in
68+
> combination with any software or other technology.
69+
70+
> The license granted hereunder will terminate, automatically and without notice,
71+
> if you (or any of your subsidiaries, corporate affiliates or agents) initiate
72+
> directly or indirectly, or take a direct financial interest in, any Patent
73+
> Assertion: (i) against Facebook or any of its subsidiaries or corporate
74+
> affiliates, (ii) against any party if such Patent Assertion arises in whole or
75+
> in part from any software, technology, product or service of Facebook or any of
76+
> its subsidiaries or corporate affiliates, or (iii) against any party relating
77+
> to the Software. Notwithstanding the foregoing, if Facebook or any of its
78+
> subsidiaries or corporate affiliates files a lawsuit alleging patent
79+
> infringement against you in the first instance, and you respond by filing a
80+
> patent infringement counterclaim in that lawsuit against that party that is
81+
> unrelated to the Software, the license granted hereunder will not terminate
82+
> under section (i) of this paragraph due to such counterclaim.
83+
84+
> A "Necessary Claim" is a claim of a patent owned by Facebook that is
85+
> necessarily infringed by the Software standing alone.
86+
87+
> A "Patent Assertion" is any lawsuit or other action alleging direct, indirect,
88+
> or contributory infringement or inducement to infringe any patent, including a
89+
> cross-claim or counterclaim.

0 commit comments

Comments
 (0)