Open zoeames opened 6 years ago
Comment by zoeames Monday Oct 16, 2017 at 01:18 GMT
Files: javascripts/main.js lib/Grunfile.js index.html .gitignore package.json sass/_colors.scss sass/main.scss
Comment by zoeames Monday Oct 16, 2017 at 01:19 GMT
Gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
browserify: {
js: {
src: ['../javascripts/main.js'],
dest: '../dist/app.js'
}
},
sass: {
dist: {
files: {
'../styles/main.css': '../sass/main.scss'
}
}
},
jshint: {
options: {
predef: [ "document", "console", "$" ],
esnext: true,
globalstrict: true,
globals: {},
browserify: true
},
files: ['../javascripts/**/*.js']
},
watch: {
options: {
livereload: true,
},
sass: {
files: ['../sass/**/*.scss'],
tasks: ['sass']
},
javascripts: {
files: ['../javascripts/**/*.js'],
tasks: ['jshint', 'browserify']
}
}
});
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.registerTask('default', ['jshint', 'browserify', 'sass', 'watch']);
};
Comment by zoeames Monday Oct 16, 2017 at 01:22 GMT
index.html -
Comment by zoeames Monday Oct 16, 2017 at 01:25 GMT
npm init
npm install grunt grunt-contrib-jshint matchdep grunt-contrib-watch grunt-sass grunt-browserify jshint-stylish --save-dev
npm install jquery bootstrap --save
Story
As a developer, in order to DO ALL THE THINGS, I need the project to be setup
Acceptance Criteria
When the developer clones the repo Then they should have all the files they need