Skip to content

Commit bf9f7ea

Browse files
committed
Initial commit
0 parents  commit bf9f7ea

18 files changed

+10877
-0
lines changed

.eslintrc.json

+4
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

+5
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

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
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 ci # uses locked module. use `apm install` for non-locked
33+
- name: Atom Package dependencies
34+
run: |
35+
npm install array-to-txt-file
36+
node -e 'const pkg = require("./package.json"); deps=Array.from(pkg["package-deps"]); const arrayToTxtFile = require("array-to-txt-file"); arrayToTxtFile(deps,"deps.txt", ()=>{});'
37+
cat deps.txt | \
38+
while read dep; do
39+
apm install $dep
40+
done
41+
- name: Run tests 👩🏾‍💻
42+
run: npm run test
43+
44+
Lint:
45+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v2
49+
with:
50+
fetch-depth: 0
51+
- name: Commit lint ✨
52+
uses: wagoid/commitlint-github-action@v1
53+
- uses: actions/setup-node@v1
54+
with:
55+
node-version: "14.x"
56+
- name: Install NPM dependencies
57+
run: |
58+
npm ci # uses locked module. use `npm install` for non-locked
59+
- name: Lint ✨
60+
run: npm run lint
61+
62+
Release:
63+
needs: [Test, Lint]
64+
if: github.ref == 'refs/heads/master' &&
65+
github.event.repository.fork == false
66+
runs-on: ubuntu-latest
67+
steps:
68+
- uses: actions/checkout@v2
69+
- uses: UziTech/action-setup-atom@v1
70+
- uses: actions/setup-node@v1
71+
with:
72+
node-version: "14.x"
73+
- name: NPM install
74+
run: npm ci
75+
- name: Build and Commit
76+
run: npm run build-commit
77+
- name: Release 🎉
78+
uses: cycjimmy/semantic-release-action@v2
79+
with:
80+
extends: |
81+
@semantic-release/apm-config
82+
env:
83+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
84+
ATOM_ACCESS_TOKEN: ${{ secrets.ATOM_ACCESS_TOKEN }}
85+
Skip:
86+
if: contains(github.event.head_commit.message, '[skip ci]')
87+
runs-on: ubuntu-latest
88+
steps:
89+
- name: Skip CI 🚫
90+
run: echo skip ci

.github/workflows/bump_deps.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Bump_Dependencies
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2-beta
13+
with:
14+
node-version: '14'
15+
- run: |
16+
npm ci
17+
npm run bump
18+
npm install
19+
- uses: peter-evans/create-pull-request@v2
20+
with:
21+
token: ${{ secrets.GITHUB_TOKEN }}
22+
commit-message: Update dependencies
23+
title: "[AUTO] Update dependencies"
24+
labels: Dependencies
25+
branch: "Bump"

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# OS metadata
2+
.DS_Store
3+
Thumbs.db
4+
5+
# Node
6+
node_modules
7+
8+
# TypeScript
9+
*.tsbuildinfo
10+
11+
# Build directories
12+
dist

.prettier.config.js

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Add to .prettierignore to ignore files and folders
2+
3+
// This configuration all the formats including typescript, javascript, json, yaml, markdown
4+
module.exports = {
5+
tabWidth: 2,
6+
printWidth: 120,
7+
semi: false,
8+
singleQuote: false,
9+
overrides: [
10+
{
11+
files: "{*.json}",
12+
options: {
13+
parser: "json",
14+
trailingComma: "es5",
15+
},
16+
},
17+
{
18+
files: "{*.md}",
19+
options: {
20+
parser: "markdown",
21+
proseWrap: "preserve",
22+
},
23+
},
24+
],
25+
};

.prettierignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
package.json
3+
package-lock.json
4+
coverage
5+
build
6+
dist
7+
lib

LICENSE.txt

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2020 <Your Name>
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 might include 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.

README.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# atom-ide-template-js
2+
3+
This is a template for atom-ide-community packages using JavaScript. It is recommended to use [the TypeScript template](https://github.com/atom-ide-community/atom-ide-template) instead.
4+
5+
Use `Ctrl+Shift+F` and replace `atom-ide-template-js` with `atom-ide-packagename`. Then put your name in the license section and author section.
6+
7+
![Build Status (Github Actions)](https://github.com/atom-ide-community/atom-ide-template-js/workflows/CI/badge.svg)
8+
[![Dependency Status](https://david-dm.org/atom-ide-community/atom-ide-template-js.svg)](https://david-dm.org/atom-ide-community/atom-ide-template-js)
9+
[![apm](https://img.shields.io/apm/dm/atom-ide-template-js.svg)](https://github.com/atom-ide-community/atom-ide-template-js)
10+
[![apm](https://img.shields.io/apm/v/atom-ide-template-js.svg)](https://github.com/atom-ide-community/atom-ide-template-js)
11+
12+
## Features
13+
14+
-
15+
16+
## Usage
17+
18+
## Roadmap
19+
20+
## Contributing
21+
22+
- Let me know if you encounter any bugs.
23+
- Feature requests are always welcome.

babel.config.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
let presets = ["babel-preset-atomic"];
2+
3+
let plugins = [];
4+
5+
module.exports = {
6+
presets: presets,
7+
plugins: plugins,
8+
exclude: "node_modules/**",
9+
sourceMap: "inline",
10+
};

0 commit comments

Comments
 (0)