diff --git a/README.md b/README.md index e0d1100f0..caa80b091 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,8 @@ You can read documentation on the cli [here](http://aurelia.io/docs/build-system 2. Go into the cli directory: `cd cli` 3. Run `npm install` 4. Link the cli with: `npm link` -5. Still in the cli directory, run `npm install gulp@^4.0.0 babel-polyfill babel-register typescript` -6. Create a new project with `au new` or use an existing project. The linked CLI will be used to create the project. -7. In the project directory, run `npm link aurelia-cli`. The linked CLI will then be used for `au` commands such as `au run` +7. Create a new project with `au new` or use an existing project. The linked CLI will be used to create the project. +8. In the project directory, run `npm link aurelia-cli`. The linked CLI will then be used for `au` commands such as `au run` ## Running the Tests diff --git a/build/tasks/prepare-release.js b/build/tasks/prepare-release.js index bc1b038f6..4a568a049 100644 --- a/build/tasks/prepare-release.js +++ b/build/tasks/prepare-release.js @@ -1,5 +1,4 @@ var gulp = require('gulp'); -var runSequence = require('run-sequence'); var paths = require('../paths'); var conventionalChangelog = require('gulp-conventional-changelog'); var fs = require('fs'); @@ -7,7 +6,7 @@ var bump = require('gulp-bump'); var args = require('../args'); gulp.task('bump-version', function(){ - return gulp.src(['./package.json', './bower.json']) + return gulp.src(['./package.json']) .pipe(bump({type:args.bump })) //major|minor|patch|prerelease .pipe(gulp.dest('./')); }); @@ -21,12 +20,9 @@ gulp.task('changelog', function () { .pipe(gulp.dest(paths.doc)); }); -gulp.task('prepare-release', function(callback){ - return runSequence( - 'lint', - 'bump-version', - 'changelog', - 'update-cli-dependenciesjs', - callback - ); -}); +gulp.task('prepare-release', gulp.series( + 'lint', + 'bump-version', + 'changelog', + 'update-cli-dependenciesjs' +)); diff --git a/gulpfile.js b/gulpfile.js index 978fd983c..50b1df216 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1 +1,6 @@ -require('require-dir')('build/tasks'); +'use strict'; +require('./build/tasks/generate-projects.js'); +require('./build/tasks/lint.js'); +require('./build/tasks/release-check.js'); +require('./build/tasks/update-dependenciesjs.js'); +require('./build/tasks/prepare-release.js'); diff --git a/package.json b/package.json index 2f91243a2..892766a6f 100644 --- a/package.json +++ b/package.json @@ -33,16 +33,20 @@ "aurelia-polyfills": "^1.0.0", "esprima": "^4.0.0", "glob": "^7.1.1", + "gulp": "github:gulpjs/gulp#4.0", "npm": "^6.1.0", "npm-which": "^3.0.1", "preprocess": "^3.1.0", "rfc6902": "^1.2.2", - "semver": "^5.3.0" + "semver": "^5.3.0", + "typescript": "^2.0.0", + "opn": "^5.0.0", + "babel-register": "^6.0.0", + "babel-polyfill": "^6.0.0" }, "devDependencies": { "aurelia-tools": "^0.2.4", "babel-eslint": "^7.1.1", - "gulp": "^3.9.1", "gulp-bump": "^2.7.0", "gulp-clean": "^0.4.0", "gulp-conventional-changelog": "^1.1.3", @@ -54,8 +58,6 @@ "mock-fs": "^4.2.0", "nodemon": "^1.11.0", "puppeteer": "^1.1.1", - "require-dir": "^0.3.1", - "run-sequence": "^1.2.2", "yargs": "^7.0.2" } }