-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* src & dist directory * Working watch on all JS, SASS, Twig, and JSON * Adds working map files * Restores some Grunt tasks and replaces what now has npm scripts with a grunt run npm script instead. * Moved assets to kss-assets where they should have been in the first place * Changed up the npm scripts so they don't call everything all the time. Added a new dev function to do that. * Compiles the KSS theme as well.
- Loading branch information
Showing
591 changed files
with
7,923 additions
and
1,825 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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,96 @@ | ||
/** | ||
* Gruntfile. | ||
* @type {[type]} | ||
*/ | ||
module.exports = function(grunt) { | ||
|
||
/** | ||
* [pkg description] | ||
* @type {[type]} | ||
*/ | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
browserSync: { | ||
dev: { | ||
bsFiles: { | ||
src : [ | ||
'styleguide/css/decanter.css', | ||
'styleguide/**/*.html' | ||
] | ||
}, | ||
options: { | ||
watchTask: true, | ||
server: './styleguide' | ||
} | ||
} | ||
}, | ||
clean: { | ||
postdeploy: { | ||
src: [ | ||
'.styleguide_site' | ||
] | ||
} | ||
}, | ||
run: { | ||
options: { | ||
wait: 0 | ||
}, | ||
webpack: { | ||
"cmd": "npm", | ||
'args': ['run-script', 'build'] | ||
}, | ||
styleguide: { | ||
"cmd": "npm", | ||
"args": ['run-script', 'styleguide'] | ||
}, | ||
watch: { | ||
"cmd": "npm", | ||
"args": ['run-script', 'watch'] | ||
}, | ||
}, | ||
deploy_site: { | ||
styleguide: { | ||
options: { | ||
branch: 'master', | ||
commit_msg: 'autocommit', | ||
deploy_url: 'http://decanter.stanford.edu' | ||
}, | ||
base_path: 'styleguide', | ||
remote_url: '[email protected]:SU-SWS/decanter.github.io' | ||
} | ||
}, | ||
deprecated_notice: { | ||
styleguide: "This function has been deprecated in favor of `npm run-script styleguide` and will be removed in future versions. Executing now.", | ||
compile: "This function has been deprecated in favor of `npm run-script build` and will be removed in future versions. Executing now.", | ||
sasslint: "This function has been deprecated in favor of `npm run-script lint` and will be removed in future versions.", | ||
sass: "This function has been deprecated in favor of `npm run-script build` and will be removed in future versions.", | ||
watch: "This function has been deprecated in favor of `npm run-script watch` and will be removed in future versions." | ||
} | ||
}); | ||
|
||
// Create a Deprecated notice task. | ||
grunt.task.registerTask('deprecated_notice', 'Logs a deprecated message.', function(arg1) { | ||
grunt.log.write(grunt.config.data.deprecated_notice[arg1]); | ||
}); | ||
|
||
// Load up tasks. | ||
grunt.loadNpmTasks('grunt-run'); | ||
grunt.loadNpmTasks('grunt-browser-sync'); | ||
grunt.loadNpmTasks('grunt-contrib-clean'); | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-deploy-site'); | ||
|
||
// Register some new ones. | ||
grunt.registerTask('deploy', ['styleguide', 'deploy_site:styleguide', 'clean:postdeploy']); | ||
grunt.registerTask('webpack', ['run:webpack']); | ||
grunt.registerTask('dev', ['styleguide', 'browserSync', 'run:watch']); | ||
grunt.registerTask('default', ['dev']); | ||
|
||
// Deprecated tasks. | ||
grunt.registerTask('styleguide', ['run:webpack', 'run:styleguide', 'deprecated_notice:styleguide']); | ||
grunt.registerTask('compile', ['deprecated_notice:compile', 'run:webpack']); | ||
grunt.registerTask('sass', ['deprecated_notice:sass']); | ||
grunt.registerTask('sasslint', ['deprecated_notice:sasslint']); | ||
grunt.registerTask('watch', ['deprecated_notice:watch']); | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
core/templates/layout/flex/three-column/battleship/battleship.json
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
core/templates/layout/grid/three-column/battleship/battleship.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.