Skip to content

Commit

Permalink
chore: webpack-default
Browse files Browse the repository at this point in the history
* chore(na): first changes to apply new defaults

* chore(na): apply fix to less version

* test(na): fix jest tests

* chore(na): update less to last version
  • Loading branch information
mistic authored and evilebottnawi committed Feb 9, 2019
1 parent a9ca4b0 commit dbff214
Show file tree
Hide file tree
Showing 16 changed files with 8,370 additions and 8,988 deletions.
35 changes: 0 additions & 35 deletions .babelrc

This file was deleted.

121 changes: 55 additions & 66 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,32 @@ unit_tests: &unit_tests
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: NPM Rebuild
command: npm install
name: Install Latest NPM.
# npm@3 is buggy
command: if [[ $(npm -v | cut -c -1) > 3 ]] ; then npm i -g npm@latest; else echo "Skip npm updating"; fi
- run:
name: Run unit tests.
name: NPM Install.
command: npm ci || npm i
- run:
name: Run Test.
command: npm run ci:test
canary_tests: &canary_tests
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: NPM Rebuild
command: npm install
name: Install Latest NPM.
command: npm i -g npm@latest
- run:
name: NPM Install.
command: npm ci
- run:
name: Install Webpack Canary
name: Install Webpack Canary.
command: npm i --no-save webpack@next
- run:
name: Run unit tests.
command: if [[ $(compver --name webpack --gte next --lt latest) < 1 ]] ; then printf "Next is older than Latest - Skipping Canary Suite"; else npm run ci:test ; fi
name: Run Test.
command: if [[ $(compver --name webpack --gte next --lt latest) < 1 ]] ; then printf "Next is older than Latest - Skipping Canary Suite"; else npm run ci:test || true; fi

version: 2
jobs:
Expand All @@ -34,91 +41,82 @@ jobs:
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Install Dependencies
command: npm install
name: Install Latest NPM.
command: npm i -g npm@latest
- run:
name: NPM Install.
command: npm ci
- save_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
paths:
- ./node_modules

