Skip to content

Commit

Permalink
Merge pull request #77 from zeplin/improvements
Browse files Browse the repository at this point in the history
- Added connect delete command
- Added connect initialization command
- Added connect add-components command
- Use cosmicconfig, Fixes #35
- Implemented OAuth authentication through browser
- Added --ci flag to enforce CI behaviour
- Invoking the global executable will invoke the local installation if exists
  • Loading branch information
yuqu authored Jan 21, 2021
2 parents 4473526 + a5163b1 commit 2d6562d
Show file tree
Hide file tree
Showing 108 changed files with 6,539 additions and 704 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
defaults: &defaults
working_directory: ~/repo
docker:
- image: circleci/node:10.18.0
- image: circleci/node:15

jobs:
build_and_test:
Expand Down
21 changes: 20 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,27 @@ module.exports = {
"no-sync": "off",
"no-process-exit": "off",
"no-process-env": "off",
"no-undefined": "off",
"@typescript-eslint/no-explicit-any": ["error", { "ignoreRestArgs": true }],
"@typescript-eslint/camelcase": ["error", { "properties": "never", "ignoreDestructuring": true }],
"class-methods-use-this": "off"
}
},
overrides: [
{
files: [
"test/**/*"
],
rules: {
"no-magic-numbers": "off"
}
},
{
files: [
"src/tasks/**/*"
],
rules: {
"require-atomic-updates": "off"
}
}
]
}
10 changes: 0 additions & 10 deletions .npmignore

This file was deleted.

10 changes: 10 additions & 0 deletions bin/cli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env node
/* eslint-disable @typescript-eslint/no-var-requires */
const debug = require("debug")("@zeplin/cli");
const importLocal = require("import-local");

if (importLocal(__filename)) {
debug("Using local install of @zeplin/cli");
} else {
require("../dist/src/cli");
}
Loading

0 comments on commit 2d6562d

Please sign in to comment.