Skip to content

Commit 7c056de

Browse files
author
Alexander Ryzhikov
committed
Sync loader removed & Deps bump
1 parent c7204ad commit 7c056de

File tree

7 files changed

+1839
-1327
lines changed

7 files changed

+1839
-1327
lines changed

lib/sync.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -41,33 +41,33 @@
4141
],
4242
"dependencies": {
4343
"loader-utils": "^0.2.16",
44-
"lodash": "^4.16.4",
45-
"postcss": "^5.2.5",
46-
"postcss-cssnext": "^2.8.0",
47-
"postcss-import": "7.1.3"
44+
"lodash": "^4.17.4",
45+
"postcss": "^6.0.8",
46+
"postcss-cssnext": "^3.0.2",
47+
"postcss-import": "^10.0.0"
4848
},
4949
"devDependencies": {
5050
"ava": "^0.16.0",
51-
"babel-cli": "^6.5.1",
52-
"babel-core": "^6.5.2",
53-
"babel-eslint": "^7.0.0",
51+
"babel-cli": "^6.24.1",
52+
"babel-core": "^6.25.0",
53+
"babel-eslint": "^7.2.3",
5454
"babel-loader": "^6.2.5",
5555
"babel-plugin-add-module-exports": "^0.2.1",
56-
"babel-plugin-transform-function-bind": "^6.5.2",
56+
"babel-plugin-transform-function-bind": "^6.22.0",
5757
"babel-plugin-transform-runtime": "^6.15.0",
58-
"babel-preset-es2015": "^6.5.0",
59-
"babel-preset-latest": "^6.16.0",
60-
"babel-preset-stage-0": "^6.16.0",
61-
"coveralls": "^2.11.9",
62-
"eslint": "^3.8.1",
58+
"babel-preset-es2015": "^6.24.1",
59+
"babel-preset-latest": "^6.24.1",
60+
"babel-preset-stage-0": "^6.24.1",
61+
"coveralls": "^2.13.1",
62+
"eslint": "^4.2.0",
6363
"eslint-config-standard": "^6.2.0",
6464
"eslint-plugin-promise": "^3.3.0",
6565
"eslint-plugin-standard": "^2.0.1",
66-
"memory-fs": "^0.3.0",
67-
"nsp": "^2.2.0",
68-
"nyc": "^8.3.2",
66+
"memory-fs": "^0.4.1",
67+
"nsp": "^2.6.3",
68+
"nyc": "^11.0.3",
6969
"pre-commit": "^1.1.3",
70-
"webpack": "^1.13.2",
70+
"webpack": "^3.3.0",
7171
"webpack-to-memory": "^1.0.0"
7272
}
7373
}

src/lib/sync.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

test/helpers/runner-sync.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

test/helpers/runner.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import path from 'path'
55
const loaderPath = path.resolve(__dirname, '../../src/lib/index.js')
66

77
export default async (fixture, { es5 } = {}) => {
8-
const babelString = es5 ? '' : 'babel!'
8+
const babelString = es5 ? '' : 'babel-loader!'
99
const loaderOptions = es5 ? '?es5=1' : ''
1010
const webpackConfig = {
1111
target: 'node',
12-
context: __dirname,
13-
entry: './entry.js',
12+
context: path.resolve(__dirname, '../..'),
13+
entry: './test/helpers/entry.js',
1414
module: {
1515
loaders: [
1616
{

test/index.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import test from 'ava'
22
import runner from './helpers/runner'
3-
import runnerSync from './helpers/runner-sync'
43

54
test('basic', async (t) => {
65
const result = await runner('./basic.css')
@@ -56,18 +55,6 @@ test('handles cssSyntax errors', async (t) => {
5655
t.throws(runner('./wrongSyntax.css'), ([error]) => error.message.includes('Unclosed block'))
5756
})
5857

59-
test('sync loader works', (t) => {
60-
const result = runnerSync('./basic.css')
61-
62-
t.true(result.size === '10em')
63-
})
64-
65-
test('sync loader works with es5 ', (t) => {
66-
const result = runnerSync('./basic.css', { es5: true })
67-
68-
t.true(result.size === '10em')
69-
})
70-
7158
test('works with multiple roots', async (t) => {
7259
const result = await runner('./multipleRoots.css')
7360

0 commit comments

Comments
 (0)