Skip to content

Commit

Permalink
feat(*): update deps (#17)
Browse files Browse the repository at this point in the history
* feat(*): update deps

* chore(*): update after linting

* chore(*): update arui-presets to the latest

* feat(*): update deps

* chore(*): remove wrong main field in package.json

* refactor(*): fix linting errors after presets update
  • Loading branch information
tx44 authored Nov 29, 2017
1 parent a042cf0 commit 7af2675
Show file tree
Hide file tree
Showing 10 changed files with 7,601 additions and 6,151 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ script:

after_script:
- greenkeeper-lockfile-upload
- if [ -n "${TRAVIS_TAG}" ]; then npm run github-release; fi
54 changes: 32 additions & 22 deletions gulp-tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@ function createTasks(packageName, options = {}) {
gulp.task('clean', () => del([options.publishDir]));
gulp.task('clean:docs', () => del([options.publishDir]));

gulp.task('js', ['clean'], () => gulp.src(options.jsGlob)
.pipe(sourcemaps.init())
.pipe(babel())
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(options.publishDir))
gulp.task(
'js', ['clean'],
() => gulp.src(options.jsGlob)
.pipe(sourcemaps.init())
.pipe(babel())
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(options.publishDir))
);

gulp.task('ts:compile', ['clean'], () => {
Expand All @@ -58,9 +60,11 @@ function createTasks(packageName, options = {}) {
.pipe(gulp.dest(options.publishDir));
});

gulp.task('ts:packages', ['clean'], () => gulp.src(options.tsComponentsGlob)
.pipe(componentPackage())
.pipe(gulp.dest(options.publishDir))
gulp.task(
'ts:packages', ['clean'],
() => gulp.src(options.tsComponentsGlob)
.pipe(componentPackage())
.pipe(gulp.dest(options.publishDir))
);

gulp.task('ts', ['ts:compile', 'ts:packages']);
Expand All @@ -80,25 +84,33 @@ function createTasks(packageName, options = {}) {
.pipe(gulp.dest(options.publishDir));
});

gulp.task('css:compile', ['clean'], () => gulp.src(options.cssGlob)
.pipe(sourcemaps.init())
.pipe(postcss())
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(options.publishDir))
gulp.task(
'css:compile', ['clean'],
() => gulp.src(options.cssGlob)
.pipe(sourcemaps.init())
.pipe(postcss())
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(options.publishDir))
);

gulp.task('css:copy', ['clean'], () => gulp.src(options.cssCopyGlob)
.pipe(gulp.dest(options.publishDir))
gulp.task(
'css:copy', ['clean'],
() => gulp.src(options.cssCopyGlob)
.pipe(gulp.dest(options.publishDir))
);

gulp.task('css', ['css:copy', 'css:compile']);

gulp.task('resources', ['clean'], () => gulp.src(options.resourcesGlob)
.pipe(gulp.dest(options.publishDir))
gulp.task(
'resources', ['clean'],
() => gulp.src(options.resourcesGlob)
.pipe(gulp.dest(options.publishDir))
);

gulp.task('publish-files', ['clean'], () => gulp.src(options.publishFilesGlob)
.pipe(gulp.dest(options.publishDir))
gulp.task(
'publish-files', ['clean'],
() => gulp.src(options.publishFilesGlob)
.pipe(gulp.dest(options.publishDir))
);

gulp.task('docs', ['clean:docs'], () => {
Expand Down Expand Up @@ -128,9 +140,7 @@ function createTasks(packageName, options = {}) {
.pipe(gulp.dest(options.docsDir));
});

gulp.task('compile',
['js', 'css', 'resources', 'typings', 'publish-files'].concat(isTsEnabled ? ['ts'] : [])
);
gulp.task('compile', ['js', 'css', 'resources', 'typings', 'publish-files'].concat(isTsEnabled ? ['ts'] : []));
}

module.exports = createTasks;
2 changes: 1 addition & 1 deletion gulp/component-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function componentDocs(libraryName) {
cwd: file.cwd,
base: file.base,
path: `${path.dirname(file.path)}/README.md`,
contents: new Buffer(doc)
contents: Buffer.from(doc)
}));
} catch (e) {
console.warn(`unable to build docs for ${file.path}`);
Expand Down
2 changes: 1 addition & 1 deletion gulp/component-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function componentPackage() {
cwd: file.cwd,
base: file.base,
path: path.join(dirname, 'package.json'),
contents: new Buffer(getComponentPackage(file))
contents: Buffer.from(getComponentPackage(file))
}));
}

Expand Down
2 changes: 1 addition & 1 deletion gulp/component-typings.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function componentTypings() {
cwd: file.cwd,
base: file.base,
path: path.join(path.dirname(file.path), `${componentName}.d.ts`),
contents: new Buffer(definitionsContent)
contents: Buffer.from(definitionsContent)
}));
}).catch((e) => {
console.error(e);
Expand Down
2 changes: 1 addition & 1 deletion gulp/library-doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function libraryDoc(libraryName) {
const content = ejs.render(TEMPLATE_INDEX, { components, libraryName });
this.push(new Vinyl({
path: latestFile.path,
contents: new Buffer(content)
contents: Buffer.from(content)
}));

callback();
Expand Down
Loading

0 comments on commit 7af2675

Please sign in to comment.