Skip to content

Commit

Permalink
update files
Browse files Browse the repository at this point in the history
  • Loading branch information
camshaft authored and mndvns committed Feb 17, 2014
1 parent dd50582 commit 797211d
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 39 deletions.
4 changes: 2 additions & 2 deletions files/component.json
Expand Up @@ -5,13 +5,13 @@
"version": "0.0.1",
"keywords": [],
"dependencies": {
"CamShaft/simple-ui": "*"
"camshaft/simple-ui": "*",
"camshaft/component-angular": "NG_VERSION"
},
"development": {},
"main": "public/javascripts/main.js",
"scripts": [
"public/javascripts/index.js",
"public/javascripts/main.js",
"public/javascripts/routes.js"
],
"styles": [
Expand Down
2 changes: 1 addition & 1 deletion files/package.json
Expand Up @@ -16,7 +16,7 @@
"npm": "1.x.x"
},
"dependencies": {
"simple-stack-ui": "~0.2.2",
"simple-stack-ui": "~0.3.5",
"startup": "~0.3.0",
"envs": "~0.1.4"
},
Expand Down
16 changes: 15 additions & 1 deletion files/public/javascripts/index.js
Expand Up @@ -2,4 +2,18 @@
* Module dependencies
*/

module.exports = require('simple-ui')('PROJECT', []);
module.exports = require('simple-ui')('PROJECT', [], require);

/**
* Initialize partials
*/

app.initPartial('header');
app.initPartial('footer');
app.initPartial('sidenav');

/**
* Start app
*/

app.start();
33 changes: 0 additions & 33 deletions files/public/javascripts/main.js

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "simple-stack-ui",
"version": "0.3.4",
"version": "0.3.5",
"description": "UI simple stack",
"main": "index.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion tasks.mk
Expand Up @@ -2,6 +2,7 @@ PROJECT ?= $(notdir $(CURDIR))
DESCRIPTION ?= A simple app
ORGANIZATION ?= $(PROJECT)
REPO ?= $(ORGANIZATION)/$(PROJECT)
NG_VERSION ?= *

JS_FILES = $(shell find public -type f -name '*.js')
CSS_FILES = $(shell find public -type f -name '*.css')
Expand Down Expand Up @@ -85,7 +86,7 @@ $(DIRS):
@mkdir -p $@

$(FILES):
@awk '{gsub(/PROJECT/, "$(PROJECT)"); gsub(/DESCRIPTION/, "$(DESCRIPTION)"); gsub(/REPO/, "$(REPO)");print}' \
@awk '{gsub(/PROJECT/, "$(PROJECT)"); gsub(/DESCRIPTION/, "$(DESCRIPTION)"); gsub(/REPO/, "$(REPO)"); gsub(/NG_VERSION/, "$(NG_VERSION)");print}' \
$(SIMPLE_STACK)/files/$@ > $@

.PHONY: clean build prod init install lint

0 comments on commit 797211d

Please sign in to comment.