-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Started to build integrate Grunt workflow
- Loading branch information
Showing
75 changed files
with
615 additions
and
197 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"directory": "contents/assets/components" | ||
"directory": "vendor" | ||
} |
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 |
---|---|---|
@@ -1,4 +1,13 @@ | ||
contents/assets/components | ||
node_modules | ||
.idea | ||
build | ||
# compiled output | ||
/dist | ||
/tmp | ||
|
||
# dependencies | ||
/node_modules | ||
/vendor/* | ||
|
||
# misc | ||
/.sass-cache | ||
/connect.lock | ||
/libpeerconnection.log | ||
.DS_Store |
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,37 @@ | ||
{ | ||
"predef": [ | ||
"document", | ||
"window", | ||
"location", | ||
"setTimeout", | ||
"Ember", | ||
"Em", | ||
"DS", | ||
"$" | ||
], | ||
"node" : false, | ||
"browser" : false, | ||
"boss" : true, | ||
"curly": false, | ||
"debug": false, | ||
"devel": false, | ||
"eqeqeq": true, | ||
"evil": true, | ||
"forin": false, | ||
"immed": false, | ||
"laxbreak": false, | ||
"newcap": true, | ||
"noarg": true, | ||
"noempty": false, | ||
"nonew": false, | ||
"nomen": false, | ||
"onevar": false, | ||
"plusplus": false, | ||
"regexp": false, | ||
"undef": true, | ||
"sub": true, | ||
"strict": false, | ||
"white": false, | ||
"eqnull": true, | ||
"esnext": true | ||
} |
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,109 @@ | ||
module.exports = function(grunt) { | ||
|
||
var Helpers = require('./tasks/helpers'), | ||
filterAvailable = Helpers.filterAvailableTasks, | ||
_ = grunt.util._; | ||
|
||
Helpers.pkg = require("./package.json"); | ||
Helpers.embersmith = require("./embersmith.json"); | ||
|
||
if (Helpers.isPackageAvailable("time-grunt")) { | ||
require("time-grunt")(grunt); | ||
} | ||
|
||
// Loads task options from `tasks/options/` | ||
// and loads tasks defined in `package.json` | ||
var config = require('load-grunt-config')(grunt, { | ||
configPath: "tasks/options", | ||
init: false | ||
}); | ||
grunt.loadTasks('tasks'); // Loads tasks in `tasks/` folder | ||
|
||
config.env = process.env; | ||
|
||
|
||
// Generate the production version | ||
// ------------------ | ||
grunt.registerTask('dist', "Build a minified & production-ready version of your app.", [ | ||
'clean:dist', 'build:dist', 'copy:assemble', 'optimize' ]); | ||
|
||
// Default Task | ||
// ------------------ | ||
grunt.registerTask('default', "Start server.", ['server']); | ||
|
||
|
||
// Servers | ||
// ------------------- | ||
grunt.registerTask('server', "Run your server in development mode, auto-rebuilding when files change.", [ | ||
'clean:debug', | ||
'build:debug', | ||
'expressServer:debug', | ||
'watch' | ||
]); | ||
|
||
grunt.registerTask('server:dist', "Build and preview a minified & production-ready version of your app.", [ | ||
'dist', | ||
'expressServer:dist:keepalive' | ||
]); | ||
|
||
// Worker tasks | ||
// ================================= | ||
|
||
grunt.registerTask('build:dist', [ | ||
'concurrent:dist', // Tasks are ran in parallel, see config below | ||
]); | ||
|
||
grunt.registerTask('build:debug', [ | ||
'concurrent:debug', // Tasks are ran in parallel, see config below | ||
]); | ||
|
||
grunt.registerTask('optimize', [ | ||
'useminPrepare', | ||
'concat', | ||
'uglify', | ||
'copy:dist', | ||
'rev', | ||
'usemin' | ||
]); | ||
|
||
|
||
|
||
// Parallelize most of the build process | ||
_.merge(config, { | ||
concurrent: { | ||
dist: [ | ||
"buildScripts", | ||
"buildStyles", | ||
"buildContents" | ||
], | ||
debug: [ | ||
"buildScripts", | ||
"buildStyles", | ||
"buildContents" | ||
] | ||
} | ||
}); | ||
|
||
// Scripts | ||
grunt.registerTask('buildScripts', filterAvailable([ | ||
'coffee', | ||
'copy:javascriptToTmp', | ||
'jshint' | ||
])); | ||
|
||
// Styles | ||
grunt.registerTask('buildStyles', filterAvailable([ | ||
'less:compile', | ||
'cssmin' | ||
])); | ||
|
||
// HTML | ||
grunt.registerTask('buildContents', [ | ||
'embersmith:build', | ||
'preprocess:HTML' | ||
]); | ||
|
||
grunt.initConfig(config); | ||
|
||
|
||
}; |
This file was deleted.
Oops, something went wrong.
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
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 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,4 @@ | ||
--- | ||
title: Blog | ||
template: index.hbs | ||
--- |
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 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: WRKTG Inc. | ||
description: Working together from idea to launch | ||
template: frontpage.jade | ||
template: frontpage.hbs | ||
--- |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: Team | WRKTG Inc. | ||
title: Team | ||
description: Working together from idea to launch | ||
template: team.jade | ||
template: team.hbs | ||
--- |
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,14 @@ | ||
{ | ||
"locals": { | ||
"url": "http://wrktg.com", | ||
"dev": "http://localhost:8000", | ||
"name": "WRKTG", | ||
"owner": "WRKTG Inc." | ||
}, | ||
"port": 8000, | ||
"markdown": { | ||
"smartLists": true, | ||
"smartypants": true | ||
}, | ||
"output": "./tmp/public" | ||
} |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.