Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: arturparkhisenko/gulp-gold
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.2.2
Choose a base ref
...
head repository: arturparkhisenko/gulp-gold
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Mar 7, 2018

  1. Copy the full SHA
    fbf9c89 View commit details
  2. 1.3.0

    arturparkhisenko committed Mar 7, 2018
    Copy the full SHA
    7a6c0de View commit details

Commits on Mar 8, 2018

  1. Update README.md

    arturparkhisenko authored Mar 8, 2018
    Copy the full SHA
    60f8621 View commit details

Commits on Apr 9, 2018

  1. Copy the full SHA
    12f97ae View commit details
  2. v1.3.1

    arturparkhisenko committed Apr 9, 2018
    Copy the full SHA
    af83db2 View commit details

Commits on Aug 29, 2018

  1. Copy the full SHA
    42c3e2a View commit details

Commits on Dec 18, 2018

  1. Copy the full SHA
    d524258 View commit details
  2. 1.4.0

    arturparkhisenko committed Dec 18, 2018
    Copy the full SHA
    f9cad52 View commit details

Commits on Mar 6, 2019

  1. Copy the full SHA
    741b035 View commit details

Commits on May 16, 2019

  1. Copy the full SHA
    62bacbb View commit details
  2. 1.4.1

    arturparkhisenko committed May 16, 2019
    Copy the full SHA
    b043acb View commit details

Commits on Aug 28, 2019

  1. change deps

    arturparkhisenko committed Aug 28, 2019
    Copy the full SHA
    1171843 View commit details
  2. Copy the full SHA
    65a3b87 View commit details
  3. 1.4.2

    arturparkhisenko committed Aug 28, 2019
    Copy the full SHA
    efbc12b View commit details

Commits on Oct 11, 2019

  1. change dependencies and other improvements

    - add eslint support for es 2020 and service worker globals
    - add stylelint ignore
    - add macOS dark theme support
    - change stylelint rules
    - change sourcemaps to be only for dev
    - change urls to https
    - change logs
    - change color names
    arturparkhisenko committed Oct 11, 2019
    Copy the full SHA
    1df8e5a View commit details
  2. Merge pull request #4 from arturparkhisenko/change-dependencies-and-o…

    …ther-improvements
    
    Change dependencies and other improvements
    arturparkhisenko authored Oct 11, 2019
    Copy the full SHA
    bdc324c View commit details
  3. 1.4.3

    arturparkhisenko committed Oct 11, 2019
    Copy the full SHA
    0b67031 View commit details
  4. Copy the full SHA
    abe70b7 View commit details
  5. Merge pull request #5 from arturparkhisenko/change-production-env

    Change broken lint dependencies and production env in gulpfile
    arturparkhisenko authored Oct 11, 2019
    Copy the full SHA
    cac9349 View commit details
  6. 1.4.4

    arturparkhisenko committed Oct 11, 2019
    Copy the full SHA
    2e839dd View commit details
  7. 1.4.5

    arturparkhisenko committed Oct 11, 2019
    Copy the full SHA
    1b75290 View commit details

Commits on Dec 19, 2019

  1. Copy the full SHA
    ab81b8c View commit details
  2. Copy the full SHA
    7502bc8 View commit details
  3. 1.5.0

    arturparkhisenko committed Dec 19, 2019
    Copy the full SHA
    363beb1 View commit details

Commits on Mar 7, 2020

  1. Copy the full SHA
    9139f70 View commit details
  2. Merge pull request #7 from arturparkhisenko/node-10

    Change configuration and dependencies to be aligned at node 10
    arturparkhisenko authored Mar 7, 2020
    Copy the full SHA
    2e3990d View commit details
  3. 1.6.0

    arturparkhisenko committed Mar 7, 2020
    Copy the full SHA
    886e088 View commit details

Commits on Jul 7, 2020

  1. Copy the full SHA
    07bb88d View commit details
  2. change dependencies

    arturparkhisenko committed Jul 7, 2020
    Copy the full SHA
    b21ebc1 View commit details
  3. Copy the full SHA
    e1ab27d View commit details
  4. Copy the full SHA
    359828b View commit details
  5. 1.6.1

    arturparkhisenko committed Jul 7, 2020
    Copy the full SHA
    078399e View commit details

Commits on Dec 3, 2020

  1. Copy the full SHA
    e8bef4e View commit details
  2. Copy the full SHA
    0b48587 View commit details
  3. 1.7.0

    arturparkhisenko committed Dec 3, 2020
    Copy the full SHA
    57309c3 View commit details

Commits on Sep 22, 2021

  1. Copy the full SHA
    452d580 View commit details
  2. Copy the full SHA
    f1ce439 View commit details

Commits on Oct 31, 2021

  1. Copy the full SHA
    e34d139 View commit details

