mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-12 00:09:32 +00:00
Added linemanjs as frontend
This commit is contained in:
59
frontend/config/application.js
Normal file
59
frontend/config/application.js
Normal file
@@ -0,0 +1,59 @@
|
||||
/* Exports a function which returns an object that overrides the default &
|
||||
* plugin grunt configuration object.
|
||||
*
|
||||
* You can familiarize yourself with Lineman's defaults by looking at:
|
||||
*
|
||||
* - https://github.com/linemanjs/lineman/blob/master/config/application.coffee
|
||||
* - https://github.com/linemanjs/lineman/blob/master/config/plugins
|
||||
*
|
||||
* You can also ask about Lineman's config from the command line:
|
||||
*
|
||||
* $ lineman config #=> to print the entire config
|
||||
* $ lineman config concat_sourcemap.js #=> to see the JS config for the concat task.
|
||||
*/
|
||||
module.exports = function(lineman) {
|
||||
//Override application configuration here. Common examples follow in the comments.
|
||||
return {
|
||||
|
||||
// API Proxying
|
||||
//
|
||||
// During development, you'll likely want to make XHR (AJAX) requests to an API on the same
|
||||
// port as your lineman development server. By enabling the API proxy and setting the port, all
|
||||
// requests for paths that don't match a static asset in ./generated will be forwarded to
|
||||
// whatever service might be running on the specified port.
|
||||
//
|
||||
// server: {
|
||||
// apiProxy: {
|
||||
// enabled: true,
|
||||
// host: 'localhost',
|
||||
// port: 3000
|
||||
// }
|
||||
// },
|
||||
|
||||
// Sass
|
||||
//
|
||||
// Lineman supports Sass via grunt-contrib-sass, which requires you first
|
||||
// have Ruby installed as well as the `sass` gem. To enable it, uncomment the
|
||||
// following line:
|
||||
//
|
||||
// enableSass: true,
|
||||
|
||||
// Asset Fingerprints
|
||||
//
|
||||
// Lineman can fingerprint your static assets by appending a hash to the filename
|
||||
// and logging a manifest of logical-to-hashed filenames in dist/assets.json
|
||||
// via grunt-asset-fingerprint
|
||||
//
|
||||
// enableAssetFingerprint: true,
|
||||
|
||||
// LiveReload
|
||||
//
|
||||
// Lineman can LiveReload browsers whenever a file is changed that results in
|
||||
// assets to be processed, preventing the need to hit F5/Cmd-R every time you
|
||||
// make a change in each browser you're working against. To enable LiveReload,
|
||||
// comment out the following line:
|
||||
//
|
||||
// livereload: true
|
||||
|
||||
};
|
||||
};
|
||||
23
frontend/config/files.js
Normal file
23
frontend/config/files.js
Normal file
@@ -0,0 +1,23 @@
|
||||
/* Exports a function which returns an object that overrides the default &
|
||||
* plugin file patterns (used widely through the app configuration)
|
||||
*
|
||||
* To see the default definitions for Lineman's file paths and globs, see:
|
||||
*
|
||||
* - https://github.com/linemanjs/lineman/blob/master/config/files.coffee
|
||||
*/
|
||||
module.exports = function(lineman) {
|
||||
//Override file patterns here
|
||||
return {
|
||||
|
||||
// As an example, to override the file patterns for
|
||||
// the order in which to load third party JS libs:
|
||||
//
|
||||
// js: {
|
||||
// vendor: [
|
||||
// "vendor/js/underscore.js",
|
||||
// "vendor/js/**/*.js"
|
||||
// ]
|
||||
// }
|
||||
|
||||
};
|
||||
};
|
||||
1
frontend/config/lineman.js
Normal file
1
frontend/config/lineman.js
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require(process.env['LINEMAN_MAIN']);
|
||||
21
frontend/config/server.js
Normal file
21
frontend/config/server.js
Normal file
@@ -0,0 +1,21 @@
|
||||
/* Define custom server-side HTTP routes for lineman's development server
|
||||
* These might be as simple as stubbing a little JSON to
|
||||
* facilitate development of code that interacts with an HTTP service
|
||||
* (presumably, mirroring one that will be reachable in a live environment).
|
||||
*
|
||||
* It's important to remember that any custom endpoints defined here
|
||||
* will only be available in development, as lineman only builds
|
||||
* static assets, it can't run server-side code.
|
||||
*
|
||||
* This file can be very useful for rapid prototyping or even organically
|
||||
* defining a spec based on the needs of the client code that emerge.
|
||||
*
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
drawRoutes: function(app) {
|
||||
// app.get('/api/greeting/:message', function(req, res){
|
||||
// res.json({ message: "OK, "+req.params.message });
|
||||
// });
|
||||
}
|
||||
};
|
||||
9
frontend/config/spec.json
Normal file
9
frontend/config/spec.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"framework" : "jasmine",
|
||||
"launch_in_dev" : ["Chrome"],
|
||||
"launch_in_ci" : ["PhantomJS"],
|
||||
"src_files" : [
|
||||
"generated/js/app.js",
|
||||
"generated/js/spec.js"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user