npm install --save-dev gulp gulp-pug gulp-sass gulp-sourcemaps gulp-autoprefixer browser-sync
Here is a sample gulpfile for composing static webpages using pug and scss.
| [Stackoverflow attibution](https://stackoverflow.com/questions/15601469/jar-not-loaded-see-servlet-spec-2-3-section-9-7-2-offending-class-javax-serv) | |
| You may find the following windows command line useful in tracking down the offending jar file. | |
| it creates an index of all the class files in all the jars in the folder. Execute from within the lib folder of your deployed app, | |
| then search the index.txt file for the offending class. | |
| for /r %X in (*.jar) do (echo %X & jar -tf %X) >> index.txt |
brew install wget
This is adapted from the following article: https://www.rosehosting.com/blog/wget-command-examples/
wget http://gpxdb.com/samples.zip
| # editorconfig.org | |
| root = true | |
| [*] | |
| indent_style = space | |
| indent_size = 2 | |
| end_of_line = lf | |
| charset = utf-8 | |
| trim_trailing_whitespace = true |
| // https://tusharghate.com/rendering-pug-templates-with-multiple-data-files | |
| // Causes a deep merge into one combined json file. | |
| gulp.task('pug:combined', function() { | |
| return gulp.src('src/data/**/*.json') | |
| .pipe(merge({ | |
| fileName: 'combined.json' | |
| })) | |
| .pipe(gulp.dest('temp')); | |
| }); |