reinit project with dependencies to build a bingo board
This commit is contained in:
parent
c9ae6adf50
commit
14ccb101ae
25
.editorconfig
Normal file
25
.editorconfig
Normal file
@ -0,0 +1,25 @@
|
||||
# EditorConfig helps developers define and maintain consistent
|
||||
# coding styles between different editors and IDEs
|
||||
# editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
|
||||
[*]
|
||||
|
||||
# change these settings to your own preference
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
# we recommend you to keep these unchanged
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[{package,bower}.json]
|
||||
indent_style = space
|
||||
indent_size = 2
|
36
.gitignore
vendored
36
.gitignore
vendored
@ -1,33 +1,5 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
|
||||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (http://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directory
|
||||
node_modules
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
dist
|
||||
.tmp
|
||||
bower_components
|
||||
test/bower_components
|
||||
|
3
.idea/copyright/profiles_settings.xml
Normal file
3
.idea/copyright/profiles_settings.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<component name="CopyrightManager">
|
||||
<settings default="" />
|
||||
</component>
|
8
.idea/fromage-js.iml
Normal file
8
.idea/fromage-js.iml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
8
.idea/modules.xml
Normal file
8
.idea/modules.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/fromage-js.iml" filepath="$PROJECT_DIR$/.idea/fromage-js.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
6
.idea/vcs.xml
Normal file
6
.idea/vcs.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
633
.idea/workspace.xml
Normal file
633
.idea/workspace.xml
Normal file
@ -0,0 +1,633 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="e0ed8919-71cf-4a0f-9de7-89982f172017" name="Default" comment="">
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.bowerrc" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/vcs.xml" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.jshintrc" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.travis.yml" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/GulpFile.js" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bower.json" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/editorconfig" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/karma-e2e.conf.js" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/karma.conf.js" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/coffee/main.coffee" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/coffee/services/myService.coffee" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/html/index.html" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/html/tpl/main.html" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/json/squares.json" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/sass/_extendables.scss" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/sass/_global.scss" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/sass/_interactions.scss" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/sass/_nav.scss" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/sass/_overrides.scss" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/sass/_pages.scss" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/sass/_vars.scss" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/sass/main.scss" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/scripts/app.js" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/scripts/scripts.js" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/tests/e2e/main.js" />
|
||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/tests/spec/app.js" />
|
||||
<change type="DELETED" beforePath="$PROJECT_DIR$/LICENSE" afterPath="" />
|
||||
<change type="DELETED" beforePath="$PROJECT_DIR$/src/fromage.coffee" afterPath="" />
|
||||
<change type="DELETED" beforePath="$PROJECT_DIR$/src/fromage.js" afterPath="" />
|
||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.gitignore" afterPath="$PROJECT_DIR$/.gitignore" />
|
||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
|
||||
</list>
|
||||
<ignored path="fromage-js.iws" />
|
||||
<ignored path=".idea/workspace.xml" />
|
||||
<ignored path=".idea/dataSources.local.xml" />
|
||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||
<option name="TRACKING_ENABLED" value="true" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
||||
<component name="CreatePatchCommitExecutor">
|
||||
<option name="PATCH_PATH" value="" />
|
||||
</component>
|
||||
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
|
||||
<component name="FavoritesManager">
|
||||
<favorites_list name="fromage-js" />
|
||||
</component>
|
||||
<component name="FileEditorManager">
|
||||
<leaf>
|
||||
<file leaf-file-name=".gitignore" pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/.gitignore">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="0">
|
||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="GulpFile.js" pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/GulpFile.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="94">
|
||||
<caret line="88" column="34" selection-start-line="88" selection-start-column="34" selection-end-line="88" selection-end-column="34" />
|
||||
<folding>
|
||||
<element signature="e#783#806#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="main.js" pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/dist/js/main.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="75">
|
||||
<caret line="6" column="43" selection-start-line="6" selection-start-column="43" selection-end-line="6" selection-end-column="43" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="squares.json" pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/src/json/squares.json">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="540">
|
||||
<caret line="36" column="5" selection-start-line="36" selection-start-column="5" selection-end-line="36" selection-end-column="5" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="main.coffee" pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/src/coffee/main.coffee">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="60">
|
||||
<caret line="4" column="14" selection-start-line="4" selection-start-column="14" selection-end-line="4" selection-end-column="14" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="index.html" pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/src/html/index.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="345">
|
||||
<caret line="42" column="42" selection-start-line="42" selection-start-column="42" selection-end-line="42" selection-end-column="42" />
|
||||
<folding>
|
||||
<marker date="1465656094369" expanded="true" signature="842:996" placeholder="..." />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="main.html" pinned="false" current-in-tab="true">
|
||||
<entry file="file://$PROJECT_DIR$/src/html/tpl/main.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="15">
|
||||
<caret line="1" column="9" selection-start-line="1" selection-start-column="9" selection-end-line="1" selection-end-column="9" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
</leaf>
|
||||
</component>
|
||||
<component name="Git.Settings">
|
||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="IdeDocumentHistory">
|
||||
<option name="CHANGED_PATHS">
|
||||
<list>
|
||||
<option value="$PROJECT_DIR$/dist/js/main.js" />
|
||||
<option value="$PROJECT_DIR$/package.json" />
|
||||
<option value="$PROJECT_DIR$/dist/index.html" />
|
||||
<option value="$PROJECT_DIR$/src/html_wired/index.html" />
|
||||
<option value="$PROJECT_DIR$/README.md" />
|
||||
<option value="$PROJECT_DIR$/src/json/squares.json" />
|
||||
<option value="$PROJECT_DIR$/src/html/index.html" />
|
||||
<option value="$PROJECT_DIR$/GulpFile.js" />
|
||||
<option value="$PROJECT_DIR$/src/coffee/main.coffee" />
|
||||
<option value="$PROJECT_DIR$/src/html/tpl/main.html" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="JsBuildToolGruntFileManager" detection-done="true" />
|
||||
<component name="JsBuildToolPackageJson" detection-done="true" />
|
||||
<component name="JsGulpfileManager">
|
||||
<detection-done>true</detection-done>
|
||||
</component>
|
||||
<component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
|
||||
<component name="ProjectFrameBounds">
|
||||
<option name="x" value="65" />
|
||||
<option name="y" value="52" />
|
||||
<option name="width" value="928" />
|
||||
<option name="height" value="1028" />
|
||||
</component>
|
||||
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
||||
<OptionsSetting value="true" id="Add" />
|
||||
<OptionsSetting value="true" id="Remove" />
|
||||
<OptionsSetting value="true" id="Checkout" />
|
||||
<OptionsSetting value="true" id="Update" />
|
||||
<OptionsSetting value="true" id="Status" />
|
||||
<OptionsSetting value="true" id="Edit" />
|
||||
<ConfirmationsSetting value="2" id="Add" />
|
||||
<ConfirmationsSetting value="0" id="Remove" />
|
||||
</component>
|
||||
<component name="ProjectView">
|
||||
<navigator currentView="ProjectPane" proportions="" version="1">
|
||||
<flattenPackages />
|
||||
<showMembers />
|
||||
<showModules />
|
||||
<showLibraryContents />
|
||||
<hideEmptyPackages />
|
||||
<abbreviatePackageNames />
|
||||
<autoscrollToSource ProjectPane="true" />
|
||||
<autoscrollFromSource ProjectPane="true" />
|
||||
<sortByType />
|
||||
<manualOrder />
|
||||
<foldersAlwaysOnTop value="true" />
|
||||
</navigator>
|
||||
<panes>
|
||||
<pane id="Scope" />
|
||||
<pane id="Scratches" />
|
||||
<pane id="ProjectPane">
|
||||
<subPane>
|
||||
<PATH>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="fromage-js" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||
</PATH_ELEMENT>
|
||||
</PATH>
|
||||
<PATH>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="fromage-js" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="fromage-js" />
|
||||
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
|
||||
</PATH_ELEMENT>
|
||||
</PATH>
|
||||
<PATH>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="fromage-js" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="fromage-js" />
|
||||
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="src" />
|
||||
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
|
||||
</PATH_ELEMENT>
|
||||
</PATH>
|
||||
<PATH>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="fromage-js" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="fromage-js" />
|
||||
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="src" />
|
||||
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="html" />
|
||||
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
|
||||
</PATH_ELEMENT>
|
||||
</PATH>
|
||||
<PATH>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="fromage-js" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="fromage-js" />
|
||||
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="src" />
|
||||
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="html" />
|
||||
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="tpl" />
|
||||
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
|
||||
</PATH_ELEMENT>
|
||||
</PATH>
|
||||
<PATH>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="fromage-js" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="fromage-js" />
|
||||
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="src" />
|
||||
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="coffee" />
|
||||
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
|
||||
</PATH_ELEMENT>
|
||||
</PATH>
|
||||
<PATH>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="fromage-js" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="fromage-js" />
|
||||
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="dist" />
|
||||
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
|
||||
</PATH_ELEMENT>
|
||||
</PATH>
|
||||
<PATH>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="fromage-js" />
|
||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="fromage-js" />
|
||||
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="dist" />
|
||||
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
|
||||
</PATH_ELEMENT>
|
||||
<PATH_ELEMENT>
|
||||
<option name="myItemId" value="js" />
|
||||
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
|
||||
</PATH_ELEMENT>
|
||||
</PATH>
|
||||
</subPane>
|
||||
</pane>
|
||||
<pane id="NBKnowledgePane" />
|
||||
</panes>
|
||||
</component>
|
||||
<component name="PropertiesComponent">
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
||||
<property name="WebServerToolWindowFactoryState" value="true" />
|
||||
<property name="js-jscs-nodeInterpreter" value="/usr/bin/node" />
|
||||
<property name="editor.config.accepted" value="true" />
|
||||
</component>
|
||||
<component name="RecentsManager">
|
||||
<key name="CopyFile.RECENT_KEYS">
|
||||
<recent name="$PROJECT_DIR$" />
|
||||
</key>
|
||||
</component>
|
||||
<component name="RunManager">
|
||||
<configuration default="true" type="BashConfigurationType" factoryName="Bash">
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="INTERPRETER_PATH" value="/bin/bash" />
|
||||
<option name="WORKING_DIRECTORY" value="" />
|
||||
<option name="PARENT_ENVS" value="true" />
|
||||
<option name="SCRIPT_NAME" value="" />
|
||||
<option name="PARAMETERS" value="" />
|
||||
<module name="" />
|
||||
<envs />
|
||||
<method />
|
||||
</configuration>
|
||||
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
|
||||
<method />
|
||||
</configuration>
|
||||
<configuration default="true" type="PHPUnitRunConfigurationType" factoryName="PHPUnit">
|
||||
<TestRunner />
|
||||
<method />
|
||||
</configuration>
|
||||
<configuration default="true" type="PhpBehatConfigurationType" factoryName="Behat">
|
||||
<BehatRunner />
|
||||
<method />
|
||||
</configuration>
|
||||
<configuration default="true" type="PhpLocalRunConfigurationType" factoryName="PHP Console">
|
||||
<method />
|
||||
</configuration>
|
||||
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
|
||||
<method />
|
||||
</configuration>
|
||||
<configuration default="true" type="js.build_tools.npm" factoryName="npm">
|
||||
<command value="run-script" />
|
||||
<scripts />
|
||||
<node-interpreter value="project" />
|
||||
<envs />
|
||||
<method />
|
||||
</configuration>
|
||||
</component>
|
||||
<component name="ShelveChangesManager" show_recycled="false">
|
||||
<option name="remove_strategy" value="false" />
|
||||
</component>
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="e0ed8919-71cf-4a0f-9de7-89982f172017" name="Default" comment="" />
|
||||
<created>1465650457129</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1465650457129</updated>
|
||||
<workItem from="1465650458202" duration="5522000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TimeTrackingManager">
|
||||
<option name="totallyTimeSpent" value="5522000" />
|
||||
</component>
|
||||
<component name="ToolWindowManager">
|
||||
<frame x="65" y="52" width="928" height="1028" extended-state="4" />
|
||||
<editor active="true" />
|
||||
<layout>
|
||||
<window_info id="Remote Host" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.33900228" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
||||
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32916668" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.38841203" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
||||
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
||||
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
||||
</layout>
|
||||
</component>
|
||||
<component name="VcsContentAnnotationSettings">
|
||||
<option name="myLimit" value="2678400000" />
|
||||
</component>
|
||||
<component name="XDebuggerManager">
|
||||
<breakpoint-manager />
|
||||
<watches-manager />
|
||||
</component>
|
||||
<component name="editorHistoryManager">
|
||||
<entry file="file://$PROJECT_DIR$/src/fromage.coffee">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="135">
|
||||
<caret line="9" column="0" selection-start-line="9" selection-start-column="0" selection-end-line="9" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/fromage.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="0">
|
||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/LICENSE">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="0">
|
||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/gulpfile.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="-1215">
|
||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/app/scripts/main.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="0">
|
||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/app/styles/main.scss">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="0">
|
||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/.babelrc">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="0">
|
||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/.editorconfig">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="0">
|
||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/.gitattributes">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="0">
|
||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/.yo-rc.json">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="0">
|
||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/test-tmp/app.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="0">
|
||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/test-tmp/scripts.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="0">
|
||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/.bowerrc">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="0">
|
||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/dist/index.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="180">
|
||||
<caret line="12" column="11" selection-start-line="12" selection-start-column="11" selection-end-line="12" selection-end-column="11" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/README.md">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="45">
|
||||
<caret line="3" column="7" selection-start-line="3" selection-start-column="7" selection-end-line="3" selection-end-column="7" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
<provider editor-type-id="MarkdownPreviewEditor">
|
||||
<state />
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/karma-e2e.conf.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="0">
|
||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||
<folding>
|
||||
<element signature="n#!!doc" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/json/squares.json">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="540">
|
||||
<caret line="36" column="5" selection-start-line="36" selection-start-column="5" selection-end-line="36" selection-end-column="5" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/html_wired/index.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="360">
|
||||
<caret line="39" column="59" selection-start-line="39" selection-start-column="43" selection-end-line="39" selection-end-column="59" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/coffee/services/myService.coffee">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="0">
|
||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/package.json">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="120">
|
||||
<caret line="8" column="5" selection-start-line="8" selection-start-column="5" selection-end-line="8" selection-end-column="17" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/.gitignore">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="0">
|
||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/GulpFile.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="94">
|
||||
<caret line="88" column="34" selection-start-line="88" selection-start-column="34" selection-end-line="88" selection-end-column="34" />
|
||||
<folding>
|
||||
<element signature="e#783#806#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/dist/js/main.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="75">
|
||||
<caret line="6" column="43" selection-start-line="6" selection-start-column="43" selection-end-line="6" selection-end-column="43" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/coffee/main.coffee">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="60">
|
||||
<caret line="4" column="14" selection-start-line="4" selection-start-column="14" selection-end-line="4" selection-end-column="14" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/html/index.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="345">
|
||||
<caret line="42" column="42" selection-start-line="42" selection-start-column="42" selection-end-line="42" selection-end-column="42" />
|
||||
<folding>
|
||||
<marker date="1465656094369" expanded="true" signature="842:996" placeholder="..." />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/html/tpl/main.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="15">
|
||||
<caret line="1" column="9" selection-start-line="1" selection-start-column="9" selection-end-line="1" selection-end-column="9" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</component>
|
||||
</project>
|
23
.jshintrc
Normal file
23
.jshintrc
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"node": true,
|
||||
"esnext": true,
|
||||
"bitwise": true,
|
||||
"camelcase": true,
|
||||
"curly": true,
|
||||
"eqeqeq": true,
|
||||
"immed": true,
|
||||
"indent": 2,
|
||||
"latedef": true,
|
||||
"newcap": true,
|
||||
"noarg": true,
|
||||
"quotmark": "single",
|
||||
"undef": true,
|
||||
"unused": true,
|
||||
"jquery": false,
|
||||
"globals": { "$": false,
|
||||
"jQuery": false,
|
||||
"window": false,
|
||||
"angular": false
|
||||
},
|
||||
"strict": true
|
||||
}
|
9
.travis.yml
Normal file
9
.travis.yml
Normal file
@ -0,0 +1,9 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "0.12"
|
||||
- "0.11"
|
||||
- "0.10"
|
||||
- "0.8"
|
||||
- "0.6"
|
||||
- "iojs"
|
||||
- "iojs-v1.0.4"
|
142
GulpFile.js
Normal file
142
GulpFile.js
Normal file
@ -0,0 +1,142 @@
|
||||
/**
|
||||
* Created by tykayn on 14/05/15.
|
||||
*/
|
||||
var gulp = require("gulp"),
|
||||
gutil = require("gulp-util"),
|
||||
plumber = require("gulp-plumber"),
|
||||
myth = require("gulp-myth"),
|
||||
csso = require("gulp-csso"),
|
||||
coffee = require("gulp-coffee"),
|
||||
options = require("minimist")(process.argv.slice(2)),
|
||||
sass = require('gulp-sass'),
|
||||
browserSync = require('browser-sync'),
|
||||
reload = browserSync.reload,
|
||||
karma = require('karma').server,
|
||||
documentation = require('documentation');
|
||||
var wiredep = require('wiredep').stream;
|
||||
var jshint = require('gulp-jshint');
|
||||
var uglify = require('gulp-uglify');
|
||||
var istanbul = require('gulp-istanbul');
|
||||
var mocha = require('gulp-mocha');
|
||||
var testFiles = [
|
||||
'dist/js/main.js'
|
||||
];
|
||||
|
||||
var sources = {
|
||||
tests : "src/tests/*.js",
|
||||
sass : "src/sass/*.scss",
|
||||
html : "src/html/*.html",
|
||||
htmls : "src/html/**/*.html",
|
||||
distIndex: "dist/index.html",
|
||||
js : "src/scripts/*.js",
|
||||
jsAll : "src/scripts/**/*.js",
|
||||
coffee : "src/coffee/*.coffee"
|
||||
};
|
||||
var destinations = {
|
||||
sass : "dist/css/",
|
||||
html : "dist/",
|
||||
coffee: "dist/coffee/",
|
||||
js : "dist/js/",
|
||||
doc : "dist/doc/"
|
||||
};
|
||||
|
||||
var imageminJpegoptim = require('imagemin-jpegoptim');
|
||||
|
||||
gulp.task('imagemin', function () {
|
||||
return gulp.src('images/*.jpg')
|
||||
.pipe(imageminJpegoptim({progressive: true})())
|
||||
.pipe(gulp.dest('dist/images'));
|
||||
});
|
||||
|
||||
/**
|
||||
* Run test once and exit
|
||||
*/
|
||||
gulp.task('test', function (done) {
|
||||
karma.start({
|
||||
configFile: __dirname + '/karma.conf.js',
|
||||
singleRun : true
|
||||
}, done);
|
||||
});
|
||||
|
||||
/**
|
||||
* Watch for file changes and re-run tests on each change
|
||||
*/
|
||||
gulp.task('tdd', function (done) {
|
||||
karma.start({
|
||||
configFile: __dirname + '/karma.conf.js'
|
||||
}, done);
|
||||
});
|
||||
|
||||
gulp.task("styles", function () {
|
||||
gulp.src("./src/css/*.css")
|
||||
.pipe(options.production ? plumber() : gutil.noop())
|
||||
.pipe(myth({sourcemap: !options.production}))
|
||||
.pipe(options.production ? csso() : gutil.noop())
|
||||
.pipe(gulp.dest("./dist/css/"));
|
||||
});
|
||||
gulp.task("hello", function () {
|
||||
console.log("hello le monde!");
|
||||
});
|
||||
gulp.task('browser-sync', function () {
|
||||
return browserSync.init(null, {
|
||||
open : true,
|
||||
server: {
|
||||
baseDir: "./dist"
|
||||
}
|
||||
});
|
||||
});
|
||||
gulp.task("sass2css", function () {
|
||||
console.log("style was changed");
|
||||
gulp.src("./src/sass/*.scss")
|
||||
.pipe(sass({outputStyle: 'compressed', errLogToConsole: true}))
|
||||
.pipe(gulp.dest("./dist/css/"))
|
||||
.pipe(browserSync.stream());
|
||||
});
|
||||
gulp.task("coffee2js", function () {
|
||||
console.log("coffee was changed");
|
||||
gulp.src("./src/coffee/**/*.coffee")
|
||||
.pipe(coffee())
|
||||
.pipe(plumber())
|
||||
.pipe(gulp.dest("./dist/js/"))
|
||||
.pipe(uglify())
|
||||
.pipe(browserSync.stream());
|
||||
console.log("coffee was served");
|
||||
});
|
||||
gulp.task('watch', function () {
|
||||
gulp.watch('GulpFile.js', ['default']);
|
||||
gulp.watch(sources.tests, ['test']);
|
||||
gulp.watch(sources.sass, ['sass2css']);
|
||||
gulp.watch('bower.json', ['wiredep']);
|
||||
gulp.watch(sources.html, ['html_transform']);
|
||||
// gulp.watch(sources.htmls, ['html','wiredep']);
|
||||
gulp.watch(sources.coffee, ['coffee2js', 'test']);
|
||||
|
||||
});
|
||||
gulp.task('lint', function () {
|
||||
gulp.src(sources.js)
|
||||
.pipe(jshint())
|
||||
.pipe(jshint.reporter('jshint-stylish'));
|
||||
});
|
||||
|
||||
|
||||
gulp.task("html_transform", function () {
|
||||
console.log("html was changed");
|
||||
gulp.src([sources.htmls, sources.html])
|
||||
.pipe(gulp.dest(destinations.html))
|
||||
.pipe(browserSync.stream());
|
||||
console.log("html regenerated");
|
||||
});
|
||||
|
||||
// link dependencies only on the main index
|
||||
gulp.task('wiredep', ['html_transform'], function () {
|
||||
console.log("wire dependencies from distant index");
|
||||
gulp.src(sources.distIndex)
|
||||
.pipe(wiredep({
|
||||
directory: 'dist/bower_components'
|
||||
}))
|
||||
.pipe(gulp.dest(destinations.html))
|
||||
;
|
||||
});
|
||||
gulp.task("default", [ "wiredep","coffee2js", "sass2css", "lint", "browser-sync", "imagemin", "watch"], function () {
|
||||
console.log("spartiiiii");
|
||||
});
|
339
LICENSE
339
LICENSE
@ -1,339 +0,0 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
{description}
|
||||
Copyright (C) {year} {fullname}
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
{signature of Ty Coon}, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
@ -1,8 +1,5 @@
|
||||
# fromage-js
|
||||
a lib to know when your code smells
|
||||
a lib to know when your conversations smells.
|
||||
|
||||
# usage
|
||||
include the lib from the dist/ folder.
|
||||
run Fromage.init() to test your code.
|
||||
Bam! you get a report.
|
||||
brace yourself, usage is coming.
|
||||
|
23
bower.json
Normal file
23
bower.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"name": "templates",
|
||||
"version": "0.0.0",
|
||||
"homepage": "https://github.com/tykayn/generator-tk",
|
||||
"authors": [
|
||||
"ty kayn tykayn@gmail.com"
|
||||
],
|
||||
"license": "MIT",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"bower_components",
|
||||
"dist/bower_components",
|
||||
"test",
|
||||
"tests"
|
||||
],
|
||||
"dependencies": {
|
||||
"angularjs": "~1.3.15",
|
||||
"bootstrap": "~3.3.4",
|
||||
"font-awesome": "~4.3.0",
|
||||
"angular-mocks": "~1.3.15"
|
||||
}
|
||||
}
|
12
editorconfig
Normal file
12
editorconfig
Normal file
@ -0,0 +1,12 @@
|
||||
# http://editorconfig.org
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
60
karma-e2e.conf.js
Normal file
60
karma-e2e.conf.js
Normal file
@ -0,0 +1,60 @@
|
||||
// Karma configuration
|
||||
// http://karma-runner.github.io/0.10/config/configuration-file.html
|
||||
|
||||
module.exports = function(config) {
|
||||
config.set({
|
||||
// base path, that will be used to resolve files and exclude
|
||||
basePath: '',
|
||||
|
||||
// testing framework to use (jasmine/mocha/qunit/...)
|
||||
frameworks: ['ng-scenario'],
|
||||
|
||||
// list of files / patterns to load in the browser
|
||||
files: [
|
||||
'dist/bower_components/jquery/dist/jquery.min.js',
|
||||
'dist/bower_components/angularjs/angular.js',
|
||||
'dist/bower_components/angular-mocks/angular-mocks.js',
|
||||
'dist/js/services/*.js',
|
||||
'dist/js/essai.js',
|
||||
'dist/js/main.js',
|
||||
'tests/e2e/**/*.js'
|
||||
],
|
||||
|
||||
// list of files / patterns to exclude
|
||||
exclude: [],
|
||||
|
||||
// web server port
|
||||
port: 8080,
|
||||
|
||||
// level of logging
|
||||
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
|
||||
logLevel: config.LOG_INFO,
|
||||
|
||||
|
||||
// enable / disable watching file and executing tests whenever any file changes
|
||||
autoWatch: false,
|
||||
|
||||
|
||||
// Start these browsers, currently available:
|
||||
// - Chrome
|
||||
// - ChromeCanary
|
||||
// - Firefox
|
||||
// - Opera
|
||||
// - Safari (only Mac)
|
||||
// - PhantomJS
|
||||
// - IE (only Windows)
|
||||
browsers: ['PhantomJS'],
|
||||
|
||||
|
||||
// Continuous Integration mode
|
||||
// if true, it capture browsers, run tests and exit
|
||||
singleRun: false
|
||||
|
||||
// Uncomment the following lines if you are using grunt's server to run the tests
|
||||
// proxies: {
|
||||
// '/': 'http://localhost:9000/'
|
||||
// },
|
||||
// URL root prevent conflicts with the site root
|
||||
// urlRoot: '_karma_'
|
||||
});
|
||||
};
|
75
karma.conf.js
Normal file
75
karma.conf.js
Normal file
@ -0,0 +1,75 @@
|
||||
/**
|
||||
* Created by tykayn on 14/05/15.
|
||||
*/
|
||||
// Karma configuration
|
||||
// http://karma-runner.github.io/0.10/config/configuration-file.html
|
||||
|
||||
module.exports = function (config) {
|
||||
config.set({
|
||||
// base path, that will be used to resolve files and exclude
|
||||
basePath: '',
|
||||
|
||||
// testing framework to use (jasmine/mocha/qunit/...)
|
||||
frameworks: ['jasmine'],
|
||||
|
||||
// list of files / patterns to load in the browser
|
||||
files: [
|
||||
'dist/bower_components/jquery/dist/jquery.min.js',
|
||||
'dist/bower_components/angularjs/angular.js',
|
||||
'dist/bower_components/angular-mocks/angular-mocks.js',
|
||||
'dist/js/services/*.js',
|
||||
'dist/js/essai.js',
|
||||
'dist/js/main.js',
|
||||
// tests
|
||||
'src/tests/spec/*.js'
|
||||
],
|
||||
|
||||
// list of files / patterns to exclude
|
||||
exclude: [],
|
||||
|
||||
// web server port
|
||||
port: 8085,
|
||||
|
||||
// level of logging
|
||||
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
|
||||
logLevel: config.LOG_INFO,
|
||||
|
||||
// enable / disable watching file and executing tests whenever any file changes
|
||||
autoWatch: true,
|
||||
|
||||
// Start these browsers, currently available:
|
||||
// - Chrome
|
||||
// - ChromeCanary
|
||||
// - Firefox
|
||||
// - Opera
|
||||
// - Safari (only Mac)
|
||||
// - PhantomJS
|
||||
// - IE (only Windows)
|
||||
// browsers: ['PhantomJS','/usr/bin/google-chrome','Firefox'],
|
||||
browsers: ['PhantomJS'],
|
||||
|
||||
// preprocess matching files before serving them to the browser
|
||||
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
|
||||
preprocessors: {
|
||||
// source files, that you wanna generate coverage for
|
||||
// do not include tests or libraries
|
||||
// (these files will be instrumented by Istanbul)
|
||||
'dist/js/**/*.js': ['coverage']
|
||||
},
|
||||
|
||||
// optionally, configure the reporter
|
||||
coverageReporter: {
|
||||
type: 'html',
|
||||
dir : 'dist/coverage/'
|
||||
},
|
||||
|
||||
// test results reporter to use
|
||||
// possible values: 'dots', 'progress'
|
||||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
||||
reporters: ['progress', 'coverage'],
|
||||
|
||||
// Continuous Integration mode
|
||||
// if true, it capture browsers, run tests and exit
|
||||
singleRun: false
|
||||
});
|
||||
};
|
76
package.json
Normal file
76
package.json
Normal file
@ -0,0 +1,76 @@
|
||||
{
|
||||
"name": "fromage-js",
|
||||
"version": "1.0.0",
|
||||
"description": "bingo your conversation fallacies",
|
||||
"main": "GulpFile.js",
|
||||
"dependencies": {
|
||||
"angular": "0.0.1",
|
||||
"bootstrap": "^3.3.4",
|
||||
"browser-sync": "^2.7.1",
|
||||
"chai": "~1.9.0",
|
||||
"chalk": "^1.0.0",
|
||||
"coffee-script": "^1.9.2",
|
||||
"coveralls": "~2.7.1",
|
||||
"documentation": "^1.2.0",
|
||||
"gulp": "^3.8.11",
|
||||
"gulp-coffee": "~2.2.0",
|
||||
"gulp-csso": "^1.0.0",
|
||||
"gulp-documentation": "^1.0.1",
|
||||
"gulp-jsdoc": "^0.1.4",
|
||||
"gulp-jshint": "^1.10.0",
|
||||
"gulp-jslint": "^0.2.2",
|
||||
"gulp-jslint-simple": "^1.0.0",
|
||||
"gulp-karma": "0.0.4",
|
||||
"gulp-mocha": "^2.1.0",
|
||||
"gulp-myth": "^1.0.2",
|
||||
"gulp-plumber": "^1.0.0",
|
||||
"gulp-sass": "^2.0.1",
|
||||
"gulp-uglify": "^1.2.0",
|
||||
"gulp-util": "^3.0.4",
|
||||
"istanbul": "~0.2.4",
|
||||
"jasmine": "^2.3.1",
|
||||
"jasmine-core": "~2.1.3",
|
||||
"jshint": "^2.7.0",
|
||||
"jshint-stylish": "^1.0.2",
|
||||
"karma": "~0.12.28",
|
||||
"karma-chrome-launcher": "~0.1.7",
|
||||
"karma-jasmine": "~0.3.2",
|
||||
"karma-phantomjs-launcher": "~0.1.3",
|
||||
"minimist": "^1.1.1",
|
||||
"mocha": "~1.17.1",
|
||||
"phantomjs": "~1.9.12",
|
||||
"sinon": "~1.8.0",
|
||||
"yeoman-generator": "~0.19.2",
|
||||
"yosay": "^1.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"doop": "^0.9.3",
|
||||
"gulp-coffee-istanbul": "^0.7.1",
|
||||
"gulp-istanbul": "^0.10.0",
|
||||
"gulp-load-plugins": "^1.0.0-rc.1",
|
||||
"imagemin-jpegoptim": "^5.0.0",
|
||||
"istanbul": "^0.2.16",
|
||||
"jsdoc": "^3.4.0",
|
||||
"uglify": "^0.1.5",
|
||||
"wiredep": "^4.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tykayn/fromage-js.git"
|
||||
},
|
||||
"keywords": [
|
||||
"bingo",
|
||||
"fallacy",
|
||||
"discussion",
|
||||
"game"
|
||||
],
|
||||
"author": "ty kayn",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/tykayn/fromage-js/issues"
|
||||
},
|
||||
"homepage": "https://github.com/tykayn/fromage-js#readme"
|
||||
}
|
26
src/coffee/main.coffee
Normal file
26
src/coffee/main.coffee
Normal file
@ -0,0 +1,26 @@
|
||||
###
|
||||
# here we do stuff
|
||||
###
|
||||
angular.module "tkApp", []
|
||||
.controller("MainCtrl", ($scope)->
|
||||
|
||||
###
|
||||
# scoped variables
|
||||
###
|
||||
$scope.demo = 'WOHOOO angular ça marche'
|
||||
|
||||
###
|
||||
# scoped functions
|
||||
###
|
||||
$scope.doStuff = ->
|
||||
console.log('impressig!')
|
||||
$scope.doStuffWithArg = (arg)->
|
||||
console.log('wow such function!', arg)
|
||||
|
||||
###
|
||||
# initilise everything
|
||||
###
|
||||
$scope.init = ->
|
||||
console.log('mainCtrl initialised');
|
||||
$scope.init()
|
||||
)
|
0
src/coffee/services/myService.coffee
Normal file
0
src/coffee/services/myService.coffee
Normal file
@ -1,9 +0,0 @@
|
||||
###
|
||||
how about some coffee with your fromage? :D
|
||||
###
|
||||
class Fromage
|
||||
examine : ->
|
||||
console.log('whoa this js stinks!')
|
||||
init : ->
|
||||
console.log('fromage is coming.')
|
||||
@examine();
|
@ -1,26 +0,0 @@
|
||||
// Generated by CoffeeScript 1.10.0
|
||||
|
||||
/*
|
||||
how about some coffee with your fromage? :D
|
||||
*/
|
||||
|
||||
(function() {
|
||||
var Fromage;
|
||||
|
||||
Fromage = (function() {
|
||||
function Fromage() {}
|
||||
|
||||
Fromage.prototype.examine = function() {
|
||||
return console.log('whoa this js stinks!');
|
||||
};
|
||||
|
||||
Fromage.prototype.init = function() {
|
||||
console.log('fromage is coming.');
|
||||
return this.examine();
|
||||
};
|
||||
|
||||
return Fromage;
|
||||
|
||||
})();
|
||||
|
||||
}).call(this);
|
85
src/html/index.html
Normal file
85
src/html/index.html
Normal file
@ -0,0 +1,85 @@
|
||||
<!doctype html>
|
||||
<!--[if lt IE 7]>
|
||||
<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
||||
<!--[if IE 7]>
|
||||
<html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
||||
<!--[if IE 8]>
|
||||
<html class="no-js lt-ie9"> <![endif]-->
|
||||
<!--[if gt IE 8]><!-->
|
||||
<html class="no-js"> <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>Fallacy Bingo</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="icon" href="img/favicon.ico"/>
|
||||
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
|
||||
|
||||
<!-- bower:css -->
|
||||
<!-- endbower -->
|
||||
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css">
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
</head>
|
||||
<body ng-app="tkApp">
|
||||
<!--[if lt IE 7]>
|
||||
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please
|
||||
<a href="http://browsehappy.com/">upgrade your browser</a>
|
||||
to improve your experience.
|
||||
</p><![endif]-->
|
||||
<div class="container" ng-controller="MainCtrl">
|
||||
<h1>
|
||||
<i class="fa fa-book fa-3x"></i>
|
||||
Fallacy Bingoooooo
|
||||
</h1>
|
||||
<div class="author">
|
||||
<h2>
|
||||
{{demo || ' angular ne marche pas ici '}}
|
||||
</h2>
|
||||
|
||||
{{demo}}
|
||||
</div>
|
||||
<hr/>
|
||||
<div ng-include="'tpl/main.html'"></div>
|
||||
<!-- Add your site or application content here -->
|
||||
<div class="container" ng-view=""></div>
|
||||
<div class="alert alert-info">
|
||||
|
||||
<h2>
|
||||
<i class="fa fa-heart fa-2x"></i>
|
||||
This app includes :
|
||||
</h2>
|
||||
Gulp, Angular, coffeescript, jquery, bootstrap, font awesome, commitement to open source.
|
||||
<hr/>
|
||||
<i class="fa fa-diamond fa-2x"></i>
|
||||
karma, jasmine, jslint, uglify, coverall and more.
|
||||
</div>
|
||||
<h2>
|
||||
<i class="fa fa-file fa-2x"></i>
|
||||
Getting started:
|
||||
</h2>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
|
||||
<div id="board">
|
||||
|
||||
</div>
|
||||
Code disponible sur
|
||||
<a href="http://github.com/tykayn">mon github tykayn</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<a href="http://twitter.com/tykayn">
|
||||
<i class="fa fa-twitter"></i>
|
||||
@tykayn
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- bower:js -->
|
||||
<!-- endbower -->
|
||||
<script src="js/main.js"></script>
|
||||
</body>
|
||||
</html>
|
4
src/html/tpl/main.html
Normal file
4
src/html/tpl/main.html
Normal file
@ -0,0 +1,4 @@
|
||||
<div class="alert alert-success">
|
||||
Board
|
||||
|
||||
</div>
|
46
src/json/squares.json
Normal file
46
src/json/squares.json
Normal file
@ -0,0 +1,46 @@
|
||||
{
|
||||
"rows": 5,
|
||||
"cols": 5,
|
||||
"squares": [
|
||||
{
|
||||
"text":"point godwin",
|
||||
"details":"point godwin"
|
||||
},
|
||||
{
|
||||
"text":"pente glissante",
|
||||
"details":""
|
||||
},
|
||||
{
|
||||
"text":"pente glissante",
|
||||
"details":""
|
||||
},
|
||||
{
|
||||
"text":"pente glissante",
|
||||
"details":""
|
||||
},
|
||||
{
|
||||
"text":"pente glissante",
|
||||
"details":""
|
||||
},
|
||||
{
|
||||
"text":"pente glissante",
|
||||
"details":""
|
||||
},
|
||||
{
|
||||
"text":"pente glissante",
|
||||
"details":""
|
||||
},
|
||||
{
|
||||
"text":"pente glissante",
|
||||
"details":""
|
||||
},
|
||||
{
|
||||
"text":"pente glissante",
|
||||
"details":""
|
||||
},
|
||||
{
|
||||
"text":"pente glissante",
|
||||
"details":""
|
||||
}
|
||||
]
|
||||
}
|
133
src/sass/_extendables.scss
Normal file
133
src/sass/_extendables.scss
Normal file
@ -0,0 +1,133 @@
|
||||
/**
|
||||
use with @extend
|
||||
percentage sign % are maks of sass's placeholder selectors.
|
||||
they are rendered only if extended.
|
||||
for example :
|
||||
.my-container {
|
||||
@extend %clearfix;
|
||||
}
|
||||
**/
|
||||
%clearfix {
|
||||
*zoom: 1;
|
||||
&:before, &:after {
|
||||
content: " ";
|
||||
display: table;
|
||||
}
|
||||
&:after {
|
||||
clear: both;
|
||||
}
|
||||
}
|
||||
/**
|
||||
hide elements in an evil way
|
||||
**/
|
||||
%visuallyhidden {
|
||||
margin: -1px;
|
||||
padding: 0;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0 0 0 0);
|
||||
clip: rect(0, 0, 0, 0);
|
||||
position: absolute;
|
||||
}
|
||||
.visually-hidden {
|
||||
@extend %visuallyhidden;
|
||||
}
|
||||
|
||||
/**
|
||||
to use with @include
|
||||
media query mixin
|
||||
**/
|
||||
$size-lg : '60em';
|
||||
$size-md : '40em';
|
||||
$size-sm : '30em';
|
||||
|
||||
// defaults are defined
|
||||
@mixin mq($min : '40em',$max : '60em') {
|
||||
@media only screen and (min-width: #{$max}) and (max-width: #{$max}) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
@mixin mq-large {
|
||||
@media only screen and (max-width: $size-lg) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin mq-medium {
|
||||
@media only screen and (max-width: $size-md) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin mq-small {
|
||||
@media only screen and (max-width: $size-sm) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
set color and background color in one time
|
||||
**/
|
||||
@mixin color-and-bg($text, $background) {
|
||||
color: $text;
|
||||
background-color: $background;
|
||||
}
|
||||
// helpers
|
||||
|
||||
.padded {
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
.padded-sm {
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
// vertical padding only
|
||||
.padded-v {
|
||||
padding: 1em 0;
|
||||
}
|
||||
|
||||
.padded-h {
|
||||
padding: 0 1em;
|
||||
}
|
||||
.absolutely {
|
||||
position: absolute;
|
||||
}
|
||||
.block {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.centered {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.columned {
|
||||
-webkit-column-count: 3;
|
||||
-moz-column-count: 3;
|
||||
column-count: 3;
|
||||
}
|
||||
|
||||
// transitions
|
||||
.slow-ease {
|
||||
-webkit-transition: all ease 1s;
|
||||
-moz-transition: all ease 1s;
|
||||
-ms-transition: all ease 1s;
|
||||
-o-transition: all ease 1s;
|
||||
transition: all ease 1s;
|
||||
}
|
||||
.fast-ease {
|
||||
-webkit-transition: all ease 0.4s;
|
||||
-moz-transition: all ease 0.4s;
|
||||
-ms-transition: all ease 0.4s;
|
||||
-o-transition: all ease 0.4s;
|
||||
transition: all ease 0.4s;
|
||||
}
|
||||
|
||||
.fastest-ease {
|
||||
-webkit-transition: all ease 0s;
|
||||
-moz-transition: all ease 0s;
|
||||
-ms-transition: all ease 0s;
|
||||
-o-transition: all ease 0s;
|
||||
transition: all ease 0s;
|
||||
}
|
0
src/sass/_global.scss
Normal file
0
src/sass/_global.scss
Normal file
42
src/sass/_interactions.scss
Normal file
42
src/sass/_interactions.scss
Normal file
@ -0,0 +1,42 @@
|
||||
|
||||
|
||||
// quand on survole hoverable,
|
||||
// on montre hover-show
|
||||
.hoverable {
|
||||
.hover-show {
|
||||
opacity: 0;
|
||||
@extend .fast-ease;
|
||||
}
|
||||
&:hover .hover-show {
|
||||
opacity: 1;
|
||||
@extend .fast-ease;
|
||||
}
|
||||
}
|
||||
|
||||
.revealable {
|
||||
opacity: 0;
|
||||
@extend .fast-ease;
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
@extend .fast-ease;
|
||||
}
|
||||
}
|
||||
|
||||
.active {
|
||||
.revealable {
|
||||
opacity: 1;
|
||||
color: $white;
|
||||
@extend .fast-ease;
|
||||
}
|
||||
}
|
||||
|
||||
.clickable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.hover-hl {
|
||||
&:hover {
|
||||
background: mix($dark, $white);
|
||||
color: $white;
|
||||
}
|
||||
}
|
0
src/sass/_nav.scss
Normal file
0
src/sass/_nav.scss
Normal file
0
src/sass/_overrides.scss
Normal file
0
src/sass/_overrides.scss
Normal file
0
src/sass/_pages.scss
Normal file
0
src/sass/_pages.scss
Normal file
19
src/sass/_vars.scss
Normal file
19
src/sass/_vars.scss
Normal file
@ -0,0 +1,19 @@
|
||||
/**
|
||||
maps are arrays, use it ! remember the @each directive.
|
||||
**/
|
||||
$my-map: (key1: value1, key2: value2, key3: value3);
|
||||
// déclarer les variables ici
|
||||
$blue: #337ab7;
|
||||
$main-color: rgb(46, 109, 164);
|
||||
$grey: #ccc;
|
||||
$white: #fff;
|
||||
$black: #111;
|
||||
$dark: darken(mix($main-color, $grey), 70%);
|
||||
$light-main: mix($main-color, $white);
|
||||
|
||||
// overrides of libraries vars
|
||||
$default: mix($white, $grey);
|
||||
$info: mix($main-color, $white);
|
||||
$success: mix(#B7FF80,#79bb92);
|
||||
$warning: #FFBA10;
|
||||
$danger: #CB2738;
|
12
src/sass/main.scss
Normal file
12
src/sass/main.scss
Normal file
@ -0,0 +1,12 @@
|
||||
.container {
|
||||
background: black;
|
||||
color: white;
|
||||
}
|
||||
|
||||
@import 'vars';
|
||||
@import 'extendables';
|
||||
@import 'overrides';
|
||||
@import 'nav';
|
||||
@import 'global';
|
||||
@import 'interactions';
|
||||
@import 'pages';
|
21
src/scripts/app.js
Normal file
21
src/scripts/app.js
Normal file
@ -0,0 +1,21 @@
|
||||
/**
|
||||
* Created by tykayn on 14/05/15.
|
||||
*/
|
||||
'use strict';
|
||||
/** This is a description of the foo function. **/
|
||||
angular.module('crossedWordsApp', [
|
||||
'ngCookies',
|
||||
'ngResource',
|
||||
'ngSanitize',
|
||||
'ngRoute'
|
||||
])
|
||||
.config(function ($routeProvider) {
|
||||
$routeProvider
|
||||
.when('/', {
|
||||
templateUrl: 'html/tpl/main.html',
|
||||
controller: 'MainCtrl'
|
||||
})
|
||||
.otherwise({
|
||||
redirectTo: '/'
|
||||
});
|
||||
});
|
8
src/scripts/scripts.js
Normal file
8
src/scripts/scripts.js
Normal file
@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Created by tykayn on 14/05/15.
|
||||
*/
|
||||
'use strict';
|
||||
// made for jquery only
|
||||
$(window.document).ready(function () {
|
||||
console.log('scripts loaded');
|
||||
});
|
3
src/tests/e2e/main.js
Normal file
3
src/tests/e2e/main.js
Normal file
@ -0,0 +1,3 @@
|
||||
/**
|
||||
* Created by tykayn on 14/05/15.
|
||||
*/
|
39
src/tests/spec/app.js
Normal file
39
src/tests/spec/app.js
Normal file
@ -0,0 +1,39 @@
|
||||
'use strict';
|
||||
/**
|
||||
* Created by tykayn on 14/05/15.
|
||||
*/
|
||||
console.log('test for app.js');
|
||||
describe("A suite", function () {
|
||||
it("contains spec with an expectation", function () {
|
||||
expect(true).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
describe('Controller: MainCtrl', function () {
|
||||
|
||||
// load the controller's module
|
||||
beforeEach(module('myApp'));
|
||||
|
||||
var MainCtrl, scope;
|
||||
scope = 1;
|
||||
// Initialize the controller and a mock scope
|
||||
beforeEach(inject(function ($controller, $rootScope) {
|
||||
scope = $rootScope.$new();
|
||||
MainCtrl = $controller('MainCtrl', {
|
||||
$scope: scope
|
||||
});
|
||||
}));
|
||||
|
||||
it('should have modules working', function () {
|
||||
expect(module).toBeDefined();
|
||||
});
|
||||
it('should have a main controller existing', function () {
|
||||
expect(MainCtrl).toBeDefined();
|
||||
});
|
||||
it('should have a scope existing', function () {
|
||||
expect(scope).toBeDefined();
|
||||
});
|
||||
|
||||
});
|
Loading…
Reference in New Issue
Block a user