node8-latest:
analysis:
docker:
- image: webpackcontrib/circleci-node8:latest
- image: webpackcontrib/circleci-node-base:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: NPM Rebuild
command: npm install
name: Install Latest NPM.
command: npm i -g npm@latest
- run:
name: Run unit tests.
command: npm run ci:coverage
name: NPM Install.
command: npm ci
- run:
name: Submit coverage data to codecov.
command: bash <(curl -s https://codecov.io/bash)
when: on_success
name: Run linting.
command: npm run lint
- run:
name: Run NPM Audit.
command: npm run security
- run:
name: Validate Commit Messages.
command: npm run ci:lint:commits
node6-latest:
docker:
- image: webpackcontrib/circleci-node6:latest
<<: *unit_tests
node9-latest:
docker:
- image: webpackcontrib/circleci-node9:latest
<<: *unit_tests
node8-canary:
node8-latest:
docker:
- image: webpackcontrib/circleci-node8:latest
<<: *canary_tests
analysis:
<<: *unit_tests
node10-latest:
docker:
- image: webpackcontrib/circleci-node-base:latest
- image: webpackcontrib/circleci-node10:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: NPM Rebuild
command: npm install
name: Install Latest NPM.
command: npm i -g npm@latest
- run:
name: Run linting.
command: npm run lint
name: NPM Install.
command: npm ci
- run:
name: Run NSP Security Check.
command: npm run security
name: Run Test.
command: npm run ci:coverage
- run:
name: Validate Commit Messages
command: npm run ci:lint:commits
publish:
name: Submit coverage data to codecov.
command: bash <(curl -s https://codecov.io/bash)
when: on_success
node8-canary:
docker:
- image: webpackcontrib/circleci-node-base:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: NPM Rebuild
command: npm install
# - run:
# name: Validate Commit Messages
# command: npm run release:validate
- run:
name: Publish to NPM
command: printf "noop running conventional-github-releaser"
- image: webpackcontrib/circleci-node8:latest
<<: *canary_tests

version: 2.0
workflows:
version: 2
validate-publish:
test:
jobs:
- dependency_cache
- node6-latest:
- analysis:
requires:
- dependency_cache
filters:
tags:
only: /.*/
- analysis:
- node6-latest:
requires:
- dependency_cache
filters:
Expand All @@ -131,7 +129,7 @@ workflows:
filters:
tags:
only: /.*/
- node9-latest:
- node10-latest:
requires:
- analysis
- node6-latest
Expand All @@ -144,13 +142,4 @@ workflows:
- node6-latest
filters:
tags:
only: /.*/
- publish:
requires:
- node8-latest
- node8-canary
- node9-latest
filters:
branches:
only:
- master
only: /.*/
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
insert_final_newline = true
trim_trailing_whitespace = false
69 changes: 10 additions & 59 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,65 +1,16 @@
<!--
Issues are so πŸ”₯
If you remove or skip this template, you'll make the 🐼 sad and the mighty god
of Github will appear and pile-drive the close button from a great height
while making animal noises.
πŸ‘‰πŸ½ Need support, advice, or help? Don't open an issue!
Head to StackOverflow or https://gitter.im/webpack/webpack.
-->

* Operating System:
* Node Version:
* NPM Version:
* webpack Version:
* less-loader Version:

<!-- Please place an x (no spaces!) in all [ ] that apply -->

This issue is for a:

- [ ] **bug**
- [ ] **feature** request
- [ ] **modification** request

### Code

##### CLI Command

```bash
# paste the CLI command you're using. if this isn't applicable, it's safe to remove.
$ {the command}
```

##### webpack.config.js

```js
// If your bitchin' code blocks are over 20 lines, please paste a link to a gist
// (https://gist.github.com).
```

```js
// additional code, HEY YO remove this block if you don't need it
```

### Expected Behavior

<!-- Remove this section if not reporting a bug or modification request. -->

### Actual Behavior

<!-- Remove this section if not reporting a bug or modification request. -->

### How Do We Reproduce?

<!--
Remove this section if not reporting a bug.
If your webpack config is over 50 lines long, please provide a URL to a repo
for your beefy πŸ– app that we can use to reproduce.
-->
Hey there!
### New Feature Use Case
You arrived at this template because you felt none of the other options
matched the kind of issue you'd like to report. Please use this opportunity to
tell us about your particular type of issue so we can try to accomodate
similar issues in the future.
<!-- Remove this section if not requesting a feature -->
PLEASE do note, if you're using this to report an issue already covered by the
existing template types, your issue may be closed as invalid. Our issue
templates contain fields that help us help you, and without that important
info, we might as well be ice-skating uphill, carrying a wooly mammoth.
-->
51 changes: 51 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: πŸ› Bug Report
about: Something went awry and you'd like to tell us about it.

---

<!--
Issues are so πŸ”₯
If you remove or skip this template, you'll make the 🐼 sad and the mighty god
of Github will appear and pile-drive the close button from a great height
while making animal noises.
πŸ‘‰πŸ½ Need support, advice, or help? Don't open an issue!
Head to StackOverflow or https://gitter.im/webpack/webpack.
-->

* Operating System:
* Node Version:
* NPM Version:
* webpack Version:
* less-loader Version:

### Expected Behavior

<!-- Remove this section if not reporting a bug or modification request. -->

### Actual Behavior

<!-- Remove this section if not reporting a bug or modification request. -->

### Code

```js
// webpack.config.js
// If your bitchin' code blocks are over 20 lines, please paste a link to a gist
// (https://gist.github.com).
```

```js
// additional code, HEY YO remove this block if you don't need it
```

### How Do We Reproduce?

<!--
Remove this section if not reporting a bug.
If your webpack config is over 50 lines long, please provide a URL to a repo
for your beefy πŸ– app that we can use to reproduce.
-->
Loading

0 comments on commit dbff214

Please sign in to comment.