Commits on Dec 31, 2021

  1. add npm scripts, change dependencies, eslint and babel config, remove…

    … class-properties, config-airbnb, prettier-eslint-cli
    arturparkhisenko committed Dec 31, 2021
    Copy the full SHA
    3f85ed8 View commit details
  2. Copy the full SHA
    6c5bb02 View commit details

Commits on Jan 1, 2022

  1. Merge pull request #12 from arturparkhisenko/dependencies-update-2021

    Major dependencies update end of 2021
    arturparkhisenko authored Jan 1, 2022
    Copy the full SHA
    e711ed7 View commit details
  2. Copy the full SHA
    42820ec View commit details
  3. Copy the full SHA
    349d9ee View commit details
  4. 2.0.0

    arturparkhisenko committed Jan 1, 2022
    Copy the full SHA
    7919d80 View commit details
Showing with 28,974 additions and 14,534 deletions.
  1. +0 −3 .bowerrc
  2. +4 −1 .editorconfig
  3. +10 −8 .eslintrc
  4. +0 −22 .gitattributes
  5. +1 −17 .gitignore
  6. +1 −1 .prettierignore
  7. +15 −0 .stylelintignore
  8. +0 −3 .stylelintrc
  9. +40 −20 README.md
  10. +21 −0 babel.config.json
  11. +86 −54 gulpfile.js
  12. +28,635 −14,261 package-lock.json
  13. +57 −75 package.json
  14. BIN src/favicon.ico
  15. BIN src/images/gulp.png
  16. +10 −7 src/index.html
  17. +25 −4 src/scripts/main.js
  18. +3 −4 src/scripts/module-example.js
  19. +23 −6 src/styles/main.css
  20. +2 −2 src/styles/module-example.css
  21. +41 −46 webpack.config.js
3 changes: 0 additions & 3 deletions .bowerrc

This file was deleted.

5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# EditorConfig is awesome: http://EditorConfig.org
# EditorConfig is awesome: https://EditorConfig.org

root = true

@@ -16,3 +16,6 @@ insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.js]
quote_type = single
18 changes: 10 additions & 8 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
{
"extends": [
"airbnb/base",
"prettier"
],
"extends": ["prettier"],
"env": {
"browser": true,
"node": true,
"es6": true
"es2020": true,
"serviceworker": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true
}
},
"rules": {
"function-paren-newline": 0
"function-paren-newline": 0,
"quotes": ["warn", "single"]
}
}
22 changes: 0 additions & 22 deletions .gitattributes

This file was deleted.

18 changes: 1 addition & 17 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -2,15 +2,6 @@
##################
node_modules

# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so

# Packages #
############
*.7z
@@ -25,8 +16,6 @@ node_modules
# Logs and databases #
######################
*.log
*.sql
*.sqlite

# OS generated files #
######################
@@ -51,15 +40,10 @@ $RECYCLE.BIN/
#######################
.gitconfig.local

# Compiled Python files #
#########################
*.pyc

