Skip to content

Commit

Permalink
chore(all): build system
Browse files Browse the repository at this point in the history
  • Loading branch information
niieani committed Aug 24, 2016
1 parent bacf52a commit 6674303
Show file tree
Hide file tree
Showing 9 changed files with 213 additions and 69 deletions.
38 changes: 19 additions & 19 deletions .editorconfig
@@ -1,19 +1,19 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = crlf
insert_final_newline = true

# 2 space indentation
[**.*]
indent_style = space
indent_size = 2

[node_modules/**/*,dist/**/*]
insert_final_newline = false
indent_style = none
indent_size = none
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = crlf
insert_final_newline = true

# 2 space indentation
[**.*]
indent_style = space
indent_size = 2

[node_modules/**/*,dist/**/*]
insert_final_newline = false
indent_style = none
indent_size = none
15 changes: 8 additions & 7 deletions .gitignore
@@ -1,7 +1,8 @@
node_modules
jspm_packages
bower_components
.idea
.DS_STORE
*.swp
npm-debug.log
node_modules
jspm_packages
bower_components
.idea
.DS_STORE
*.swp
npm-debug.log*
.test
6 changes: 3 additions & 3 deletions .vscode/settings.json
@@ -1,3 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
{
"typescript.tsdk": "node_modules/typescript/lib"
}
10 changes: 10 additions & 0 deletions .vscode/tasks.json
@@ -0,0 +1,10 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "tsc",
"isShellCommand": true,
"args": ["-p", ".", "--outFile", "dist/amd/aurelia-validation.js"],
"showOutput": "silent",
"problemMatcher": "$tsc"
}
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
@@ -0,0 +1,3 @@
# Contributing

