tidev / liveview

Titanium LiveTi (live preview of Titanium applications on device)
Other
7 stars 3 forks source link

Modernize build/lint/tooling #195

Closed sgtcoolguy closed 4 years ago

sgtcoolguy commented 4 years ago
build commented 4 years ago
Warnings
:warning: **lib/fserver.js#L193** - lib/fserver.js line 193 – 'url.parse' was deprecated since v11.0.0. Use 'url.URL' constructor instead. (node/no-deprecated-api)
:warning: **lib/fserver.js#L244** - lib/fserver.js line 244 – Missing JSDoc @returns for function. (valid-jsdoc)
:warning: **lib/platform/events.js#L12** - lib/platform/events.js line 12 – Import and export declarations are not supported yet. (node/no-unsupported-features/es-syntax)
:warning: **lib/platform/main.js#L5** - lib/platform/main.js line 5 – Import and export declarations are not supported yet. (node/no-unsupported-features/es-syntax)
:warning: **lib/platform/process.js#L1** - lib/platform/process.js line 1 – Import and export declarations are not supported yet. (node/no-unsupported-features/es-syntax)
:warning: **lib/platform/process.js#L8** - lib/platform/process.js line 8 – Import and export declarations are not supported yet. (node/no-unsupported-features/es-syntax)
:warning: **lib/platform/require.js#L1** - lib/platform/require.js line 1 – Import and export declarations are not supported yet. (node/no-unsupported-features/es-syntax)
:warning: **lib/platform/require.js#L9** - lib/platform/require.js line 9 – Import and export declarations are not supported yet. (node/no-unsupported-features/es-syntax)
:warning: **lib/platform/socket.js#L1** - lib/platform/socket.js line 1 – Import and export declarations are not supported yet. (node/no-unsupported-features/es-syntax)
Messages
:book: :white_check_mark: All tests are passing Nice one! All 4 tests are passing.

New dependencies added: @commitlint/cli, @commitlint/config-conventional, @seadub/danger-plugin-dependencies, @seadub/danger-plugin-eslint, @seadub/danger-plugin-junit, danger, eslint, eslint-config-axway, eslint-plugin-mocha, husky, lint-staged, nyc and rollup.

@seadub/danger-plugin-dependencies

Author: Chris Williams

Description: Provides dependency information on dependency changes in a PR

Homepage: https://github.com/sgtcoolguy/danger-plugin-dependencies#readme

Createdalmost 2 years ago
Last Updated15 days ago
LicenseMIT
Maintainers1
Releases3
Direct Dependenciesdate-fns, lodash.flatten, lodash.includes, node-fetch and semver
Keywordsdanger, danger-plugin, npm, yarn and dependencies
README
# danger-plugin-dependencies [![npm version](https://badge.fury.io/js/@seadub/danger-plugin-dependencies.svg)](https://badge.fury.io/js/@seadub/danger-plugin-dependencies) > Provides dependency information on dependency changes in a PR ## Usage Install: ```sh npm install @seadub/danger-plugin-dependencies --save-dev # or yarn add @seadub/danger-plugin-dependencies --dev ``` At a glance: ```js // dangerfile.js import dependencies from '@seadub/danger-plugin-dependencies' schedule(dependencies()) ``` Provides 4 separate rules: * `checkForRelease` - Provides a 🎉 when there's a package version bump. * `checkForNewDependencies` (async) - Provides npmjs.com (and `yarn why`, when type is `"yarn"`) metadata about new dependencies. * `checkForLockfileDiff` - Will warn you when there are `dependencies` or `devDependencies` changes without a `package-lock.json` or `yarn.lock` change. * `checkForTypesInDeps` - Will fail the build if you add any `@types/[x]` to `dependencies` instead of `devDependencies`. And exports a default function to handle all of them at once. Note: async functions like the default one [have be to](http://danger.systems/js/guides/the_dangerfile.html#async) `schedule`'d by Danger. ## `yarn` vs `npm` usage By default, the `dependencies` method will attempt to determine if you are using `npm` or `yarn` to manage your dependencies based on sniffing for the lockfiles on disk. If no lockfiles exist, or running on Peril it will fail without an explicitly stated manasger type in the options. You may explicitly pass one in the options: ```js // dangerfile.js import dependencies from '@seadub/danger-plugin-dependencies' schedule(dependencies({ type: "npm" })) // or for yarn schedule(dependencies({ type: "yarn" })) ``` ## Private packages If you want the plugin to find your private packages on npm, you need to provide an npm [authentication token](https://docs.npmjs.com/getting-started/working_with_tokens): ```js // dangerfile.js import dependencies from 'danger-plugin-dependencies' schedule(dependencies({ npmAuthToken: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' })) ``` ## Changelog See the GitHub [release history](https://github.com/sgtcoolguy/danger-plugin-dependencies/releases). ## Contributing See [CONTRIBUTING.md](contributing.md). ## What does this look like? The rest of this README is the contents of what it looks like when you add this plugin to your Dangerfile: ---
Warnings
:warning: New dependencies added: danger-plugin-yarn.