# Other #
#########
.idea
.vagrant
.vscode
dist/
tmp/
src/bower_components/
*.min.*
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
*.min.*
**/*.min.*
15 changes: 15 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# NodeJS modules #
##################
node_modules

# Scripts #
###########
*.js

# Other #
#########
*.md
*.json
*.webmanifest
*.xml
*.txt
3 changes: 0 additions & 3 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"extends": "stylelint-config-standard",
"rules": {
"at-rule-empty-line-before": "never",
"comment-empty-line-before": "never",
"comment-whitespace-inside": "never",
"indentation": 2
}
}
60 changes: 40 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,47 +1,62 @@
# gulp-gold :wrench:, [npm link](https://www.npmjs.org/package/gulp-gold)

[![GitHub license](https://img.shields.io/github/license/arturparkhisenko/gulp-gold.svg)](https://github.com/arturparkhisenko/gulp-gold/blob/master/LICENSE.md) [![GitHub release](https://img.shields.io/github/release/arturparkhisenko/gulp-gold.svg)](https://github.com/arturparkhisenko/gulp-gold/releases) [![dependencies Status](https://david-dm.org/arturparkhisenko/gulp-gold/dev-status.svg)](https://david-dm.org/arturparkhisenko/gulp-gold?type=dev) [![Known Vulnerabilities](https://snyk.io/test/github/arturparkhisenko/gulp-gold/badge.svg)](https://snyk.io/test/github/arturparkhisenko/gulp-gold)
[![GitHub release](https://img.shields.io/github/release/arturparkhisenko/gulp-gold.svg)](https://github.com/arturparkhisenko/gulp-gold/releases) [![dependencies Status](https://david-dm.org/arturparkhisenko/gulp-gold/dev-status.svg)](https://david-dm.org/arturparkhisenko/gulp-gold?type=dev) [![Known Vulnerabilities](https://snyk.io/test/github/arturparkhisenko/gulp-gold/badge.svg)](https://snyk.io/test/github/arturparkhisenko/gulp-gold) [![GitHub license](https://img.shields.io/github/license/arturparkhisenko/gulp-gold.svg)](https://github.com/arturparkhisenko/gulp-gold/blob/master/LICENSE.md)

> custom Gulp pack
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

- [TL;DR](#tldr)
- [Installing](#installing)
- [Usage](#usage)
- [npm scripts](#npm-scripts)
- [gulp tasks](#gulp-tasks)
- [Optional](#optional)
- [MIT License](#mit-license)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

## TL;DR

Used latest tools: Gulp, Babel, Webpack, PostCSS
Used latest tools: Gulp, Babel, Webpack, PostCSS, Prettier

- Styles (css4) - [stylelint](http://stylelint.io/) -> [postCSS](https://www.npmjs.org/package/gulp-postcss)([postcss-import](https://www.npmjs.org/package/postcss-import), [postcss-url](https://www.npmjs.org/package/postcss-url), [cssnext](https://www.npmjs.org/package/postcss-cssnext)(autoprefixed), [cssnano](https://www.npmjs.org/package/cssnano))
- Scripts (es2015+) - [eslint](https://www.npmjs.org/package/eslint) -> [webpack](https://webpack.js.org)([babel-preset-env](https://www.npmjs.com/package/babel-preset-env), [uglify-js](https://www.npmjs.org/package/gulp-uglify),[prettier](https://prettier.io/))
- Images - minified/optimized([imagemin](https://www.npmjs.org/package/gulp-imagemin))
- [Browsersync](https://www.npmjs.com/package/browser-sync)
- Errors output improved by [plumber](https://www.npmjs.org/package/gulp-plumber)
- I hope You enjoy :)
- Styles - [stylelint](https://stylelint.io/) -> [postCSS](https://postcss.org/)([postcss-import](https://www.npmjs.com/package/postcss-import), [postcss-url](https://www.npmjs.com/package/postcss-url), [postcss-preset-env](https://www.npmjs.com/package/postcss-preset-env)(autoprefixed&cssnext), [cssnano](https://cssnano.co/))
- Scripts - [eslint](https://www.npmjs.com/package/eslint) -> [webpack](https://webpack.js.org)([babel-preset-env](https://www.npmjs.com/package/@babel/preset-env)) -> [prettier](https://prettier.io/)
- Images - [imagemin](https://www.npmjs.com/package/gulp-imagemin)
- [Browsersync](https://www.browsersync.io/)
- Errors output improved by [plumber](https://www.npmjs.com/package/gulp-plumber)
- I hope You will enjoy it :)

## Installing

- You must have [nodejs](https://nodejs.org/) (includes [npm](https://www.npmjs.org/)) installed
- You must have [NodeJS](https://nodejs.org/en/) (includes [NPM](https://www.npmjs.com/)) installed

```sh
$ sudo
$ npm i
```shell
npm install --legacy-peer-deps
```

This project uses Gulp4 so we should have `gulp-cli` or `npx` (goes with npm v5.3.0+) installed globally to use npm scripts using local gulp:
> "--legacy-peer-deps" is required because of Stylelint, it'll be resolved later
```sh
$ npm i -g gulp-cli
This project uses Gulp v.4 so we should have `gulp-cli` or `npx` (goes with NPM v5.3.0+) installed globally to use npm scripts using local Gulp:

```shell
npm install -g gulp-cli
```

## Usage

### npm scripts (using local gulp)
### npm scripts

- `npm run build` just build with `NODE_ENV=production`
- `npm run dev` or `npm start` serving from `src`
- `npm run prod` serving from `dist`
- `npm run lintStyles`
- `npm run lintScripts`
- `npm run formatScripts`
- `npm run lint`
- `npm run format`

### gulp tasks

### gulp tasks (require gulp-cli installed globally)
> requires `gulp-cli` to be installed globally
- `gulp serve` clean->lint->build->browsersync->watch in `src`
- `gulp` clean->lint->build
@@ -52,5 +67,10 @@ $ npm i -g gulp-cli
## Optional

- [normalize.css](https://github.com/necolas/normalize.css)
- [sanitize.css](https://github.com/csstools/sanitize.css)
- [Marx, on top of sanitize.css](https://github.com/mblode/marx)
- [Cleanslate](https://github.com/premasagar/cleanslate)
- [Typeset.css](https://github.com/joshuarudd/typeset.css)
- [CSS Mini Reset](https://github.com/vladocar/CSS-Mini-Reset)

## [MIT License](LICENSE.md)
21 changes: 21 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"browsers": [
"last 2 versions",
">1%",
"not dead"
]
},
"modules": false,
"loose": false
}
]
],
"plugins": [
"@babel/plugin-transform-runtime"
]
}
Loading