Skip to content

Commit

Permalink
Remove unused gulp dependency and tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
knor-el-snor committed May 2, 2018
1 parent e2ae780 commit fcd6394
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 671 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ yarn-error.log

# Folders with locales
src/locales/
locales/
33 changes: 1 addition & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Treehouse translations

Import translations from iCapps translation service
Import translations from icapps translation service

[![npm version](https://badge.fury.io/js/tree-house-translations.svg)](https://badge.fury.io/js/tree-house-translations)
[![Dependencies](https://david-dm.org/icapps/tree-house-translations.svg)](https://david-dm.org/icapps/tree-house-translations.svg)
Expand Down Expand Up @@ -90,37 +90,6 @@ $ translations import
--export-type [value] define export type. Options: (json, plist). Default: json
```

## Gulp

```javascript
var gulp = require('gulp');
var importTranslations = require('./lib').import;
var exec = require('child_process').exec;

// Import translations
gulp.task('translations:import', function(cb) {
return importTranslations(
'http://api-url.dev',
'XXXXXXXXXXXXXXXXXXXXXX',
{
clean: true,
verbose: true,
seperateTranslations: true,
}
);
});


// List translation files, this task dependends on the import task.
// If we run this task, the async'ness can be tested.
gulp.task('translations:list', ['translations:import'], function(cb) {
exec('ls ./src/locales', function(error, stdout, stderr) {
console.log('stdout: ', stdout);
});
});

```

## Build the module

```bash
Expand Down
27 changes: 0 additions & 27 deletions gulpfile.js

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"dependencies": {
"commander": "~2.15.1",
"del": "~3.0.0",
"gulp": "~3.9.0",
"inquirer": "~5.2.0",
"lodash": "~4.17.10",
"mkdirp": "~0.5.1",
Expand Down

0 comments on commit fcd6394

Please sign in to comment.