diff --git a/.bowerrc b/.bowerrc deleted file mode 100644 index 69fad3580..000000000 --- a/.bowerrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "directory": "bower_components" -} diff --git a/.codeclimate.yml b/.codeclimate.yml deleted file mode 100644 index 482037a2d..000000000 --- a/.codeclimate.yml +++ /dev/null @@ -1,9 +0,0 @@ -languages: - JavaScript: true -exclude_paths: -- "test/*" -- "tasks/*" -- "docs/*" -- "dist/*" -- "src/*/docs/*" -- "gulpfile.js" diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index c2cdfb8ad..000000000 --- a/.editorconfig +++ /dev/null @@ -1,21 +0,0 @@ -# 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 diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index c4daa00c9..000000000 --- a/.eslintrc +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "mgcrea/legacy", - "rules": { - "consistent-return": 1, - "padded-blocks": 0, - "no-param-reassign": 1, - "no-shadow": 1, - "no-underscore-dangle": 0, - "space-before-function-paren": [2, "always"] - }, - "globals": { - "angular": 1 - } -} diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 176a458f9..000000000 --- a/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -* text=auto diff --git a/.github/lock.yml b/.github/lock.yml deleted file mode 100644 index 46bb6dbb9..000000000 --- a/.github/lock.yml +++ /dev/null @@ -1,39 +0,0 @@ -# Configuration for Lock Threads - https://github.com/dessant/lock-threads - -# Number of days of inactivity before a closed issue or pull request is locked -daysUntilLock: 90 - -# Skip issues and pull requests created before a given timestamp. Timestamp must -# follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable -skipCreatedBefore: false - -# Issues and pull requests with these labels will be ignored. Set to `[]` to disable -exemptLabels: [] - -# Label to add before locking, such as `outdated`. Set to `false` to disable -lockLabel: 'outdated' - -# Comment to post before locking. Set to `false` to disable -lockComment: > - This thread has been automatically locked since there has not been - any recent activity after it was closed. Please open a new issue for - related bugs. - -# Assign `resolved` as the reason for locking. Set to `false` to disable -setLockReason: true - -# Limit to only `issues` or `pulls` -only: issues - -# Optionally, specify configuration settings just for `issues` or `pulls` -# issues: -# exemptLabels: -# - help-wanted -# lockLabel: outdated - -# pulls: -# daysUntilLock: 30 - -# Repository to extend settings from -# _extends: repo - diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index e556fa985..000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,17 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 60 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 7 -# Issues with these labels will never be considered stale -exemptLabels: - - pinned - - security -# Label to use when marking an issue as stale -staleLabel: stale -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. Thank you - for your contributions. -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: false diff --git a/.gitignore b/.gitignore index 551af5d8c..f3629b87d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,4 @@ -.dev/ -.tmp/ .DS_Store -.idea -*.log -*.sublime-project -*.sublime-workspace -bower_components/ -node_modules/ -/pages/ -/docs/1.0 -/test/coverage/ +npm-debug.log +test/coverage !.gitignore -!dist/ -*.nupkg diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 7255efa0b..000000000 --- a/.npmignore +++ /dev/null @@ -1 +0,0 @@ -yarn.lock \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 305cf62f7..d8672ae99 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,37 +1,12 @@ language: node_js -sudo: false node_js: - - "4" - -env: - global: - - SAUCE_USERNAME=mgcrea - - SAUCE_ACCESS_KEY=ad4bb656-dfad-4a10-8c10-0a0d8b5a1ead - - CODE_CLIMATE_TOKEN=b5ed978a0e88f95b003a668583ae70815e18cd71019d526023b5e9c7703ec076 + - 0.8 before_script: - - export DISPLAY=:99.0 - - export CHROME_BIN=chromium-browser - - sh -e /etc/init.d/xvfb start + - "export DISPLAY=:99.0" + - "export PHANTOMJS_BIN=/usr/local/phantomjs/bin/phantomjs" + - "sh -e /etc/init.d/xvfb start" - sleep 3 # give xvfb some time to start - - npm install -gq bower codeclimate-test-reporter # coveralls - - bower install --dev --config.interactive=0 - - gulp --version - - bower --version - - date --rfc-2822 script: - - npm run lint - - $(npm bin)/gulp karma:travis - - $(npm bin)/gulp karma:travis~1.6.0 - - $(npm bin)/gulp karma:travis~1.5.0 - - $(npm bin)/gulp karma:travis~1.4.0 - - $(npm bin)/gulp karma:travis~1.3.0 - - $(npm bin)/gulp karma:travis~1.2.0 - -after_script: - - cat test/coverage/*/lcov.info | codeclimate-test-reporter - -addons: - code_climate: - repo_token: b5ed978a0e88f95b003a668583ae70815e18cd71019d526023b5e9c7703ec076 + - grunt lint test diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index edb24a8bb..000000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,152 +0,0 @@ -# Contributing - -## Submitting issues -Any bug-related issue should come with a reproducible test-case, use the Plunker links in the docs to easily create one. - -## Important notes -Please don't edit files in the `dist` subdirectory as they are generated via gulp. You'll find source code in the `src` subdirectory! - -### Code style -Regarding code style like indentation and whitespace, **follow the conventions you see used in the source already.** - -## Modifying the code -First, ensure that you have the latest [Node.js](http://nodejs.org/) and [npm](http://npmjs.org/) installed. - -Test that gulp's CLI and Bower are installed by running `gulp --version` and `bower --version`. If the commands aren't found, run `npm install -g gulpjs/gulp#4.0 bower`. For more information about installing the tools, see the [getting started with gulp guide](https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md) or [bower.io](http://bower.io/) respectively. - -> Currently, AngularStrap uses gulp 4.0 which is not yet available on npm repository, so you will need to install it from github. - -1. Fork and clone the repo. -1. Run `npm install` to install all build dependencies (including gulp). -1. Run `bower install` to install the front-end dependencies. -1. Run `gulp test` to test this project. - -Assuming that you don't see any red, you're ready to go. Just be sure to run `gulp test` after making any changes, to ensure that nothing is broken. - -## Submitting a Pull Request - -Before you submit your pull request consider the following guidelines: - -* Search [GitHub](https://github.com/angular/angular.js/pulls) for an open or closed Pull Request - that relates to your submission. You don't want to duplicate effort. -* Make your changes in a new git branch - - ```shell - git checkout -b my-fix-branch master - ``` - -* Create your patch, including appropriate test cases. -* Follow our [Coding Rules](#coding-rules) -* Commit your changes and create a descriptive commit message (the - commit message is used to generate release notes, please check out our - [commit message conventions](#commit-message-format) and our commit message presubmit hook - `validate-commit-msg.js`): - - ```shell - git commit -a - ``` - -* Build your changes locally to ensure all the tests pass - - ```shell - gulp test - ``` - -* Push your branch to Github: - - ```shell - git push origin my-fix-branch - ``` - -* In Github, send a pull request to `angular-strap:master`. -* If we suggest changes then you can modify your branch, rebase and force a new push to your GitHub - repository to update the Pull Request: - - ```shell - git rebase master -i - git push -f - ``` - -That's it! Thank you for your contribution! - -When the patch is reviewed and merged, you can safely delete your branch and pull the changes -from the main (upstream) repository: - -* Delete the remote branch on Github: - - ```shell - git push origin --delete my-fix-branch - ``` - -* Check out the master branch: - - ```shell - git checkout master -f - ``` - -* Delete the local branch: - - ```shell - git branch -D my-fix-branch - ``` - -* Update your master with the latest upstream version: - - ```shell - git pull --ff upstream master - ``` - - -## Git Commit Guidelines - -We have very precise rules over how our git commit messages can be formatted. This leads to **more -readable messages** that are easy to follow when looking through the **project history**. But also, -we use the git commit messages to **generate the AngularJS change log**. - -### Commit Message Format -Each commit message consists of a **header**, a **body** and a **footer**. The header has a special -format that includes a **type**, a **scope** and a **subject**: - -``` -(): - - - -