Skip to content

Commit

Permalink
adapted tasks/clean and hopefully tasks/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragos Cirjan committed Feb 9, 2019
1 parent 095de46 commit 01499af
Show file tree
Hide file tree
Showing 32 changed files with 22 additions and 3,338 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ Fork the repo then clone it
`$ git clone [email protected]:YourUsername/aurelia-content-loader.git && cd aurelia-content-loader`

(or `$ npm install --global gulp-cli`): Install Gulp cli tool.

`$ yarn` (or `$ npm i`): Install the dependencies;

`$ yarn build` (or `$ npm run build`): Build to production;
Expand Down
14 changes: 6 additions & 8 deletions build/tasks/clean.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
var gulp = require('gulp');
var paths = require('../paths');
var del = require('del');
var vinylPaths = require('vinyl-paths');

const del = require('del');
const paths = require('../paths');

// deletes all files in the output path
gulp.task('clean', function() {
return gulp.src([paths.output])
.pipe(vinylPaths(del));
});
exports.clean = function(cb) {
return del([paths.output + '/**/*']);
};
15 changes: 7 additions & 8 deletions build/tasks/dev.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
var gulp = require('gulp');
var tools = require('aurelia-tools');
var args = require('../args');
const tools = require('aurelia-tools');
const args = require('../args');

// source code for the tasks called in this file
// is located at: https://github.com/aurelia/tools/blob/master/src/dev.js

// updates dependencies in this folder
// from folders in the parent directory
gulp.task('update-own-deps', function() {
tools.updateOwnDependenciesFromLocalRepositories(args.depth);
});
exports['update-own-deps'] = function() {
return tools.updateOwnDependenciesFromLocalRepositories(args.depth);
};

// quickly pulls in all of the aurelia
// github repos, placing them up one directory
// from where the command is executed,
// then runs `npm install`
// and `gulp build` for each repo
gulp.task('build-dev-env', function() {
exports['build-dev-env'] = function() {
tools.buildDevEnv();
});
};
154 changes: 0 additions & 154 deletions dist/amd/code-loader.js

This file was deleted.

Loading

0 comments on commit 01499af

Please sign in to comment.