Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Fix Travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicataldo committed Jul 6, 2019
1 parent a3db268 commit e5e3b08
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
@@ -1,5 +1,6 @@
_site
node_modules
vendor
_site
assets/build
src/js/eslint.js
src/js/espree.js
Expand Down
5 changes: 4 additions & 1 deletion .travis.yml
Expand Up @@ -5,5 +5,8 @@ cache: bundler
branches:
only:
- master
before_install:
- nvm install 8
- npm install
script:
- bundle exec jekyll build
- npm run lint && npm run build
8 changes: 4 additions & 4 deletions _config.yml
@@ -1,9 +1,9 @@
title: "ESLint - Pluggable JavaScript linter"
repository: "eslint/eslint.github.io"
exclude: [
'node_modules',
'src'
]
exclude:
- node_modules
- src
- vendor
description: "A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease."
url: https://eslint.org
permalink: /blog/:year/:month/:title
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -14,7 +14,7 @@
"build:jekyll": "bundle exec jekyll build",
"build:webpack": "webpack --mode=production",
"build:less": "lessc src/styles/main.less assets/build/styles/main.css --clean-css --source-map=assets/build/styles/main.css.map",
"build": "npm run build:less && npm run build:webpack && npm run build:site",
"build": "npm run build:less && npm run build:webpack && npm run build:jekyll",
"start:jekyll": "bundle exec jekyll serve --config _config.yml,_config.dev.yml",
"start:webpack": "webpack -w --mode=development",
"start": "npm run build:less && npm run start:jekyll",
Expand Down
11 changes: 5 additions & 6 deletions webpack.config.js
@@ -1,7 +1,7 @@
"use strict";

const path = require("path");
const CleanCSSPlugin = require('less-plugin-clean-css');
const CleanCSSPlugin = require("less-plugin-clean-css"); // eslint-disable-line node/no-unpublished-require

module.exports = {
entry: {
Expand All @@ -24,13 +24,13 @@ module.exports = {
test: /\.less$/,
use: [
{
loader: 'style-loader',
loader: "style-loader"
},
{
loader: 'css-loader',
loader: "css-loader"
},
{
loader: 'less-loader',
loader: "less-loader",
options: {
plugins: [
new CleanCSSPlugin()
Expand All @@ -42,7 +42,6 @@ module.exports = {
]
},
resolve: {
extensions: [".js", ".jsx"],
modules: [path.resolve(__dirname, "js"), "node_modules"]
extensions: [".js", ".jsx"]
}
};

0 comments on commit e5e3b08

Please sign in to comment.