Skip to content

Commit

Permalink
Update ignore config (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
gucong3000 authored Mar 16, 2018
1 parent 5008bd0 commit 05539fd
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Created by https://www.gitignore.io/api/node

### Node ###
# Logs
logs
*.log
Expand Down Expand Up @@ -57,3 +60,6 @@ typings/
# dotenv environment variables file
.env



# End of https://www.gitignore.io/api/node
6 changes: 4 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
*.log
*.pid
*.seed
*.tgz
.circleci
.editorconfig
.babelrc
.eslintrc*
.eslintignore
.gitignore
.grunt
.lock-wscript
.node_repl_history
.nyc_output
.stylelintrc*
.travis.yml
.vscode
.nyc_output
appveyor.yml
coverage
gulpfile.js
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
},
"scripts": {
"report-coverage": "codecov",
"pretest": "eslint .",
"pretest": "eslint lib test",
"test": "nyc mocha --no-timeouts"
},
"version": "2.1.2"
Expand Down
4 changes: 1 addition & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ files = files.filter(function (filename) {
return /\.(?:c|le|sc)ss$/.test(filename) && !/\.\w+\.\w+$/.test(filename);
});
describe('fixtures', function () {

// files = ["values.css"]

files.forEach(function (filename) {

const testName = filename.replace(/\.\w+$/, '');
const inputFile = './test/fixtures/' + filename;
const outputFile = inputFile.replace(/\.(\w+)$/, '.out.$1');
Expand All @@ -48,7 +46,7 @@ describe('fixtures', function () {
let real;
return process(input, {
from: inputFile,
syntax: syntax === 'css' ? null : require('postcss-'+ syntax),
syntax: syntax === 'css' ? null : require('postcss-' + syntax),
}).then((result) => {
real = result.css;
assert.equal(output, real);
Expand Down

0 comments on commit 05539fd

Please sign in to comment.