danger-plugin-yarn

Author: Orta Therox

Description: Provides dependency information on dependency changes in a PR

Homepage: https://github.com/orta/danger-plugin-yarn#readme

Created24 days ago
Last Updated3 minutes ago
LicenseMIT
Maintainers1
Releases14
Direct Dependenciesdate-fns, lodash.flatten, lodash.includes, node-fetch and esdoc
Keywordsdanger, danger-plugin and yarn
README # danger-plugin-yarn [![Build Status](https://travis-ci.org/orta/danger-plugin-yarn.svg?branch=master)](https://travis-ci.org/orta/danger-plugin-yarn) [![npm version](https://badge.fury.io/js/danger-plugin-yarn.svg)](https://badge.fury.io/js/danger-plugin-yarn) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) > Provides dependency information on dependency changes in a PR ## Usage Install: ```sh yarn add danger-plugin-yarn --dev ``` At a glance: ```js // dangerfile.js import yarn from 'danger-plugin-yarn' schedule(yarn()) ``` Provides 4 separate rules: * `checkForRelease` - Provides a 🎉 when there's a package version bump. * `checkForNewDependencies` (async) - Provides npmjs.com and `yarn why` metadata about new dependencies. * `checkForLockfileDiff` - Will warn you when there are `dependencies` or `devDependencies` changes without a `yarn.lock` change. * `checkForTypesInDeps` - Will fail the build if you add any `@types/[x]` to `dependencies` instead of `devDependencies`. And exports a default function to handle all of them at once. Note: async functions like the default one [have be to](http://danger.systems/js/guides/the_dangerfile.html#async) `schedule`'d by Danger. ## Changelog See the GitHub [release history](https://github.com/orta/danger-plugin-yarn/releases). ## Contributing See [CONTRIBUTING.md](contributing.md).
yarn why danger-plugin-yarn output

  • Has been hoisted to "danger-plugin-yarn"
  • This module exists because it's specified in "devDependencies".
  • Disk size without dependencies: "80kB"
  • Disk size with unique dependencies: "3.98MB"
  • Disk size with transitive dependencies: "4.43MB"
  • Number of shared dependencies: 7

Generated by :no_entry_sign: dangerJS

@seadub/danger-plugin-eslint

Author: Chris Williams

Description: Eslint your code with Danger

Homepage: https://github.com/sgtcoolguy/danger-plugin-eslint#readme

