Skip to content

Commit

Permalink
init to win it
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Feb 15, 2017
0 parents commit f144e2d
Show file tree
Hide file tree
Showing 30 changed files with 9,088 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
*~
*.sw[mnpcod]
*.log
*.lock
*.tmp
*.tmp.*
log.txt
*.sublime-project
*.sublime-workspace

.idea/
.vscode/
.sass-cache/
.versions/
node_modules/

dist
17 changes: 17 additions & 0 deletions demos/myapp/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "myapp",
"version": "0.0.1",
"license": "MIT",
"scripts": {
"build": "npm run build.ts && npm run bundle",
"build.clean": "rimraf dist",
"build.ts": "tsc --project src",
"bundle": "rollup -c scripts/build/rollup.es2015.js",
"serve": "httpster -p 8888 -d www"
},
"devDependencies": {
"httpster": "1.0.3",
"rimraf": "2.5.4",
"rollup": "^0.41.4"
}
}
7 changes: 7 additions & 0 deletions demos/myapp/scripts/build/rollup.es2015.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

export default {
format: 'es',
entry: 'dist/app/app.js',
dest: 'www/build/app.js'
};

15 changes: 15 additions & 0 deletions demos/myapp/src/app/app.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { bootstrapClient } from 'ionic-core';


import config from './config';
import pages from './pages';
import components from './components';
import routes from './routes';


bootstrapClient({
config,
pages,
components,
routes
});
6 changes: 6 additions & 0 deletions demos/myapp/src/app/components.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { Button } from 'ionic-ui';


export default [
Button
];
4 changes: 4 additions & 0 deletions demos/myapp/src/app/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

export default {
'mode': 'md'
};
4 changes: 4 additions & 0 deletions demos/myapp/src/app/pages.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

export default [

];
5 changes: 5 additions & 0 deletions demos/myapp/src/app/routes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@


export default {

}
23 changes: 23 additions & 0 deletions demos/myapp/src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"lib": [
"dom",
"es5",
"es2015"
],
"module": "es2015",
"outDir": "../dist",
"target": "es2015",
"sourceMap": true,
"experimentalDecorators": true,
"baseUrl": ".",
"paths": {
"ionic-core": ["../../../ionic-core/dist/es2015/index"],
"ionic-ui": ["../../../ionic-ui/dist/es2015/index"]
}
},
"include": [
"**/*.ts"
]
}
69 changes: 69 additions & 0 deletions demos/myapp/src/tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"rules": {
"class-name": true,
"comment-format": [
true,
"check-space"
],
"eofline": true,
"indent": [
true,
"spaces"
],
"no-debugger": true,
"no-duplicate-variable": true,
"no-eval": true,
"no-inner-declarations": [
true,
"functions"
],
"no-internal-module": true,
"no-trailing-whitespace": true,
"no-unused-variable": [
true
],
"no-var-keyword": false,
"one-line": [
true,
"check-catch",
"check-else",
"check-open-brace",
"check-whitespace"
],
"quotemark": [
true,
"single"
],
"radix": true,
"semicolon": [
true,
"always"
],
"triple-equals": [
true,
"allow-null-check"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"variable-name": [
true,
"ban-keywords"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
]
}
}
28 changes: 28 additions & 0 deletions demos/myapp/www/build/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { Button } from 'ionic-ui';

var config = {
'mode': 'md'
};

var pages = [];

var components = [
Button
];

class UserData {
}

var services = {
'UserData': { useClass: UserData }
};

var routes = {};

bootstrapClient({
config,
pages,
components,
services,
routes
});
18 changes: 18 additions & 0 deletions demos/myapp/www/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<title>Ionic Next</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">

<link href="./assets/ionic.css" rel="stylesheet">
<link href="./assets/app.css" rel="stylesheet">
</head>
<body>

<ion-app></ion-app>

<script src="./build/app.js"></script>
</body>
</html>
20 changes: 20 additions & 0 deletions ionic-core/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "ionic-core",
"version": "0.0.1",
"description": "yolo",
"author": "yes",
"license": "MIT Romney",
"scripts": {
"build": "npm run build.clean && npm run build.ts && npm run rollup.es2015 && npm run copy.package.json",
"build.clean": "rimraf dist",
"build.ts": "tsc --project src",
"rollup.es2015": "rollup -c scripts/build/rollup.es2015.js",
"copy.package.json": "cp scripts/build/package.json dist"
},
"devDependencies": {
"rimraf": "2.5.4",
"rollup": "^0.41.4",
"tslint": "^4.3.1",
"typescript": "^2.1.0"
}
}
Loading

0 comments on commit f144e2d

Please sign in to comment.