Skip to content

Commit 98d960f

Browse files
authored
Merge pull request #8 from jedmao/update-deps
v1.1.5: Fix issue #5, retire Babel, update deps
2 parents 6bb72d3 + 1607eee commit 98d960f

23 files changed

+113
-329
lines changed

.babelrc

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

.eslintrc

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

.tasks/gulp-clean.js renamed to .tasks/gulp-clean.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import gulp from 'gulp';
2-
import rimraf from 'gulp-rimraf';
1+
import * as gulp from 'gulp';
2+
var rimraf = require('gulp-rimraf');
33

44
export default () => {
55
return gulp.src([

.tasks/gulp-copy.js

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

.tasks/gulp-copy.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import * as gulp from 'gulp';
2+
3+
export default () => {
4+
return gulp.src(
5+
[
6+
'build/lib/**/*.js',
7+
'build/lib/**/*.d.ts'
8+
],
9+
{ base: 'build' }
10+
)
11+
.pipe(gulp.dest('dist'));
12+
};

.tasks/gulp-eslint.js

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

.tasks/gulp-scripts.js

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

.tasks/gulp-test.js

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

.tasks/gulp-tslint.js renamed to .tasks/gulp-tslint.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import gulp from 'gulp';
2-
import plumber from 'gulp-plumber';
3-
import tslint from 'gulp-tslint';
1+
import * as gulp from 'gulp';
2+
var plumber = require('gulp-plumber');
3+
var tslint = require('gulp-tslint');
44

55
export default () => {
66
return gulp.src([

.tasks/gulp-typescript.js

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

.tasks/gulp-watch.js

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

.travis.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
language: node_js
2-
3-
node_js:
4-
- '5.5'
5-
- '4.2' #LTS
6-
7-
notifications:
8-
email:
9-
on_success: change
10-
on_failure: always
1+
language: node_js
2+
3+
node_js:
4+
- "node"
5+
- "4"
6+
7+
notifications:
8+
email:
9+
on_success: change
10+
on_failure: always

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
## 1.1.5
2+
- Fix build, PostCSS dependency.
3+
14
## 1.1.2
25
- Supports PostCSS 5.2.9.
36

7+
## 1.1.1
8+
- Fix module resolution (fixes [`#5`](https://github.com/jedmao/postcss-nested-props/issues/5)).
9+
410
## 1.1.0
511
- [Supports vendor pseudo elements](https://github.com/jedmao/postcss-nested-props/pull/4). Thanks [@ooHmartY](https://github.com/ooHmartY)!
612

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ postcss([ require('postcss-nested-props') ]);
7676

7777
```ts
7878
///<reference path="node_modules/postcss-nested-props/.d.ts" />
79-
import postcssNestedProps from 'postcss-nested-props';
79+
import * as postcssNestedProps from 'postcss-nested-props';
8080

8181
postcss([ postcssNestedProps ]);
8282
```

build/.eslintrc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
{
2-
"rules": {
3-
"indent": [2, 4, {
4-
"SwitchCase": 1
5-
}]
6-
}
7-
}
1+
{
2+
"rules": {
3+
"indent": [2, 4, {
4+
"SwitchCase": 1
5+
}]
6+
}
7+
}

build/test/.eslintrc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{
2-
"env": {
3-
"mocha": true
4-
}
5-
}
1+
{
2+
"env": {
3+
"mocha": true
4+
}
5+
}

gulpfile.babel.js

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

gulpfile.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import * as gulp from 'gulp';
2+
3+
function loadTask(taskName: string) {
4+
return require(`./.tasks/gulp-${taskName}`).default;
5+
}
6+
7+
gulp.task('default', ['tslint']);
8+
gulp.task('clean', loadTask('clean'));
9+
gulp.task('tslint', loadTask('tslint'));
10+
gulp.task('copy', loadTask('copy'));

0 commit comments

Comments
 (0)