Createdalmost 2 years ago
Last Updated3 months ago
LicenseMIT
Maintainers1
Releases5
Direct Dependencies
Keywordsdanger, danger-plugin and eslint
README
# danger-plugin-eslint [![Build Status](https://travis-ci.org/danpalmer/danger-plugin-eslint.svg?branch=master)](https://travis-ci.org/danpalmer/danger-plugin-eslint) [![npm version](https://badge.fury.io/js/danger-plugin-eslint.svg)](https://badge.fury.io/js/danger-plugin-eslint) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) > Eslint your code with Danger ## Usage Install: ```sh yarn add danger-plugin-eslint --dev ``` At a glance: ```js // dangerfile.js import eslint from 'danger-plugin-eslint' eslint() ``` ## Changelog See the GitHub [release history](https://github.com/danpalmer/danger-plugin-eslint/releases). ## Contributing See [CONTRIBUTING.md](CONTRIBUTING.md).

@seadub/danger-plugin-junit

Author: Christopher Williams

Description: Add your Junit XML test failures to Danger

Homepage: https://github.com/sgtcoolguy/danger-plugin-junit#readme

Createdalmost 2 years ago
Last Updated3 months ago
LicenseMIT
Maintainers1
Releases6
Direct Dependenciesfs-extra, glob and xmldom
Keywordsdanger, danger-plugin and junit
README
# danger-plugin-junit [![Build Status](https://travis-ci.org/sgtcoolguy/danger-plugin-junit.svg?branch=master)](https://travis-ci.org/sgtcoolguy/danger-plugin-junit) [![npm version](https://badge.fury.io/js/danger-plugin-junit.svg)](https://badge.fury.io/js/danger-plugin-junit) > Add your Junit XML test failures to Danger ## Usage Install: ```sh npm install danger-plugin-junit --save-dev # or yarn add danger-plugin-junit --dev ``` At a glance: ```js // dangerfile.js import junit from 'danger-plugin-junit' async function main() { await junit({ pathToReport: './build/reports/**/TESTS*.xml' }) } main() .then(() => process.exit(0)) .catch(err => { fail(err.toString()); process.exit(1); }); ``` The default `pathToReport` value is `'./build/reports/**/TESTS*.xml'` The value is a [glob](https://www.npmjs.com/package/glob) string to gather up test result files. This plugin will only report test failures and errors. If any tests fail, it will report a single `fail()` message and record a table of the failed tests using `markdown()`. An example of what is produced is below: ![](junit_results.png) ## Changelog See the GitHub [release history](https://github.com/sgtcoolguy/danger-plugin-junit/releases). ## Contributing See [CONTRIBUTING.md](CONTRIBUTING.md).

danger

Author: Orta Therox

Description: Unit tests for Team Culture

Homepage: https://github.com/danger/danger-js#readme

Createdover 4 years ago
Last Updated20 days ago
LicenseMIT
Maintainers3
Releases277
Direct Dependencies@babel/polyfill, @octokit/rest, async-retry, chalk, commander, debug, fast-json-patch, get-stdin, gitlab, http-proxy-agent, https-proxy-agent, hyperlinker, json5, jsonpointer, jsonwebtoken, lodash.find, lodash.includes, lodash.isobject, lodash.keys, lodash.mapvalues, lodash.memoize, memfs-or-file-map-to-github-branch, micromatch, node-cleanup, node-fetch, override-require, p-limit, parse-diff, parse-git-config, parse-github-url, parse-link-header, pinpoint, prettyjson, readline-sync, require-from-string and supports-hyperlinks
Keywordsdanger and ci
README


Formalize your Pull Request etiquette.

What is Danger JS?VisionHelping OutPlugin Development

