-
Notifications
You must be signed in to change notification settings - Fork 20
Code: Adding a Gulpfile/package.json #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
adam-james
wants to merge
12
commits into
codefellows-sea-d45-javascript:master
Choose a base branch
from
adam-james:npm-gulp
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c04e463
Attempting to test command line input (unfinished)
adam-james 5d85189
Set up package.json and start gulpfile
adam-james 7b1cacc
Test command-line args
adam-james a06c56e
Remove extra file new_file
adam-james 7f461d4
Merge branch 'adam_sulewski' into npm-gulp
adam-james 4c4496c
Config gulp file
adam-james e7d6943
Use gitignore
adam-james 717aa6e
gitignore?
adam-james 17f56f8
remove node_modules
adam-james cfb6eeb
reinstall node_modules
adam-james af1b44c
Add test from wed's class
adam-james 0706db3
Revert changes to original git ignore
adam-james File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| node_modules/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "node": true, | ||
| "globals": { | ||
| "describe": true, | ||
| "it": true, | ||
| "before": true, | ||
| "beforeEach": true, | ||
| "after": true | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| var gulp = require('gulp'); | ||
| var jshint = require('gulp-jshint'); | ||
| var mocha = require('gulp-mocha'); | ||
|
|
||
| var appFiles = ['index.js', 'lib/**/*.js', 'gulpfile.js']; | ||
| var testFiles = ['test/**/*.js']; | ||
| var files = appFiles.concat(testFiles); | ||
|
|
||
| gulp.task('mocha', ['jshint'], function() { | ||
| return gulp.src('test/greet_test.js', {read: false}) | ||
| .pipe(mocha()); | ||
| }); | ||
|
|
||
| gulp.task('jshint:test', function() { | ||
| return gulp.src(testFiles) | ||
| .pipe(jshint()) | ||
| .pipe(jshint.reporter('default')) | ||
| .pipe(jshint.reporter('fail')); | ||
| }); | ||
|
|
||
| gulp.task('jshint:app', function() { | ||
| return gulp.src(appFiles) | ||
| .pipe(jshint()) | ||
| .pipe(jshint.reporter('default')) | ||
| .pipe(jshint.reporter('fail')); | ||
| }); | ||
|
|
||
| gulp.task('watch', function() { | ||
| gulp.watch(files, ['mocha']); | ||
| }); | ||
|
|
||
| gulp.task('jshint', ['jshint:test', 'jshint:app']); | ||
| gulp.task('default', ['mocha']); | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you might be able to pass in multiple glob arrays.