We'd love for you to contribute and to make this project even better than it is today! If this interests you, please begin by reading [our contributing guidelines](https://github.com/DurandalProject/about/blob/master/CONTRIBUTING.md). The contributing document will provide you with all the information you need to get started. Once you have read that, you will need to also [sign our CLA](http://goo.gl/forms/dI8QDDSyKR) before we can accept a Pull Request from you. More information on the process is included in the [contributor's guide](https://github.com/DurandalProject/about/blob/master/CONTRIBUTING.md).
76 changes: 76 additions & 0 deletions ISSUE_TEMPLATE.md
@@ -0,0 +1,76 @@
<!--
BUGS: Please use this template.
SUPPORT REQUESTS/QUESTIONS: If you have a support request or question please
submit them to StackOverflow using the tags aurelia and aurelia-framework
http://stackoverflow.com/questions/tagged/aurelia
or the Aurelia Gitter https://gitter.im/aurelia/discuss
Durandal Inc. offers paid support agreements. Further information regarding paid support
may be obtained by emailing support@durandal.io
Future support requests submitted here will be closed.
The HTML comments below are for your reference, and are not displayed
when your issue is submitted, feel free to leave them.
Choose one of the two headings, delete the other.
-->
**I'm submitting a bug report**
**I'm submitting a feature request**

* **Library Version:**
major.minor.patch-pre


**Please tell us about your environment:**
* **Operating System:**
OSX 10.x|Linux (distro)|Windows [7|8|8.1|10]

* **Node Version:**
6.2.0
<!--
Minimum supported Node version is latest Node 4.x LTS
run `node -v`
-->

* **NPM Version:**
3.8.9
<!--
Minimum supported NPM version is 3.x
run `npm -v`
-->

* **JSPM OR Webpack AND Version**
JSPM 0.16.32 | webpack 2.1.0-beta.17
<!--
If using JSPM
run `jspm -v`
If using Webpack
run `webpack --help | grep webpack`
-->

* **Browser:**
all | Chrome XX | Firefox XX | Edge XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView

* **Language:**
all | TypeScript X.X | ESNext


**Current behavior:**


**Expected/desired behavior:**
<!--
If the current behavior is a bug, please provide the steps to reproduce and, if possible, a minimal demo of the
problem along with a runnable gist, if possible.
To create a runnable gist, go to https://gist.run/?id=7542e061bc940cde506b&sha=6821c521a6c7bae6f59a36fb8628ecd1032b2d10
Then click "Fork to Public Gist".
Create your gist, then finally click "Update Gist." Include a link to the gist.run below.
-->


* **What is the expected behavior?**


* **What is the motivation / use case for changing the behavior?**
21 changes: 21 additions & 0 deletions LICENSE
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2016 Durandal Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
21 changes: 21 additions & 0 deletions doc/tsconfig.json
@@ -0,0 +1,21 @@
{
// this file is here only because typedoc doesn't yet support TypeScript 2.0
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "node",
"target": "es5",
"outDir": "dist/native-modules",
"noImplicitAny": true,
"noImplicitReturns": true,
"declaration": true,
"forceConsistentCasingInFileNames": true,
"experimentalDecorators": true,
"noEmitHelpers": false
},
"exclude": [
"dist",
"build",
"node_modules",
"doc"
]
}
92 changes: 52 additions & 40 deletions package.json
@@ -1,40 +1,52 @@
{
"name": "aurelia-validation",
"version": "0.10.0",
"description": "Validation for Aurelia applications",
"keywords": [
"aurelia",
"plugin",
"validation"
],
"homepage": "http://aurelia.io",
"bugs": {
"url": "https://github.com/aurelia/validation/issues"
},
"license": "MIT",
"author": "Jeremy Danyow <jdanyow@gmail.com> (https:/danyow.net/)",
"main": "dist/amd/aurelia-validation.js",
"typings": "dist/amd/aurelia-validation.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/aurelia/validation"
},
"dependencies": {
"aurelia-binding": "^1.0.1",
"aurelia-metadata": "^1.0.0",
"aurelia-templating": "^1.0.0"
},
"devDependencies": {
"typescript": "beta"
},
"aurelia": {
"documentation": {
"articles": [
{
"title": "Validation: Basics",
"href": "doc/article/en-US/validation-basics.md"
}
]
}
}
}
{
"name": "aurelia-validation",
"version": "0.10.0",
"description": "Validation for Aurelia applications",
"keywords": [
"aurelia",
"plugin",
"validation"
],
"homepage": "http://aurelia.io",
"bugs": {
"url": "https://github.com/aurelia/validation/issues"
},
"license": "MIT",
"author": "Jeremy Danyow <jdanyow@gmail.com> (https:/danyow.net/)",
"main": "dist/amd/aurelia-validation.js",
"typings": "dist/commonjs/aurelia-validation.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/aurelia/validation"
},
"scripts": {
"prebuild:compile": "del 'dist/**'",
"build:compile": "concurrently \"node_modules/.bin/tsc --outFile dist/amd/aurelia-validation.js\" \"node_modules/.bin/tsc --outDir dist/commonjs --module commonjs\" \"node_modules/.bin/tsc --outDir dist/native-modules --module es2015\" \"node_modules/.bin/tsc --outDir dist/system --module system\" \"node_modules/.bin/tsc --outDir dist/es2015 --target es2015 --module es2015\" || true",
"build": "npm run build:compile",
"postbuild": "npm run build:doc",
"prebuild:doc": "del 'doc/api.json'",
"build:doc": "./node_modules/.bin/typedoc --json doc/api.json --excludeExternals --includeDeclarations --mode modules --target ES6 --name aurelia-validation-docs --ignoreCompilerErrors --tsconfig doc/tsconfig.json src/",
"postbuild:doc": "node doc/shape-doc",
},
"dependencies": {
"aurelia-binding": "^1.0.1",
"aurelia-metadata": "^1.0.0",
"aurelia-templating": "^1.0.0"
},
"devDependencies": {
"concurrently": "^2.2.0",
"del-cli": "^0.2.0",
"typedoc": "^0.4.5",
"typescript": "^2.0.0"
},
"aurelia": {
"documentation": {
"articles": [
{
"title": "Validation: Basics",
"href": "doc/article/en-US/validation-basics.md"
}
]
}
}
}

0 comments on commit 6674303

Please sign in to comment.