Skip to content

Commit

Permalink
Setup ignore files
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieTheWagner committed Jul 3, 2018
1 parent 434a6c3 commit fb1c5bb
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 13 deletions.
15 changes: 10 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
.DS_Store
.idea
.sass-cache
dist/
node_modules/
/.idea/
/dist/
/node_modules/

/.DS_Store
/.sass-cache
/docs/ocean.css
/index.html
/npm-debug.log*
/yarn-error.log
9 changes: 9 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.idea/
docs/
tests/

.eslintrc.js
.gitignore
.travis.yml
index.html
yarn.lock
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ jobs:
fi
- stage: gh-pages release
script:
- yarn build
- yarn docs
before_deploy:
- git add -f index.html
- git add -f --all docs/
- git add -f --all dist/
deploy:
provider: pages
Expand Down
11 changes: 4 additions & 7 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,8 @@ gulp.task('markdown:docs', () => {
}
})
)
.pipe(rename(function(path) {
path.extname = '.html';
}))
.pipe(gulp.dest('./docs/'));
.pipe(rename('index.html'))
.pipe(gulp.dest('./'));

gulp.src('./node_modules/highlight.js/styles/ocean.css')
.pipe(gulp.dest('./docs'));
Expand All @@ -89,8 +87,6 @@ gulp.task('css:docs', function() {
.pipe(gulp.dest('./docs/welcome/css'));
});

gulp.task('docs', ['css:docs', 'markdown:docs']);

// Make a copy of popper available to those not using bundling
gulp.task('copy-popper', function() {
gulp.src('./node_modules/popper.js/dist/umd/popper.js')
Expand Down Expand Up @@ -129,6 +125,7 @@ gulp.task('watch', ['js', 'css', 'eager'], function() {


// Defaults
gulp.task('build', ['js', 'css', 'eager', 'copy-popper', 'docs']);
gulp.task('build', ['js', 'css', 'eager', 'copy-popper']);
gulp.task('docs', ['build', 'css:docs', 'markdown:docs']);
gulp.task('default', ['build']);

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
],
"scripts": {
"build": "gulp build",
"docs": "gulp docs",
"lint": "eslint ./src/js/shepherd.js"
},
"homepage": "http://shipshapecode.github.io/shepherd/docs/welcome/",
Expand Down

0 comments on commit fb1c5bb

Please sign in to comment.