Skip to content

Commit

Permalink
chore(release): 2.0.0-rc.0 (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi authored Jul 9, 2019
1 parent cc26d0c commit 583fa0e
Show file tree
Hide file tree
Showing 50 changed files with 14,296 additions and 4,483 deletions.
63 changes: 63 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
"use strict";

module.exports = {
parserOptions: {
sourceType: "script"
},
extends: ["plugin:itgalaxy/esnext", "plugin:itgalaxy/node"],
// Need investigate problem in eslint-plugin-node
rules: {
"node/no-unpublished-require": "off"
},
overrides: [
// Source
{
// Exclude nested tests
excludedFiles: ["**/__tests__/**/*", "**/__mocks__/**/*", "**/*.md"],
files: ["src/**/*"],
rules: {
// Allow to use ECMAScript 6 modules because we use `babel`
"node/no-unsupported-features/es-syntax": "off"
}
},

// Jest
{
extends: ["plugin:itgalaxy/jest"],
excludedFiles: ["**/*.md"],
files: ["**/__tests__/**/*", "**/__mocks__/**/*"],
rules: {
// Allow to use `console` (example - `mocking`)
"no-console": "off",
// Allow to use ECMAScript 6 modules because we use `babel`
"node/no-unsupported-features/es-syntax": "off"
}
},

// Markdown
{
extends: ["plugin:itgalaxy/markdown"],
files: ["**/*.md"],
parserOptions: {
sourceType: "module",
ecmaFeatures: {
impliedStrict: true
}
},
rules: {
strict: "off",
"no-undef": "off",
"no-unused-vars": "off",
"no-process-env": "off",
"no-process-exit": "off",
"no-console": "off",
"import/no-unresolved": "off",
"import/extensions": "off",
"node/no-unpublished-require": "off",
"node/no-unpublished-import": "off",
"node/no-unsupported-features/es-syntax": "off"
}
}
],
root: true
};
14 changes: 5 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,11 @@ stats-*.json

# Composer
composer.phar
vendor
vendor/*
!vendor/linux
!vendor/linux/**
!vendor/macos
!vendor/win
!vendor/macos/**
!vendor/windows
!vendor/windows/**
!composer.lock

# Applcation
build
src/shared/fonts/icon-font.*
src/shared/styles/fonts/_icon-font.scss
!tests/fixtures/package-manifest/vendor

5 changes: 5 additions & 0 deletions .remarkrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"use strict";

module.exports = {
plugins: ["remark-preset-lint-itgalaxy"]
};
72 changes: 45 additions & 27 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ git:
branches:
only:
- master
- /^greenkeeper/.*$/
- next

language: node_js

Expand All @@ -22,38 +22,56 @@ addons:
matrix:
fast_finish: true
include:
- os: linux
node_js: "10"
script: npm run $JOB_PART
env: JOB_PART=pretest
- os: linux
node_js: "10"
script: npm run $JOB_PART
env: JOB_PART=test-only
#- os: linux
# node_js: "12"
# script: npm run $JOB_PART
# env: JOB_PART=pretest
#- os: linux
# node_js: "12"
# script: npm run $JOB_PART
# env: JOB_PART=test:only
#- os: osx
# node_js: "12"
# script: npm run $JOB_PART
# env: JOB_PART=test:only
# - os: windows
# node_js: "12"
# script: npm run $JOB_PART
# env: JOB_PART=test:only
#- os: linux
# node_js: "10"
# script: npm run $JOB_PART
# env: JOB_PART=test:only
#- os: osx
# node_js: "10"
# script: npm run $JOB_PART
# env: JOB_PART=test:only
# - os: windows
# node_js: "10"
# script: npm run $JOB_PART
# env: JOB_PART=test:only
#- os: linux
# node_js: "8"
# script: npm run $JOB_PART
# env: JOB_PART=test:only
- os: osx
node_js: "10"
script: npm run $JOB_PART
env: JOB_PART=test-only
- os: linux
node_js: "8"
script: npm run $JOB_PART
env: JOB_PART=test-only
- os: osx
env: JOB_PART=test:only
- os: windows
node_js: "8"
script: npm run $JOB_PART
env: JOB_PART=test-only
- os: linux
node_js: "6"
script: npm run $JOB_PART
env: JOB_PART=test-only
- os: osx
node_js: "6"
script: npm run $JOB_PART
env: JOB_PART=test-only
env: JOB_PART=test:only

before_install:
- "if [[ $TRAVIS_OS_NAME == osx ]]; then brew update && brew install nasm; fi;"
- "if [[ `npm -v` != 6* ]]; then npm i -g npm@latest; fi"
- nvm --version
- if [[ $TRAVIS_OS_NAME == osx ]]; then brew update && brew install nasm; fi;
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then npm install -g npm@latest; fi
- node --version
- npm --version

install:
- npm ci

before_script:
- node --version
- npm --version
15 changes: 10 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,24 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](http://semver.org).

## v1.1.0 - 2018-09-18
## 2.0.0-rc.0 - 2019-07-09

- feat: `windows` compiled binaries (`rdjpgcom`, `tjbench`, `wrjpgcom` is unavailable on `windows`)
- changed: minimum require Node.js version is `8.9.0`

## 1.1.0 - 2018-09-18

- feat: pre-build linux binaries
- fix: sequential check binaries on working.
- fix: sequential check binaries on working

## v1.0.2 - 2018-09-18
## 1.0.2 - 2018-09-18

- fix: binary installation

## v1.0.1 - 2018-09-18
## 1.0.1 - 2018-09-18

- fix: binary paths

## 1.0.0 - 2018-09-18

- chore: initial public release.
- chore: initial public release
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ You probably want [`imagemin-mozjpeg-full`](https://github.com/itgalaxy/imagemin

What is difference between [mozjpeg-bin](https://github.com/imagemin/mozjpeg-bin/):

- Contains all binaries delivered by `mozjpeg`: `cjpeg`, `djpeg`, `jpegtran`, `rdjpgcom`, `tjbench` and `wrjpgcom`.
- Contains all binaries delivered by `mozjpeg`: `cjpeg`, `djpeg`, `jpegtran`, `rdjpgcom`, `tjbench` and `wrjpgcom` (`rdjpgcom`, `tjbench`, `wrjpgcom` is unavailable on `windows`).
- No security vulnerabilities.
- Latest version.

Expand Down
2 changes: 1 addition & 1 deletion __tests__/bin-wrappers.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";

const binWrappers = require("../src/bin-wrappers");
const binCheck = require("bin-check");
const binWrappers = require("../src/bin-wrappers");

describe("bin wrapper instances", () => {
it("should work", () =>
Expand Down
6 changes: 3 additions & 3 deletions __tests__/install.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
const path = require("path");
const tempy = require("tempy");
const execa = require("execa");
const binaries = require("../src");
const compareSize = require("compare-size");
const binaries = require("../src");

// eslint-disable-next-line unicorn/prefer-exponentiation-operator
const infinityTimeout = Math.pow(2, 31) - 1;
Expand All @@ -15,7 +15,7 @@ describe("command", () => {
() =>
execa("node", [path.join(__dirname, "../src/install.js")]).then(
result => {
expect(result.code).toBe(0);
expect(result.exitCode).toBe(0);

return result;
}
Expand All @@ -31,7 +31,7 @@ describe("command", () => {

return execa(binaries.cjpeg, args)
.then(result => {
expect(result.code).toBe(0);
expect(result.exitCode).toBe(0);

return result;
})
Expand Down
7 changes: 7 additions & 0 deletions husky.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"use strict";

module.exports = {
hooks: {
"pre-commit": "lint-staged"
}
};
6 changes: 6 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"use strict";

module.exports = {
collectCoverageFrom: ["src/**/*.{js,mjs,jsx}", "!src/install.js"],
testPathIgnorePatterns: ["/node_modules/", "/fixtures/", "helpers.js"]
};
5 changes: 3 additions & 2 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ module.exports = {
"eslint --report-unused-disable-directives",
"git add"
],
"*.{md,markdown,mdown,mkdn,mkd,mdwn,mkdown,ron}": [
"!(CHANGELOG|vendor/**).{md,markdown,mdown,mkdn,mkd,mdwn,mkdown,ron}": [
"prettier --list-different",
"remark -f -q",
"git add"
]
],
"*.{yml,yaml}": ["prettier --list-different", "git add"]
};
Loading

0 comments on commit 583fa0e

Please sign in to comment.