Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
* develop:
  Add missing deps
  Update screenshot, readme and add code of conduct
  Render used octicons when needed
  Fix unrendered octicon from being skipped and cached
  Cleanup, compress and add sourcemaps
  Update package.json and gulp tasks
  Switch to Hugo, clean-up code and improve icon handling
  Fix icon handling
  Switch to alfy and es2017 with babel
  • Loading branch information
mdeboer committed Apr 20, 2017
2 parents b4d79bd + 65c5246 commit 47fa94d
Show file tree
Hide file tree
Showing 205 changed files with 838 additions and 552 deletions.
19 changes: 19 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"comments": false,
"compact": true,
"plugins": [
"transform-class-properties",
"transform-runtime"
],
"presets": [
"flow",
[
"env",
{
"targets": {
"node": 4
}
}
]
]
}
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
root = true

[*]
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{json,yml}]
indent_style = space
indent_size = 2

[.*rc]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
21 changes: 21 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parser": "babel-eslint",
"extends": "xo",
"env": {
"node": true
},
"rules": {
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"flowtype-errors/show-errors": 2,
"no-prototype-builtins": "off"
},
"plugins": [
"flowtype-errors"
]
}
7 changes: 7 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[ignore]

[include]

[libs]

[options]
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/*.js -diff
*.js.map -diff
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules/
coverage/
icons/
npm-debug.log
75 changes: 75 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [info@cloudstek.nl][abusemail]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
[abusemail]: mailto:info@cloudstek.nl
18 changes: 18 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Copyright (c) 2017, Cloudstek All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 changes: 22 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,32 @@

Simple workflow that allows you to browse and open [Atom](https://atom.io/) projects.

* [Requirements](#requirements)
* [Installation](#installation)
* [Usage](#usage)

## Requirements

* [NodeJS](https://nodejs.org/)
* [NodeJS](https://nodejs.org)
* [Atom Project Manager package](https://atom.io/packages/project-manager)
* [Alfred Powerpack](https://www.alfredapp.com/powerpack)

## Installation

### NPM

This workflow can be installed with NPM, as an added bonus you'll get a notification when an update is available!

```shell
npm install -g alfred-atom
```

### Packal / GitHub

Download the latest `Atom.alfredworkflow` from [Packal](http://www.packal.org/workflow/atom) or [GitHub](https://github.com/Cloudstek/alfred-atom/releases) and import it in Alfred.

## Usage

Simply type <kbd>atom</kbd> followed by space to list all projects. Optionally type a search string to filter results.
Simply type `atom` followed by space to list all projects. Optionally type a search string to filter results.

![alfred-atom](doc/screenshot.png)
![alfred-atom](screenshot.png)
Binary file removed doc/screenshot.png
Binary file not shown.
32 changes: 32 additions & 0 deletions gulp/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
'use strict';
const gulp = require('gulp');
const util = require('gulp-util');

module.exports = tasks => {
tasks.forEach(name => {
const task = require('./tasks/' + name);

// Task function only
if (typeof task === 'function') {
gulp.task(name, task);
return;
}

// Task dependencies or task function and dependencies
if (task instanceof Array && task.length > 0) {
// Task function with dependencies
if (task.length >= 2 && task[0] instanceof Array && typeof task[task.length - 1] === 'function') {
gulp.task(name, task[0], task[task.length - 1]);
return;
}

// Task dependencies only
gulp.task(name, task);
return;
}

util.log(util.colors.cyan('Task ' + name + ' is not a valid task, please fix!'));
});

return gulp;
};
22 changes: 22 additions & 0 deletions gulp/tasks/babel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
'use strict';
const fs = require('fs');
const gulp = require('gulp');
const babel = require('gulp-babel');
const rename = require('gulp-rename');
const sourcemaps = require('gulp-sourcemaps');

let task = () => {
let babelrc = JSON.parse(fs.readFileSync('.babelrc', 'utf8') || '{}');

return gulp.src(['./**/*.js.flow', '!node_modules', '!node_modules/**'])
.pipe(sourcemaps.init())
.pipe(babel(babelrc))
.pipe(rename(path => {
// Fix file extension for double ext files (.js.flow)
path.extname = path.basename.endsWith('.js') ? '' : '.js';
}))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('.'));
};

module.exports = [['eslint'], task];
12 changes: 12 additions & 0 deletions gulp/tasks/eslint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
'use strict';
const gulp = require('gulp');
const eslint = require('gulp-eslint');

let task = () => {
return gulp.src(['./**/*.js.flow', './tests/*.js', '!node_modules', '!node_modules/**'])
.pipe(eslint())
.pipe(eslint.format('node_modules/eslint-formatter-pretty'))
.pipe(eslint.failAfterError());
};

module.exports = task;
8 changes: 8 additions & 0 deletions gulp/tasks/watch.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';
const gulp = require('gulp');

let task = done => {
gulp.watch(['./**/*.js.flow', '!node_modules', '!node_modules/**'], ['babel']);
};

module.exports = [['default'], task];
9 changes: 9 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const gulp = require('./gulp')([
'babel',
'eslint',
'watch'
]);

gulp.task('default', [
'babel'
]);
2 changes: 2 additions & 0 deletions icons.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 47fa94d

Please sign in to comment.