## What is Danger JS? Danger runs after your CI, automating your team's conventions surrounding code review. This provides another logical step in your process, through which Danger can help lint your rote tasks in daily code review. You can use Danger to codify your team's norms, leaving humans to think about harder problems. Danger JS works with GitHub, BitBucket Server, BitBucket Cloud for code review, then with: Travis CI, GitLab CI, Semaphore, Circle CI, GitHub Actions, Jenkins, Docker Cloud, Bamboo, Bitrise, surf-build, Codeship, Drone, Buildkite, Nevercode, buddybuild, Buddy.works, TeamCity, Visual Studio Team Services, Screwdriver, Concourse, Netlify, CodeBuild, Codefresh, AppCenter, BitBucket Pipelines, or Cirrus CI. [![npm](https://img.shields.io/npm/v/danger.svg)](https://www.npmjs.com/package/danger) [![Build Status](https://travis-ci.org/danger/danger-js.svg?branch=master)](https://travis-ci.org/danger/danger-js) [![Build Status](https://ci.appveyor.com/api/projects/status/ep5hgeox3lbc5c7f?svg=true)](https://ci.appveyor.com/project/orta/danger-js/branch/master) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/danger) ## For example? You can: - Enforce CHANGELOGs - Enforce links to Trello/JIRA in PR/MR bodies - Enforce using descriptive labels - Look out for common anti-patterns - Highlight interesting build artifacts - Give warnings when specific files change Danger provides the glue to let _you_ build out the rules specific to your team's culture, offering useful metadata and a comprehensive plugin system to share common issues. ## Getting Started Alright. So, actually, you may be in the wrong place. From here on in, this README is going to be for people who are interested in working on and improving on Danger JS. We keep all of the end-user documentation at . Some quick links to get you started: - [Getting Started](http://danger.systems/js/guides/getting_started.html) - [Guides Index](http://danger.systems/js/guides.html) - [DSL Reference](http://danger.systems/js/reference.html) ## This thing is broken, I should help improve it! Awesommmmee. Everything you need is down below. You can also refer to [CONTRIBUTING](CONTRIBUTING.md) file where you'll find the same information listed below. ```sh git clone https://github.com/danger/danger-js.git cd danger-js # if you don't have yarn installed npm install -g yarn yarn install ``` You can then verify your install by running the tests, and the linters: ```sh yarn test yarn lint ``` The fixers for both tslint and prettier will be applied when you commit, and on a push your code will be verified that it compiles. You can run your dev copy of danger against a PR by running: ```sh yarn build; node --inspect distribution/commands/danger-pr.js https://github.com/danger/danger-js/pull/817 ``` ### How does Danger JS work? Check the [architecture doc](https://github.com/danger/danger-js/blob/master/docs/architecture.md). ### What is the TODO? Check the issues, I try and keep my short term perspective there. Long term is in the [VISION.md](VISION.md). ### Releasing a new version of Danger Following [this commit](https://github.com/danger/danger-js/commit/a26ac3b3bd4f002acd37f6a363c8e74c9d5039ab) as a model: - Checkout the `master` branch. Ensure your working tree is clean, and make sure you have the latest changes by running `git pull`. - Publish - `npm run release -- [major/patch/minor] --ci`. :ship: ## License, Contributor's Guidelines and Code of Conduct We try to keep as much discussion as possible in GitHub issues, but also have a pretty inactive Slack --- if you'd like an invite, ping [@Orta](https://twitter.com/orta/) a DM on Twitter with your email. It's mostly interesting if you want to stay on top of Danger without all the emails from GitHub. > This project is open source under the MIT license, which means you have full access to the source code and can modify > it to fit your own needs. > > This project subscribes to the [Moya Contributors Guidelines](https://github.com/Moya/contributors) which TLDR: means > we give out push access easily and often. > > Contributors subscribe to the [Contributor Code of Conduct](http://contributor-covenant.org/version/1/3/0/) based on > the [Contributor Covenant](http://contributor-covenant.org) version 1.3.0. [emiss]: https://github.com/artsy/emission/blob/master/dangerfile.ts [danger-js]: https://github.com/danger/danger-js/blob/master/dangerfile.ts [meta]: https://github.com/artsy/metaphysics/blob/master/dangerfile.js [fbj]: https://github.com/facebook/jest/blob/master/dangerfile.js [sc]: https://github.com/styled-components/styled-components/blob/master/dangerfile.js [rxjs]: https://github.com/ReactiveX/rxjs/blob/master/dangerfile.js [setup]: http://danger.systems/guides/getting_started.html#creating-a-bot-account-for-danger-to-use [jest]: https://github.com/facebook/jest

@commitlint/config-conventional

