Skip to content

Commit 595171b

Browse files
committed
Update project configuration
1 parent 861336b commit 595171b

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ package-lock.json
66
!.travis.yml
77
*.log*
88
*.result.css
9-
/index.js
10-
/index.mjs
9+
/index.*

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ postcss-tape --fixtures=path/to/tests
312312

313313
[npm-img]: https://img.shields.io/npm/v/postcss-tape.svg
314314
[npm-url]: https://www.npmjs.com/package/postcss-tape
315-
[cli-img]: https://img.shields.io/travis/csstools/postcss-tape.svg
315+
[cli-img]: https://img.shields.io/travis/csstools/postcss-tape/master.svg
316316
[cli-url]: https://travis-ci.org/csstools/postcss-tape
317317
[git-img]: https://img.shields.io/badge/chat-gitter-blue.svg
318318
[git-url]: https://gitter.im/postcss/postcss

package.json

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,45 +12,46 @@
1212
"postcss-tape": "index.js"
1313
},
1414
"files": [
15-
"index.js"
15+
"index.js",
16+
"index.js.map"
1617
],
1718
"scripts": {
1819
"build": "rollup --config --silent",
1920
"prepublish": "npm test",
2021
"pretest:tape": "npm run build",
2122
"test": "npm run test:js && npm run test:tape",
22-
"test:js": "eslint src/*.js src/lib/*.js --cache --ignore-pattern .gitignore",
23+
"test:js": "eslint src/{*,**/*}.js --cache --ignore-pattern .gitignore",
2324
"test:tape": "node . --plugin test/plugin.js --config test",
2425
"test:tape:ci": "node . --ci true --plugin test/plugin.js --config test"
2526
},
2627
"engines": {
2728
"node": ">=8.0.0"
2829
},
2930
"devDependencies": {
30-
"@babel/core": "^7.4.4",
31+
"@babel/core": "^7.4.5",
3132
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
32-
"@babel/preset-env": "^7.4.4",
33+
"@babel/preset-env": "^7.4.5",
3334
"babel-eslint": "^10.0.1",
3435
"eslint": "^5.16.0",
35-
"eslint-config-dev": "2.0.0",
3636
"postcss": "^7.0.16",
37-
"rollup": "^1.12.1",
37+
"rollup": "^1.12.3",
3838
"rollup-plugin-babel": "^4.3.2",
39-
"rollup-plugin-terser": "^4.0.4"
39+
"rollup-plugin-terser": "^5.0.0"
4040
},
4141
"eslintConfig": {
42-
"extends": "dev",
42+
"env": {
43+
"browser": true,
44+
"es6": true,
45+
"node": true
46+
},
47+
"extends": "eslint:recommended",
4348
"parser": "babel-eslint",
44-
"rules": {
45-
"complexity": [
46-
1,
47-
24
48-
],
49-
"max-params": [
50-
1,
51-
4
52-
]
53-
}
49+
"parserOptions": {
50+
"ecmaVersion": 2018,
51+
"impliedStrict": true,
52+
"sourceType": "module"
53+
},
54+
"root": true
5455
},
5556
"keywords": [
5657
"postcss",

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { terser } from 'rollup-plugin-terser';
33

44
export default {
55
input: 'src/index.js',
6-
output: { file: 'index.js', format: 'cjs', strict: false },
6+
output: { file: 'index.js', format: 'cjs', sourcemap: true, strict: false },
77
plugins: [
88
babel({
99
plugins: [ '@babel/syntax-dynamic-import' ],

0 commit comments

Comments
 (0)