Skip to content

Commit 660dd56

Browse files
committed
initial repo template
1 parent 6550e45 commit 660dd56

25 files changed

+756
-1
lines changed

.editorconfig

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = tab
6+
indent_size = 4
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
15+
[{package.json,.travis.yml}]
16+
indent_style = space
17+
indent_size = 2

.gitattributes

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Set the default behavior, in case users don't have core.autocrlf set
2+
* text=auto
3+
4+
# Files that should always be normalized and converted to native line
5+
# endings on checkout.
6+
*.js text
7+
*.json text
8+
*.ts text
9+
*.md text
10+
*.yml text
11+
LICENSE text
12+
13+
# Files that are truly binary and should not be modified
14+
*.png binary
15+
*.jpg binary
16+
*.jpeg binary
17+
*.gif binary
18+
*.jar binary
19+
*.zip binary
20+
*.psd binary

.github/CONTRIBUTING.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Thank You
2+
3+
We very much welcome contributions to Dojo 2.
4+
5+
Because we have so many repositories that are part of Dojo 2, we have located our [Contributing Guidelines](https://github.com/dojo/meta/blob/master/CONTRIBUTING.md) in our [Dojo 2 Meta Repository](https://github.com/dojo/meta#readme).
6+
7+
Look forward to working with you on Dojo 2!!!

.github/ISSUE_TEMPLATE.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!--
2+
Thank you for contributing to Dojo 2.
3+
4+
Our issue tracker is for bugs for Dojo 2.
5+
6+
Please make sure you have read our Contributing Guidelines
7+
available at: https://github.com/dojo/meta/blob/master/CONTRIBUTING.md
8+
9+
For general questions and discussion, join us on Gitter.im at: https://gitter.im/dojo/dojo2
10+
-->
11+
12+
**Bug / Enhancement** <!-- delete as appropriate -->
13+
14+
<!-- Summary of enhancement or bug-->
15+
16+
Package Version: <!-- package version -->
17+
18+
**Code**
19+
20+
<!-- a self contained example of code that demonstrates the issue -->
21+
22+
**Expected behavior:**
23+
24+
<!-- What did you expect to happen -->
25+
26+
**Actual behavior:**
27+
28+
<!-- What was the actual behavior? -->

.github/PULL_REQUEST_TEMPLATE.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
**Type:** bug / feature
2+
3+
The following has been addressed in the PR:
4+
5+
* [ ] There is a related issue
6+
* [ ] All code matches the [style guide](https://github.com/dojo/meta/blob/master/STYLE.md)
7+
* [ ] Unit or Functional tests are included in the PR
8+
9+
<!--
10+
Our bots should ensure:
11+
12+
* [ ] All contributors have signed a CLA
13+
* [ ] The PR passes CI testing
14+
* [ ] Code coverage is maintained
15+
* [ ] The PR has been reviewed and approved
16+
-->
17+
18+
**Description:**
19+
20+
Resolves #???

.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/_build
2+
/bower_components
3+
/dist
4+
/html-report
5+
/node_modules
6+
/typings
7+
.baseDir.ts
8+
.tscache
9+
coverage-unmapped.json
10+
coverage-final.json
11+
coverage-final.lcov
12+
npm-debug.log
13+
yarn.lock

.travis.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
sudo: false
2+
language: node_js
3+
node_js:
4+
- '6'
5+
env:
6+
global:
7+
- SAUCE_USERNAME: dojo2-ts-ci
8+
- SAUCE_ACCESS_KEY: e92610e3-834e-4bec-a3b5-6f7b9d874601
9+
- BROWSERSTACK_USERNAME: dtktestaccount1
10+
- BROWSERSTACK_ACCESS_KEY: mG2qbEFJCZY2qLsM7yfx
11+
cache:
12+
directories:
13+
- node_modules
14+
install:
15+
- travis_retry npm install grunt-cli
16+
- travis_retry npm install
17+
script:
18+
- grunt
19+
- grunt intern:node --combined
20+
- grunt intern:saucelabs --combined
21+
- grunt remapIstanbul:ci
22+
- grunt uploadCoverage
23+
notifications:
24+
slack:
25+
secure: PqGYaEK7YF0ZbGJzKCYiyE5bK1qDz8SDMUeo5xisAkDIhUADdbgCnV+nF5DeHnY2cekkhwtmAqwvsgVvHvi44o89I1di5hTJCpwtlizfC/gWXZ3/CbkLebeTOVwbElKqRdx8E2iF/SnGH7ObSISDebGmFp/dYXVb6Jlbnx/qzTeesH2PqF2hmFNmBkaLjkkENqSFaPqpS9PJQdFrlxMSgC8Ff8Jy6h2G8IxUS7yofryZauoJY0JyYVhMm/IqY+O6QnzMNz/n1pYLnJPvmKBSd5jv/SC6LDxTpt37CwHiPF7HBEG/bUO6T+S+gUig+3WP+PCnE5u8iAQfKAFM4lx8XdlWYihI0F4RlBatY8d/05lqUU6yMfen6GUz8xOq00Hzcdh1hO7eApRWqWbdD1jFIUdR8Gy5h5AqkWsz2IvtpA9UJQfscYnfKBEN6goAbKyKG6wjcoyuq3EycR0PmH8BJQCL/EEg6f1QWoele9PToSbwfbI9QWYb0T1qyj8/FuGM+KZVXoJUDfIbu5H+UBYWuT/vSisKSFEVDX+syciHcvmfYN0l5U6miok6MwWgwaIPHEg/BO32iMa99Kqu1BE2TIBub88NS19iwwZq9Ersv6Z/DjJjzgfTKjzFUz7byRy6e8/ZKW2KEE8KBR3HmvgCAXeo+e8tEIP67socX0eU5pM=

Gruntfile.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = function (grunt) {
2+
require('grunt-dojo2').initConfig(grunt, {
3+
/* any custom configuration goes here */
4+
});
5+
};

LICENSE

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
The "New" BSD License
2+
*********************
3+
4+
Copyright (c) 2015 - 2016, The Dojo Foundation
5+
All rights reserved.
6+
7+
Redistribution and use in source and binary forms, with or without
8+
modification, are permitted provided that the following conditions are met:
9+
10+
* Redistributions of source code must retain the above copyright notice, this
11+
list of conditions and the following disclaimer.
12+
* Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
* Neither the name of the Dojo Foundation nor the names of its contributors
16+
may be used to endorse or promote products derived from this software
17+
without specific prior written permission.
18+
19+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
23+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

+61-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,61 @@
1-
# widgets
1+
# @dojo/widgets
2+
3+
<!-- TODO: change and uncomment
4+
[![Build Status](https://travis-ci.org/dojo/<< package-name >>.svg?branch=master)](https://travis-ci.org/dojo/<< package-name >>)
5+
[![codecov](https://codecov.io/gh/dojo/<< package-name >>/branch/master/graph/badge.svg)](https://codecov.io/gh/dojo/<< package-name >>)
6+
[![npm version](https://badge.fury.io/js/dojo-<< package-name >>.svg)](http://badge.fury.io/js/dojo-<< package-name >>)
7+
-->
8+
9+
A suite of pre-built Dojo 2 widgets ready to use in your application. These widgets are built using [(@dojo/widget-core)](https://github.com/dojo/widgets).
10+
11+
**WARNING** This is *alpha* software. It is not yet production ready, so you should use at your own risk.
12+
13+
- [Features](#features)
14+
- [How Do I use this package?](#how-do-i-use-this-package)
15+
- [How Do I Contribute?](#how-do-i-contribute)
16+
- [Installation](#installation)
17+
- [Testing](#testing)
18+
- [Licensing Information](#licensing-information)
19+
20+
## Features
21+
22+
// Add details of widgets
23+
24+
## How do I use this package?
25+
26+
To use @dojo/widgets, install the package along in your project.
27+
28+
```shell
29+
npm install @dojo/widgets
30+
```
31+
32+
## How do I contribute?
33+
34+
We appreciate your interest! Please see the [Dojo 2 Meta Repository](https://github.com/dojo/meta#readme) for the
35+
Contributing Guidelines and Style Guide.
36+
37+
## Testing
38+
39+
Test cases MUST be written using [Intern](https://theintern.github.io) using the Object test interface and Assert assertion interface.
40+
41+
90% branch coverage MUST be provided for all code submitted to this repository, as reported by istanbul’s combined coverage results for all supported platforms.
42+
43+
To test locally in node run:
44+
45+
`grunt test`
46+
47+
To test against browsers with a local selenium server run:
48+
49+
`grunt test:local`
50+
51+
To test against BrowserStack or Sauce Labs run:
52+
53+
`grunt test:browserstack`
54+
55+
or
56+
57+
`grunt test:saucelabs`
58+
59+
## Licensing information
60+
61+
© 2017 [JS Foundation](https://js.foundation/). [New BSD](http://opensource.org/licenses/BSD-3-Clause) license.

codecov.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
coverage:
2+
notify:
3+
slack:
4+
default:
5+
url: "secret:jbSUvelf6s68CTzfuwaEP8ABwR+KlB9bZDjLxJmy6NlHsO/DGBf/ZUhO2vIdrNd/fudMkaeE9PEYDXcBid+p5cdp4E1XsfVelIC5hLi34JEXCgtIcldaIwd7OlFypF/Sdhxe2hOtPj8aPG2ksBwyNfVMFEDVDPaNBmcW/sBiCrM="
6+
threshold: 2
7+
attachments: "sunburst, diff"
8+
comment:
9+
branches:
10+
- master
11+
- feature/*

package.json

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "dojo-widgets",
3+
"version": "2.0.0-pre",
4+
"description": "Dojo 2 Widgets",
5+
"private": true,
6+
"homepage": "http://dojotoolkit.org",
7+
"bugs": {
8+
"url": "https://github.com/dojo/widgets/issues"
9+
},
10+
"license": "BSD-3-Clause",
11+
"main": "main.js",
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/dojo/widgets.git"
15+
},
16+
"scripts": {
17+
"test": "grunt test"
18+
},
19+
"dependencies": {
20+
"@dojo/widget-core": "2.0.0-beta.20",
21+
"@dojo/compose": "2.0.0-beta.21",
22+
"@dojo/core": "2.0.0-alpha.20",
23+
"@dojo/has": "2.0.0-alpha.7",
24+
"@dojo/i18n": "2.0.0-alpha.5",
25+
"@dojo/shim": "2.0.0-beta.8",
26+
"maquette": ">=2.3.7 <=2.4.1"
27+
},
28+
"devDependencies": {
29+
"@dojo/interfaces": "2.0.0-alpha.11",
30+
"@dojo/loader": "2.0.0-beta.9",
31+
"@types/chai": "3.4.*",
32+
"@types/es6-shim": "0.0.*",
33+
"@types/glob": "5.0.*",
34+
"@types/grunt": "0.4.*",
35+
"@types/jsdom": "2.0.*",
36+
"@types/sinon": "^1.16.31",
37+
"grunt": "^1.0.1",
38+
"grunt-dojo2": ">=2.0.0-beta.21",
39+
"intern": "^3.4.1",
40+
"istanbul": "^0.4.5",
41+
"jsdom": "^9.5.0",
42+
"remap-istanbul": "^0.6.4",
43+
"sinon": "^1.17.6",
44+
"tslint": "^3.11.0",
45+
"typescript": "~2.1.4"
46+
}
47+
}

src/main.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export {
2+
/* provide the public API here */
3+
};

tests/functional/all.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const removeThis = 1;

tests/intern-local.ts

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export * from './intern';
2+
3+
export const tunnel = 'NullTunnel';
4+
export const tunnelOptions = {
5+
hostname: 'localhost',
6+
port: '4444'
7+
};
8+
9+
export const environments = [
10+
{ browserName: 'chrome' }
11+
];

tests/intern-saucelabs.ts

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export * from './intern';
2+
3+
export const environments = [
4+
{ browserName: 'internet explorer', version: [ '10.0', '11.0' ], platform: 'Windows 7' },
5+
{ browserName: 'microsoftedge', platform: 'Windows 10' },
6+
{ browserName: 'firefox', platform: 'Windows 10' },
7+
{ browserName: 'chrome', platform: 'Windows 10' },
8+
{ browserName: 'safari', version: '9', platform: 'OS X 10.11' },
9+
{ browserName: 'android', deviceName: 'Google Nexus 7 HD Emulator' },
10+
{ browserName: 'iphone', version: '7.1' }
11+
];
12+
13+
/* SauceLabs supports more max concurrency */
14+
export const maxConcurrency = 4;
15+
16+
export const tunnel = 'SauceLabsTunnel';

tests/intern.ts

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
export const proxyPort = 9000;
2+
3+
// A fully qualified URL to the Intern proxy
4+
export const proxyUrl = 'http://localhost:9000/';
5+
6+
// Default desired capabilities for all environments. Individual capabilities can be overridden by any of the
7+
// specified browser environments in the `environments` array below as well. See
8+
// https://code.google.com/p/selenium/wiki/DesiredCapabilities for standard Selenium capabilities and
9+
// https://saucelabs.com/docs/additional-config#desired-capabilities for Sauce Labs capabilities.
10+
// Note that the `build` capability will be filled in with the current commit ID from the Travis CI environment
11+
// automatically
12+
export const capabilities = {
13+
'browserstack.debug': false,
14+
project: 'Dojo 2',
15+
name: 'dojo-widgets'
16+
};
17+
18+
// Browsers to run integration testing against. Note that version numbers must be strings if used with Sauce
19+
// OnDemand. Options that will be permutated are browserName, version, platform, and platformVersion; any other
20+
// capabilities options specified for an environment will be copied as-is
21+
export const environments = [
22+
{ browserName: 'internet explorer', version: [ '10', '11' ], platform: 'WINDOWS' },
23+
{ browserName: 'firefox', platform: 'WINDOWS' },
24+
{ browserName: 'chrome', platform: 'WINDOWS' }/*,
25+
{ browserName: 'Safari', version: '9', platform: 'OS X' }*/
26+
];
27+
28+
// Maximum number of simultaneous integration tests that should be executed on the remote WebDriver service
29+
export const maxConcurrency = 2;
30+
31+
// Name of the tunnel class to use for WebDriver tests
32+
export const tunnel = 'BrowserStackTunnel';
33+
34+
// Support running unit tests from a web server that isn't the intern proxy
35+
export const initialBaseUrl: string | null = (function () {
36+
if (typeof location !== 'undefined' && location.pathname.indexOf('__intern/') > -1) {
37+
return '/';
38+
}
39+
return null;
40+
})();
41+
42+
// The desired AMD loader to use when running unit tests (client.html/client.js). Omit to use the default Dojo
43+
// loader
44+
export const loaders = {
45+
'host-browser': 'node_modules/@dojo/loader/loader.js',
46+
'host-node': '@dojo/loader'
47+
};
48+
49+
// Configuration options for the module loader; any AMD configuration options supported by the specified AMD loader
50+
// can be used here
51+
export const loaderOptions = {
52+
// Packages that should be registered with the loader in each testing environment
53+
packages: [
54+
{ name: 'src', location: '_build/src' },
55+
{ name: 'tests', location: '_build/tests' },
56+
{ name: 'dojo', location: 'node_modules/intern/node_modules/dojo' },
57+
{ name: '@dojo', location: 'node_modules/@dojo' }
58+
]
59+
};
60+
61+
// Non-functional test suite(s) to run in each browser
62+
export const suites = [ 'tests/unit/all' ];
63+
64+
// Functional test suite(s) to run in each browser once non-functional tests are completed
65+
export const functionalSuites = [ 'tests/functional/all' ];
66+
67+
// A regular expression matching URLs to files that should not be included in code coverage analysis
68+
export const excludeInstrumentation = /(?:node_modules|bower_components|tests)[\/\\]/;

0 commit comments

Comments
 (0)