-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify sqwidget layout to be more suitable for module
- Loading branch information
Showing
26 changed files
with
90 additions
and
238 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": "sqwidget/lib" | ||
"directory": "lib" | ||
} |
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,6 +1,7 @@ | ||
.DS_Store | ||
node_modules/ | ||
config.js | ||
lib/ | ||
|
||
# temporary! | ||
dist/ | ||
|
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,21 @@ | ||
PATH := ./node_modules/.bin:${PATH} | ||
|
||
.PHONY : init bower build test dist publish | ||
|
||
init: bower | ||
npm install | ||
|
||
build: | ||
grunt build | ||
|
||
test: | ||
grunt test | ||
|
||
bower: | ||
bower install | ||
|
||
dist: | ||
grunt dist | ||
|
||
publish: dist | ||
npm publish |
File renamed without changes.
File renamed without changes.
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,19 +1,22 @@ | ||
{ | ||
"name": "pa-widgets", | ||
"title": "Widgets for Press Association", | ||
"name": "sqwidget", | ||
"title": "Sqwidget", | ||
"version": "2.0.0", | ||
"contributors": [ | ||
"Adhip Gupta <[email protected]>", | ||
"Simon Elliott <[email protected]>" | ||
], | ||
"main": "compiled/js/sqwidget.js", | ||
"engines": { | ||
"node": ">= 0.8.0" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"grunt": "latest", | ||
"grunt-contrib-connect": "latest", | ||
"grunt-contrib-clean": "latest", | ||
"grunt-contrib-requirejs": "~0.4.1", | ||
"grunt-contrib-coffee": "latest", | ||
"grunt-contrib-livereload": "latest", | ||
"grunt-contrib-watch": "~0.5.3", | ||
"grunt-contrib-copy": "~0.4.1", | ||
"karma-script-launcher": "~0.1.0", | ||
|
@@ -27,5 +30,8 @@ | |
"karma-mocha": "~0.1.0", | ||
"karma-sinon": "0.0.1", | ||
"karma-chai-plugins": "~0.1.3" | ||
} | ||
}, | ||
"scripts": { | ||
"test": "make test" | ||
}, | ||
} |
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.
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,23 @@ | ||
tests = [] | ||
|
||
for file of window.__karma__.files | ||
if /spec\//.test(file) | ||
tests.push(file) | ||
|
||
|
||
requirejs.config | ||
baseUrl: "/base/compiled/js/" | ||
paths: | ||
chai: '../../node_modules/karma-chai-plugins/node_modules/chai/chai' | ||
jquery: '../../lib/jquery/jquery' | ||
underscore: '../../lib/underscore-amd/underscore' | ||
backbone: '../../lib/backbone-amd/backbone' | ||
|
||
deps: tests | ||
callback: -> | ||
#set the URI for the example widgets to the karma server port | ||
window.__karma__.start() | ||
|
||
#list all your unit files here | ||
#require ["angular", "angularMocks", "/compiled/js/test/unit.js"], -> | ||
#window.__karma__.start() |
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.
Oops, something went wrong.