Author: Mario Nebl

Description: Shareable commitlint config enforcing conventional commits

Homepage: https://github.com/conventional-changelog/commitlint#readme

Createdalmost 3 years ago
Last Updatedabout 1 month ago
LicenseMIT
Maintainers4
Releases34
Direct Dependenciesconventional-changelog-conventionalcommits
Keywordsconventional-changelog, commitlint, commitlint-config and angular

eslint-config-axway

Author: Axway, Inc.

Description: Shareable eslint config for Axway projects

Homepage: https://github.com/appcelerator/eslint-config-axway#readme

Createdover 3 years ago
Last Updated11 days ago
LicenseApache-2.0
Maintainers3
Releases42
Direct Dependencieseslint-plugin-chai-expect, eslint-plugin-import, eslint-plugin-node, eslint-plugin-promise, eslint-plugin-security, find-root and semver
Keywordsappcelerator, axway, config, eslint, eslintconfig, eslint-config, javascript, jscs, jshint, lint, linter, linting and styleguide

This README is too long to show.

eslint-plugin-mocha

Author: Mathias Schreck

Description: Eslint rules for mocha.

Homepage: https://github.com/lo1tuma/eslint-plugin-mocha

Createdabout 6 years ago
Last Updated3 months ago
LicenseMIT
Maintainers3
Releases46
Direct Dependencieseslint-utils and ramda
Keywordseslint, eslintplugin, eslint-plugin and mocha
README
[![NPM Version](https://img.shields.io/npm/v/eslint-plugin-mocha.svg?style=flat)](https://www.npmjs.org/package/eslint-plugin-mocha) [![GitHub Actions status](https://github.com/lo1tuma/eslint-plugin-mocha/workflows/CI/badge.svg)](https://github.com/lo1tuma/eslint-plugin-mocha/actions) [![Coverage Status](https://img.shields.io/coveralls/lo1tuma/eslint-plugin-mocha/master.svg?style=flat)](https://coveralls.io/r/lo1tuma/eslint-plugin-mocha) [![Peer Dependencies](http://img.shields.io/david/peer/lo1tuma/eslint-plugin-mocha.svg?style=flat)](https://david-dm.org/lo1tuma/eslint-plugin-mocha#info=peerDependencies&view=table) [![NPM Downloads](https://img.shields.io/npm/dm/eslint-plugin-mocha.svg?style=flat)](https://www.npmjs.org/package/eslint-plugin-mocha) # eslint-plugin-mocha ESLint rules for [mocha](http://mochajs.org/). ## Install and configure This plugin requires ESLint `4.0.0` or later. ```bash npm install --save-dev eslint-plugin-mocha ``` Then add a reference to this plugin and selected rules in your eslint config: ```json { "plugins": [ "mocha" ] } ``` ### Plugin Settings This plugin supports the following settings, which are used by multiple rules: * `additionalCustomNames`: This allows rules to check additional function names when looking for suites or test cases. This might be used with a custom Mocha extension, such as [`ember-mocha`](https://github.com/switchfly/ember-mocha) **Example:** ```json { "rules": { "mocha/no-skipped-tests": "error", "mocha/no-exclusive-tests": "error" }, "settings": { "mocha/additionalCustomNames": [ { "name": "describeModule", "type": "suite", "interfaces": [ "BDD" ] }, { "name": "testModule", "type": "testCase", "interfaces": [ "TDD" ] } ] } } ``` ### Recommended config This plugin exports a recommended config that enforces good practices. Enable it with the extends option: ```json { "extends": [ "plugin:mocha/recommended" ] } ``` See [Configuring Eslint](http://eslint.org/docs/user-guide/configuring) on [eslint.org](http://eslint.org) for more info. ## Rules documentation The documentation of the rules [can be found here](docs/rules).

husky

Author: Typicode

Description: Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)

Homepage: https://github.com/typicode/husky#readme

Createdover 6 years ago
Last Updated5 days ago
LicenseMIT
Maintainers1
Releases163
Direct Dependencieschalk, ci-info, compare-versions, cosmiconfig, find-versions, opencollective-postinstall, pkg-dir, please-upgrade-node, slash and which-pm-runs
Keywordsgit, hook, hooks, pre-commit, precommit, post-commit, postcommit, pre-push, prepush, post-merge, postmerge, test and lint

lint-staged

Author: Andrey Okonetchnikov

Description: Lint files staged by git

Homepage: https://github.com/okonet/lint-staged#readme

Createdalmost 5 years ago
Last Updated4 days ago
LicenseMIT
Maintainers1
Releases168
Direct Dependencieschalk, cli-truncate, commander, cosmiconfig, debug, dedent, enquirer, execa, listr2, log-symbols, micromatch, normalize-path, please-upgrade-node, string-argv and stringify-object
Keywordslint, git, staged, eslint, prettier, stylelint, code, quality, check, format and validate

This README is too long to show.

nyc

Author: Ben Coe

Description: the Istanbul command line interface

Homepage: https://istanbul.js.org/

Createdover 5 years ago
Last Updated5 months ago
LicenseISC
Maintainers3
Releases163
Direct Dependencies@istanbuljs/load-nyc-config, @istanbuljs/schema, caching-transform, convert-source-map, decamelize, find-cache-dir, find-up, foreground-child, get-package-type, glob, istanbul-lib-coverage, istanbul-lib-hook, istanbul-lib-instrument, istanbul-lib-processinfo, istanbul-lib-report, istanbul-lib-source-maps, istanbul-reports, make-dir, node-preload, p-map, process-on-spawn, resolve-from, rimraf, signal-exit, spawn-wrap, test-exclude and yargs
Keywordscoverage, reporter, subprocess and testing

This README is too long to show.

@commitlint/cli

Author: Mario Nebl

Description: Lint your commit messages

Homepage: https://github.com/conventional-changelog/commitlint#readme

Createdover 3 years ago
Last Updatedabout 1 month ago
LicenseMIT
Maintainers4
Releases67
Direct Dependencies@babel/runtime, @commitlint/format, @commitlint/lint, @commitlint/load, @commitlint/read, chalk, core-js, get-stdin, lodash, resolve-from, resolve-global and yargs
Keywordsconventional-changelog, commitlint and cli

rollup

Author: Rich Harris

Description: Next-generation ES module bundler

Homepage: https://rollupjs.org/

Createdover 5 years ago
Last Updated4 days ago
LicenseMIT
Maintainers5
Releases485
Direct Dependenciesfsevents
Keywordsmodules, bundler, bundling, es6 and optimizer
README
# Rollup

npm version install size code coverage backers sponsors license dependency status Join the chat at https://gitter.im/rollup/rollup

## Overview Rollup is a module bundler for JavaScript which compiles small pieces of code into something larger and more complex, such as a library or application. It uses the standardized ES module format for code, instead of previous idiosyncratic solutions such as CommonJS and AMD. ES modules let you freely and seamlessly combine the most useful individual functions from your favorite libraries. Rollup can optimize ES modules for faster native loading in modern browsers, or output a legacy module format allowing ES module workflows today. ## Quick Start Guide Install with `npm install --global rollup`. Rollup can be used either through a [command line interface](https://rollupjs.org/#command-line-reference) with an optional configuration file, or else through its [JavaScript API](https://rollupjs.org/guide/en/#javascript-api). Run `rollup --help` to see the available options and parameters. The starter project templates, [rollup-starter-lib](https://github.com/rollup/rollup-starter-lib) and [rollup-starter-app](https://github.com/rollup/rollup-starter-app), demonstrate common configuration options, and more detailed instructions are available throughout the [user guide](https://rollupjs.org/). ### Commands These commands assume the entry point to your application is named main.js, and that you'd like all imports compiled into a single file named bundle.js. For browsers: ```bash # compile to a Githubissues.
  • Githubissues is a development platform for aggregating issues.