diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 509d138..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,13 +0,0 @@
-node_modules/
-coverage/
-*.log
-
-.idea/
-*.iml
-*.iws
-
-.settings/
-.project
-.classpath
-
-.DS_Store
diff --git a/.npmignore b/.npmignore
deleted file mode 100644
index cb7169d..0000000
--- a/.npmignore
+++ /dev/null
@@ -1,8 +0,0 @@
-.idea/
-node_modules/
-website/
-
-.DS_Store
-.gitignore
-
-make.sh
diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index 8dada3e..0000000
--- a/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "{}"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright {yyyy} {name of copyright owner}
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/README.md b/README.md
deleted file mode 100644
index 14f4c2d..0000000
--- a/README.md
+++ /dev/null
@@ -1,212 +0,0 @@
-[](https://www.npmjs.com/package/angular-async-loader)
-[](http://www.apache.org/licenses/LICENSE-2.0)
-
-# angular-async-loader
-
-Load modules and components asynchronously for angular 1.x application.
-
-Support load angular modules:
-* `app.useModule(name)`
-
-Support load angular components:
-
-* `app.controller`
-* `app.services`
-* `app.filter`
-* `app.directive`
-* `app.value`
-* `app.constant`
-* `app.provider`
-* `app.decorator`
-
-Support following amd/cmd loaders:
-
-* `Require.js`
-* `Sea.js`
-* `System.js`
-
-Support `controllerUrl/denpendencies` config in `angular-ui-router` and `angular-route`:
-
-* `$stateProvider.state`
-* `$routeProvider.when`
-
-# Demo
-
-http://subchen.github.io/angular-async-loader/demo/
-
-# Installation
-
-npm
-
-```shell
-npm install angular-async-loader
-```
-
-bower
-
-```shell
-bower install https://github.com/subchen/angular-async-loader.git
-```
-
-# Usage
-
-**index.html**
-
-```html
-
-
-```
-
-**bootstrap.js**
-
-```js
-require.config({
- baseUrl: '/',
- paths: {
- 'angular': 'assets/angular/angular.min',
- 'angular-ui-router': 'assets/angular-ui-router/release/angular-ui-router.min',
- 'angular-async-loader': 'assets/angular-async-loader/angular-async-loader.min',
- 'angular-ui-mask': 'assets/angular-ui-mask/dist/mask.min',
- 'ng-tags-input': 'assets/ng-tags-input/build/ng-tags-input.min'
- },
- shim: {
- 'angular': {exports: 'angular'},
- 'angular-ui-router': {deps: ['angular']}
- }
-});
-
-require(['angular', './app-routes'], function (angular) {
- angular.element(document).ready(function () {
- angular.bootstrap(document, ['app']);
- angular.element(document).find('html').addClass('ng-app');
- });
-});
-```
-
-**app.js**
-
-```js
-define(function (require, exports, module) {
- var angular = require('angular');
- var asyncLoader = require('angular-async-loader');
-
- require('angular-ui-router');
-
- var app = angular.module('app', ['ui.router']);
-
- // initialze app module for angular-async-loader
- asyncLoader.configure(app);
-
- module.exports = app;
-});
-```
-
-**app-routes.js**
-
-```js
-define(function (require) {
- var app = require('./app');
-
- app.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {
- $urlRouterProvider.otherwise('/home');
-
- $stateProvider
- .state('home', {
- url: '/home',
- templateUrl: 'home/home.html',
- // new attribute for ajax load controller
- controllerUrl: 'home/homeCtrl',
- controller: 'homeCtrl'
- })
- .state('users', {
- url: '/users',
- templateUrl: 'users/users.html',
- // new attribute for ajax load controller
- controllerUrl: 'users/usersCtrl',
- controller: 'usersCtrl',
- // support to load more controllers, services, filters, ...
- dependencies: ['services/usersService']
- })
- .state('components', {
- url: '/components',
- templateUrl: 'components/components.html',
- // new attribute for ajax load controller
- controllerUrl: 'components/componentsCtrl',
- controller: 'componentsCtrl'
- });
- }]);
-});
-```
-
-**users/usersCtrl.js**
-
-```js
-define(function (require) {
- var app = require('../app');
-
- // dynamic load services here or add into dependencies of ui-router state config
- // require('../services/usersService');
-
- app.controller('usersCtrl', ['$scope', function ($scope) {
- // shortcut to get angular injected service.
- var userServices = app.get('usersService');
- $scope.userList = usersService.list();
- }]);
-
-});
-```
-
-**components/componentsCtrl.js**
-
-```js
-define(function (require) {
- var app = require('../app');
-
- // dynamic load angular-ui-mask plugins for UI
- require('angular-ui-mask');
- app.useModule('ui.mask');
-
- // dynamic load ng-tags-input plugins for UI
- require('ng-tags-input');
- app.useModule('ngTagsInput');
-
- app.controller('componentsCtrl', ['$scope', function ($scope) {
- ......
- }]);
-
-});
-```
-
-
-# Build from Source
-
-```bash
-git clone https://github.com/subchen/angular-async-loader.git
-
-cd angular-async-loader
-
-./make.sh install
-./make.sh test
-
-open browser http://localhost:3000/
-```
-
-# License
-
-Released under the [Apache 2 License](http://www.apache.org/licenses/LICENSE-2.0).
-
-```
-Copyright 2015-2016 Guoqiang Chen
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-```
diff --git a/angular-async-loader.js b/angular-async-loader.js
deleted file mode 100644
index 06dfe75..0000000
--- a/angular-async-loader.js
+++ /dev/null
@@ -1,248 +0,0 @@
-/**
- * Load modules and components asynchronously for angular 1.x application.
- *
- * https://github.com/subchen/angular-async-loader
- *
- * subchen@gmail.com
- */
-(function() {
-
- function factory(angular, undefined) {
-
- var VERSION = '1.3.2';
-
- // Support require.js, sea.js, system.js
- var amdRequire = (function() {
- if (typeof(require) === 'function') {
- if (typeof(require.async) === 'function') {
- return require.async;
- } else {
- return require;
- }
- } else if (typeof(seajs) === 'object' && typeof(seajs.use) === 'function') {
- return seajs.use;
- } else if (typeof(System) === 'object' && typeof(System.amdRequire) === 'function') {
- return System.amdRequire;
- }
- throw new Error('No amd/cmd module loader found.');
- }());
-
- /**
- * Load external dependencies, such as Controller, Service, etc.
- *
- * @private
- * @param {String|Array} dependencies
- * @returns {*} a promised function to ajax load dependencies
- */
- function resolveDependencies(dependencies) {
- if (typeof(dependencies) === 'string') {
- dependencies = [dependencies];
- }
- return ['$q', function($q) {
- var defer = $q.defer();
- amdRequire(dependencies, function() {
- defer.resolve(arguments);
- });
- return defer.promise;
- }];
- }
-
- /**
- * Rewrite route config for $routeProvider.when or $stateProvider.state.
- *
- * Transform 'controllerUrl' and 'dependencies' attrs into resolve object.
- *
- * @private
- * @param {Object} config
- * @returns {Object} the modified config
- */
- function route(config) {
-
- function collectDependencies(config, dependencies) {
- if (config.controllerUrl) {
- dependencies.push(config.controllerUrl);
- //delete config.controllerUrl;
- }
- if (config.dependencies) {
- if (typeof(config.dependencies) === 'string') {
- dependencies.push(config.dependencies);
- } else {
- [].push.apply(dependencies, config.dependencies);
- }
- //delete config.dependencies;
- }
- }
-
- var dependencies = [];
-
- collectDependencies(config, dependencies);
-
- if (config.hasOwnProperty('views')) {
- // multiple views support
- Object.keys(config.views).forEach(function(view) {
- collectDependencies(config.views[view], dependencies);
- });
- }
-
- if (dependencies.length > 0) {
- var resolve = config.resolve || {};
- resolve['$dummy'] = resolveDependencies(dependencies);
- config.resolve = resolve;
- }
-
- return config;
- }
-
-
- return {
- /**
- * Version of npm package.
- */
- VERSION: VERSION,
-
- /**
- * Configure angular module instance to support async load components.
- *
- * @param {angular.Module} app
- */
- configure: function(app) {
-
- app.provider('ngProviders', ['$controllerProvider', '$compileProvider', '$filterProvider', '$provide', '$injector',
- function($controllerProvider, $compileProvider, $filterProvider, $provide, $injector) {
- this.$get = function() {
- return {
- $controllerProvider: $controllerProvider,
- $compileProvider: $compileProvider,
- $filterProvider: $filterProvider,
- $provide: $provide,
- $injector: $injector
- };
- };
- }
- ]);
-
- app.run(['ngProviders', '$injector', function(ngProviders, $injector) {
- var $controllerProvider = ngProviders.$controllerProvider;
- var $compileProvider = ngProviders.$compileProvider;
- var $filterProvider = ngProviders.$filterProvider;
- var $provide = ngProviders.$provide;
-
- /**
- * Register an angular module for dependency.
- *
- * @param {String} name - module name
- */
- app.useModule = function (name) {
- var module = angular.module(name);
-
- if (module.requires) {
- for (var i = 0; i < module.requires.length; i++) {
- app.useModule(module.requires[i]);
- }
- }
- angular.forEach(module._invokeQueue, function(args) {
- var provider = ngProviders[args[0]] || $injector.get(args[0]);
- provider[args[1]].apply(provider, args[2]);
- });
- angular.forEach(module._configBlocks, function(args) {
- var provider = ngProviders.$injector.get(args[0]);
- provider[args[1]].apply(provider, args[2]);
- });
- angular.forEach(module._runBlocks, function(args) {
- $injector.invoke(args);
- });
-
- return app;
- };
-
- app.value = function(name, value) {
- $provide.value(name, value);
- return app;
- };
-
- app.constant = function(name, value) {
- $provide.constant(name, value);
- return app;
- };
-
- app.factory = function(name, factory) {
- $provide.factory(name, factory);
- return app;
- };
-
- app.service = function(name, service) {
- $provide.service(name, service);
- return app;
- };
-
- app.filter = function(name, filter) {
- $filterProvider.register(name, filter);
- return app;
- };
-
- app.directive = function(name, directive) {
- $compileProvider.directive(name, directive);
- return app;
- };
-
- app.controller = function(name, controller) {
- $controllerProvider.register(name, controller);
- return app;
- };
-
- app.decorator = function(name, decorator) {
- $provide.decorator(name, decorator);
- return app;
- };
-
- app.provider = function(name, service) {
- $provide.provider(name, service);
- return app;
- };
-
- /**
- * Get angular injector object by name in module scope.
- *
- * @param {String} name
- * @returns {*} the injected object
- */
- app.get = function(name) {
- return $injector.get(name);
- };
-
- }]);
-
- // rewrite $routeProvider.when
- if (app.requires && app.requires.indexOf('ngRoute') !== -1) {
- app.config(['$routeProvider', function($routeProvider) {
- var whenFn = $routeProvider.when;
- $routeProvider.when = function(path, config) {
- return whenFn.call($routeProvider, path, route(config));
- };
- }]);
- }
- // rewrite $stateProvider.state
- if (app.requires && app.requires.indexOf('ui.router') !== -1) {
- app.config(['$stateProvider', function($stateProvider) {
- var stateFn = $stateProvider.state;
- $stateProvider.state = function(state, config) {
- return stateFn.call($stateProvider, state, route(config));
- };
- }]);
- }
- }
- };
- }
-
- /**
- * @exports
- */
- if (typeof(define) === 'function' && define.amd) {
- define(['angular'], function(angular) {
- return factory(angular);
- });
- } else {
- window.asyncLoader = factory(window.angular);
- }
-
-}());
diff --git a/angular-async-loader.min.js.map b/angular-async-loader.min.js.map
deleted file mode 100644
index fc39fe4..0000000
--- a/angular-async-loader.min.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"angular-async-loader.min.js","sources":["angular-async-loader.js"],"names":["factory","angular","resolveDependencies","dependencies","$q","defer","amdRequire","resolve","arguments","promise","route","config","collectDependencies","controllerUrl","push","apply","hasOwnProperty","Object","keys","views","forEach","view","length","VERSION","require","async","seajs","use","System","Error","configure","app","provider","$controllerProvider","$compileProvider","$filterProvider","$provide","$injector","this","$get","run","ngProviders","useModule","name","module","requires","i","_invokeQueue","args","get","_configBlocks","_runBlocks","invoke","value","constant","service","filter","register","directive","controller","decorator","indexOf","$routeProvider","whenFn","when","path","call","$stateProvider","stateFn","state","define","amd","window","asyncLoader"],"mappings":"CAOC,WAEG,QAASA,GAAQC,GA2Bb,QAASC,GAAoBC,GAIzB,MAH6B,gBAAnB,KACNA,GAAgBA,KAEZ,KAAM,SAASC,GACnB,GAAIC,GAAQD,EAAGC,OAIf,OAHAC,GAAWH,EAAc,WACrBE,EAAME,QAAQC,aA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BxB,GASXA,EAAIkB,IAAM,SAASN,GACf,MAAON,GAAUY,IAAIN,OAMzBZ,EAAIc,UAAgD,KAApCd,EAAIc,SAASgB,QAAQ,YACrC9B,EAAIpB,QAAQ,iBAAkB,SAASmD,GACnC,GAAIC,GAASD,EAAeE,IAC5BF,GAAeE,KAAO,SAASC,EAAMtD,GACjC,MAAOoD,GAAOG,KAAKJ,EAAgBG,EAAMvD,EAAMC,QAKvDoB,EAAIc,UAAkD,KAAtCd,EAAIc,SAASgB,QAAQ,cACrC9B,EAAIpB,QAAQ,iBAAkB,SAASwD,GACnC,GAAIC,GAAUD,EAAeE,KAC7BF,GAAeE,MAAQ,SAASA,EAAO1D,GACnC,MAAOyD,GAAQF,KAAKC,EAAgBE,EAAO3D,EAAMC,UAWlD,kBAAb,SAA2B2D,OAAOC,IACxCD,QAAQ,WAAY,SAASrE,GACzB,MAAOD,GAAQC,KAGnBuE,OAAOC,YAAczE,EAAQwE,OAAOvE"}
\ No newline at end of file
diff --git a/website/assets/css/github-light.css b/assets/css/github-light.css
similarity index 100%
rename from website/assets/css/github-light.css
rename to assets/css/github-light.css
diff --git a/website/assets/css/normalize.css b/assets/css/normalize.css
similarity index 100%
rename from website/assets/css/normalize.css
rename to assets/css/normalize.css
diff --git a/website/assets/css/stylesheet.css b/assets/css/stylesheet.css
similarity index 100%
rename from website/assets/css/stylesheet.css
rename to assets/css/stylesheet.css
diff --git a/website/assets/highlight.js/github.css b/assets/highlight.js/github.css
similarity index 100%
rename from website/assets/highlight.js/github.css
rename to assets/highlight.js/github.css
diff --git a/website/assets/highlight.js/highlight.min.js b/assets/highlight.js/highlight.min.js
similarity index 100%
rename from website/assets/highlight.js/highlight.min.js
rename to assets/highlight.js/highlight.min.js
diff --git a/bower.json b/bower.json
deleted file mode 100644
index 346a43d..0000000
--- a/bower.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "name": "angular-async-loader",
- "version": "1.3.2",
- "homepage": "https://github.com/subchen/angular-async-loader",
- "authors": [
- "Guoqiang Chen "
- ],
- "description": "Load modules and components asynchronously for angular 1.x application",
- "main": "angular-async-loader.js",
- "keywords": [
- "angular",
- "requirejs",
- "systemjs",
- "seajs",
- "async",
- "ui-router",
- "ngRoute"
- ],
- "license": "Apache-2.0",
- "ignore": [
- ".*",
- "node_modules",
- "bower_components",
- "demo",
- "make.sh"
- ]
-}
-
diff --git a/website/demo/app-routes.js b/demo/app-routes.js
similarity index 100%
rename from website/demo/app-routes.js
rename to demo/app-routes.js
diff --git a/website/demo/app.js b/demo/app.js
similarity index 100%
rename from website/demo/app.js
rename to demo/app.js
diff --git a/angular-async-loader.min.js b/demo/assets/angular-async-loader/angular-async-loader.min.js
similarity index 100%
rename from angular-async-loader.min.js
rename to demo/assets/angular-async-loader/angular-async-loader.min.js
diff --git a/website/demo/assets/angular-ui-mask/dist/mask.min.js b/demo/assets/angular-ui-mask/dist/mask.min.js
similarity index 100%
rename from website/demo/assets/angular-ui-mask/dist/mask.min.js
rename to demo/assets/angular-ui-mask/dist/mask.min.js
diff --git a/website/demo/assets/angular-ui-router/release/angular-ui-router.min.js b/demo/assets/angular-ui-router/release/angular-ui-router.min.js
similarity index 100%
rename from website/demo/assets/angular-ui-router/release/angular-ui-router.min.js
rename to demo/assets/angular-ui-router/release/angular-ui-router.min.js
diff --git a/website/demo/assets/angular/angular.min.js b/demo/assets/angular/angular.min.js
similarity index 100%
rename from website/demo/assets/angular/angular.min.js
rename to demo/assets/angular/angular.min.js
diff --git a/website/demo/assets/ng-file-upload/dist/ng-file-upload-all.min.js b/demo/assets/ng-file-upload/dist/ng-file-upload-all.min.js
similarity index 100%
rename from website/demo/assets/ng-file-upload/dist/ng-file-upload-all.min.js
rename to demo/assets/ng-file-upload/dist/ng-file-upload-all.min.js
diff --git a/website/demo/assets/ng-tags-input/build/ng-tags-input.min.css b/demo/assets/ng-tags-input/build/ng-tags-input.min.css
similarity index 100%
rename from website/demo/assets/ng-tags-input/build/ng-tags-input.min.css
rename to demo/assets/ng-tags-input/build/ng-tags-input.min.css
diff --git a/website/demo/assets/ng-tags-input/build/ng-tags-input.min.js b/demo/assets/ng-tags-input/build/ng-tags-input.min.js
similarity index 100%
rename from website/demo/assets/ng-tags-input/build/ng-tags-input.min.js
rename to demo/assets/ng-tags-input/build/ng-tags-input.min.js
diff --git a/website/demo/assets/requirejs/require.js b/demo/assets/requirejs/require.js
similarity index 100%
rename from website/demo/assets/requirejs/require.js
rename to demo/assets/requirejs/require.js
diff --git a/website/demo/bootstrap.js b/demo/bootstrap.js
similarity index 100%
rename from website/demo/bootstrap.js
rename to demo/bootstrap.js
diff --git a/website/demo/components/components.html b/demo/components/components.html
similarity index 100%
rename from website/demo/components/components.html
rename to demo/components/components.html
diff --git a/website/demo/components/componentsCtrl.js b/demo/components/componentsCtrl.js
similarity index 100%
rename from website/demo/components/componentsCtrl.js
rename to demo/components/componentsCtrl.js
diff --git a/website/demo/home/home.html b/demo/home/home.html
similarity index 100%
rename from website/demo/home/home.html
rename to demo/home/home.html
diff --git a/website/demo/home/homeCtrl.js b/demo/home/homeCtrl.js
similarity index 100%
rename from website/demo/home/homeCtrl.js
rename to demo/home/homeCtrl.js
diff --git a/website/demo/index.html b/demo/index.html
similarity index 100%
rename from website/demo/index.html
rename to demo/index.html
diff --git a/website/demo/package.json b/demo/package.json
similarity index 100%
rename from website/demo/package.json
rename to demo/package.json
diff --git a/website/demo/services/usersService.js b/demo/services/usersService.js
similarity index 100%
rename from website/demo/services/usersService.js
rename to demo/services/usersService.js
diff --git a/website/demo/users/users.html b/demo/users/users.html
similarity index 100%
rename from website/demo/users/users.html
rename to demo/users/users.html
diff --git a/website/demo/users/usersCtrl.js b/demo/users/usersCtrl.js
similarity index 100%
rename from website/demo/users/usersCtrl.js
rename to demo/users/usersCtrl.js
diff --git a/website/index.html b/index.html
similarity index 100%
rename from website/index.html
rename to index.html
diff --git a/make.sh b/make.sh
deleted file mode 100755
index 2be8856..0000000
--- a/make.sh
+++ /dev/null
@@ -1,95 +0,0 @@
-#!/bin/bash
-
-set -e
-
-root=$(cd $(dirname $0); pwd)
-
-clean() {
- rm -rf $root/node_modules
- rm -rf $root/website/demo/node_modules
-}
-
-install() {
- cd $root
-
- if [ ! -f "./node_modules/.bin/uglifyjs" ]; then
- npm install uglifyjs
- fi
-
- ./node_modules/.bin/uglifyjs \
- angular-async-loader.js -c -m \
- -o angular-async-loader.min.js \
- --source-map angular-async-loader.min.js.map
-
-
- cd $root/website/demo
-
- if [ ! -d "./node_modules" ]; then
- npm install
-
- mkdir -p assets/requirejs/
- cp node_modules/requirejs/require.js assets/requirejs/
-
- mkdir -p assets/angular/
- cp node_modules/angular/angular.min.js assets/angular/
-
- mkdir -p assets/angular-ui-router/release/
- cp node_modules/angular-ui-router/release/angular-ui-router.min.js assets/angular-ui-router/release/
-
- mkdir -p assets/angular-ui-mask/dist/
- cp node_modules/angular-ui-mask/dist/mask.min.js assets/angular-ui-mask/dist/
-
- mkdir -p assets/ng-tags-input/build/
- cp node_modules/ng-tags-input/build/ng-tags-input.min.js assets/ng-tags-input/build/
- cp node_modules/ng-tags-input/build/ng-tags-input.min.css assets/ng-tags-input/build/
-
- mkdir -p assets/ng-file-upload/dist/
- cp node_modules/ng-file-upload/dist/ng-file-upload-all.min.js assets/ng-file-upload/dist/
- fi
-
- mkdir -p assets/angular-async-loader/
- cp $root/angular-async-loader.min.js assets/angular-async-loader/
-}
-
-build_website() {
- cd $root
- git branch -D gh-pages || true
- git checkout --orphan gh-pages
-
- mv ./website /tmp/
- git reset --hard
- mv /tmp/website/* ./
- git add --all
- git commit -m "Update website"
-
- git checkout master
-}
-
-test() {
- cd $root
-
- if [ ! -f "./node_modules/.bin/browser-sync" ]; then
- npm install browser-sync
- fi
-
- ./node_modules/.bin/browser-sync start -s website/demo --files website/demo
-}
-
-case "$1" in
- clean)
- clean
- ;;
- install)
- install
- ;;
- website)
- build_website
- ;;
- test)
- test
- ;;
- *)
- echo "Usage: $0 { clean | install | test }"
- exit 1
-esac
-
diff --git a/package.json b/package.json
deleted file mode 100644
index b248676..0000000
--- a/package.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "name": "angular-async-loader",
- "version": "1.3.2",
- "description": "Load modules and components asynchronously for angular 1.x application",
- "author": {
- "name": "Guoqiang Chen",
- "email": "subchen@gmail.com",
- "url": "https://github.com/subchen"
- },
- "contributors": [],
- "license": "Apache-2.0",
- "repository": {
- "type": "git",
- "url": "https://github.com/subchen/angular-async-loader.git"
- },
- "bugs": {
- "url": "https://github.com/subchen/angular-async-loader/issues"
- },
- "keywords": [
- "angular",
- "requirejs",
- "systemjs",
- "seajs",
- "async",
- "ui-router",
- "ngRoute"
- ],
- "dependencies": {}
-}
-
diff --git a/website/demo/assets/angular-async-loader/angular-async-loader.min.js b/website/demo/assets/angular-async-loader/angular-async-loader.min.js
deleted file mode 100644
index 1af9077..0000000
--- a/website/demo/assets/angular-async-loader/angular-async-loader.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-!function(){function e(e){function r(e){return"string"==typeof e&&(e=[e]),["$q",function(r){var n=r.defer();return t(e,function(){n.resolve(arguments)}),n.promise}]}function n(e){function n(e,r){e.controllerUrl&&r.push(e.controllerUrl),e.dependencies&&("string"==typeof e.dependencies?r.push(e.dependencies):[].push.apply(r,e.dependencies))}var o=[];if(n(e,o),e.hasOwnProperty("views")&&Object.keys(e.views).forEach(function(r){n(e.views[r],o)}),o.length>0){var t=e.resolve||{};t.$dummy=r(o),e.resolve=t}return e}var o="1.3.2",t=function(){if("function"==typeof require)return"function"==typeof require.async?require.async:require;if("object"==typeof seajs&&"function"==typeof seajs.use)return seajs.use;if("object"==typeof System&&"function"==typeof System.amdRequire)return System.amdRequire;throw new Error("No amd/cmd module loader found.")}();return{VERSION:o,configure:function(r){r.provider("ngProviders",["$controllerProvider","$compileProvider","$filterProvider","$provide","$injector",function(e,r,n,o,t){this.$get=function(){return{$controllerProvider:e,$compileProvider:r,$filterProvider:n,$provide:o,$injector:t}}}]),r.run(["ngProviders","$injector",function(n,o){var t=n.$controllerProvider,i=n.$compileProvider,u=n.$filterProvider,c=n.$provide;r.useModule=function(t){var i=e.module(t);if(i.requires)for(var u=0;u