Skip to content

Commit

Permalink
feat(devenv): Build single NPM package πŸ”ƒ ✨ βš– (#7)
Browse files Browse the repository at this point in the history
* Adding message source...

* Conformed package modules to typescript idiom.

Adding util module.

* Working on core.StructuredError etc.

* completed naming and location of ts files.

* Applied ts 2.0 features and settings

* Conformed @jali/notes to new tsconfig style.

* Can now run tsc from modules folder.

* Added npm build script

* One working test!
Conformed to tslint. Added babel transforms.

* Added argument validators.

* reformated to 2 space indents.

completed validators.

* Renamed modules to packages

* Making argument error test helper.

* Added Error tests

Added Argument Error tests and started arg verification function tests. Also changed all double quotes to single quotes

* Adding argument validator tests.

* Progressing on argument validator unit tests

* Added nyc code coverage to project

* Updated enviornment latest version of vscode.

* Updated vscode settings for unix line endings.

* Added gitattibutes to enforce unix line endings

* Unit tests progressed through verifyNonEmpty
included build in test step
Added babel, ava, and nyc settings to package.json
Ensured inline sourcemaps for test but not for production.
Some minor error message changes.
Changed name of validators to verifiers

* continuing to unit test validators

* writing unit tests

Completed verifiers
Started iterables

* Reached 100 percent code coverage of utils

fixed nyc exclude
added namespaces to package modules.

* Tried to add TypeDoc. Failed

Minor bug fix
Trying out OpenHub badge.

* Finalized badges in README

* Administrivia

fiddled with the package.json scripts

Added a readme badge

* Tried to use dgeni

* Got esdoc integrated

* Adding esdoc manual pages.

* Working on documentation

Added example code.
Added option function message to argument verifiers.

* Docs and configuration

Added code documentation
Added clean scripts to package.json

* Adding example source

* Added cla and google analytics to readem

* Example runner with decorators and markers

* Initial compile-fix of examples.

* integrated generated examples into build process

* Added tests.

* lintfixed.

* Added lint to dev build script

* Adding documentation.

* Missed change.

* Fixed document links

* Adding api documentation

* Adding API docs

* Added Iterables functions matching Array methods

* Adding Iterables examples

* modified find to subsume first/firstOrDefault.

* Complete iterable examples

* Adding iterables unit tests

* Complete unit tests for iterables.

* Address bithound dependency issues

* Adjusted bithound reporting

* Testing bithound lint

* bithound lint fix

* Incorporated tslint settings from ng-cli beta 11

* Turned bithound linting off temporarily.

* Made minor change to test versioneye whitelist.

* Added spare line to test version eye whitelist.

* Small change to test versioneye whitelist

* Changed file to test semaphoreci integration

* Removed typings from gitignore

* Started build:prod

* Completed basic webpack functionality.

* Improved package build

* Fixed Node 6 LTE compile error

Also updated to latest dependencies.

* Added linting, examples, docs to npm test

* Configuration and Documentation

Configuration:
Updated to Ubuntu 16.04
Updated chef berksfiles to latest
Updated vagrant plugins to latest
Updated npm packages to latest

Documentation
Added DESIGN.md
Formatting and minor changes to CONTRIBUTING.md

* markdown changes

Formatting
Updated ecmascript proposals.

* Documentation and Style changes

Updated ecmaspec changes
Added markdown linter
Fixed rb linting errors

updated typescript and webpack versions

* Updated packages to latest.

* Formatting and build changes.

- Had to revert esdoc due to visual bug
- Added more topics to complete in design document

* Fixed webpackfile.js + documentation

* Fixed links in md.

* Fixed md links

* Muted bithound failure

Muted esdoc because there is a bug in
0.5.x as noted in Bug #80
  • Loading branch information
clavecoder authored Jan 15, 2017
1 parent 0df65fe commit 53ac8ab
Show file tree
Hide file tree
Showing 129 changed files with 13,922 additions and 320 deletions.
28 changes: 28 additions & 0 deletions .bithoundrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"critics": {
"lint": {"engine": "none"},
"wc": { "limit": 5000 }
},
"ignore": [
"**/node_modules/**",
"build/**",
"config/**",
"coverage/**",
"dist/**",
"examples/**",
"packages/@jali/core/**",
"packages/@jali/note/**",
"webpackfile.js"
],
"test": [
"**/test/**",
"**/tests/**",
"**/spec/**",
"**/specs/**"
],
"dependencies": {
"mute": [
"esdoc"
]
}
}
3 changes: 0 additions & 3 deletions .clang-format

This file was deleted.

10 changes: 10 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#########################################
# Angular CLI
-----------------------------------------
# compiled output
/dist
/tmp

# e2e
/e2e/*.js
/e2e/*.map
72 changes: 72 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module"
},
"root": true,
"rules": {
"spaced-comment": "error",
"curly": "error",
"eol-last": "error",
"guard-for-in": "error",
"indent": [
"error",
2
],
"no-duplicate-case": "error",
"no-extra-label": "error",
"no-unused-labels": "error",
"no-label-var": "error",
"max-len": [
"error",
100
],
"no-caller": "error",
"prefer-rest-params": "error",
"no-bitwise": "error",

"no-console": [
"error",
{
"allow": ["assert"]
}
],
"no-new-wrappers": "error",
"no-debugger": "error",
"no-dupe-keys": "error",
"no-redeclare": "error",
"no-empty": "off",
"no-eval": "error",
"no-shadow": "error",
//"no-string-literal": true,
"no-fallthrough": "error",
"no-trailing-spaces": "error",
"no-unused-expressions": "error",
"no-unused-vars": "error",
"no-unreachable": "error",
"no-use-before-define": "error",
"no-var": "error",
"sort-keys": "error",
"quotes": [
"error",
"single",
{

"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"radix": "error",
"semi": [
"error",
"always"
],
"space-before-blocks": "error",
"space-infix-ops": "error",
"space-unary-ops": "error"
}
}
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Unix (lf--\n) line endings
* text eol=lf
193 changes: 40 additions & 153 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,174 +1,56 @@

[//]: # ( Note: Comment format explained by: http://stackoverflow.com/a/32190021)
[//]: # ( )
[//]: # ( # Jali https://github.com/latticework/jali GitHub Issue )
[//]: # ( )
[//]: # ( This template supports four types of issues: Question, Idea, Bugs, )
[//]: # ( and Enhancements. Please fill out the appropriate template and remove )
[//]: # ( others. )
[//]: # ( )
[//]: # ( ## General Instructions: )
[//]: # ( )
[//]: # ( ### Workflow )
[//]: # ( The Jali repository uses ZenHub, https://www.zenhub.com/, for )
[//]: # ( project management. See CONTRIBUTING.md for the proper workflow for )
[//]: # ( Jali GitHub issues. A new issue submitted by a non-contributor or )
[//]: # ( non-core contributor should be entered using the Question or Idea )
[//]: # ( form. )
[//]: # ( )
[//]: # ( ## Commit types )
[//]: # ( The issue can be focused by specifying what kind of commit is )
[//]: # ( envisioned by a change. If more than one type of commit is associated )
[//]: # ( with the issue, consider how you can break it up into multiple )
[//]: # ( issues. )
[//]: # ( )
[//]: # ( - commit-type-name commit-type-emoji )
[//]: # ( - ---------------- ----------------- )
[//]: # ( - feat ✨ )
[//]: # ( - fix πŸ”§ )
[//]: # ( - docs πŸ“„ )
[//]: # ( - style πŸ’„ )
[//]: # ( - refactor πŸ“ )
[//]: # ( - perf πŸƒ )
[//]: # ( - test πŸ”¬ )
[//]: # ( - chore πŸ”¨ )
[//]: # ( )
[//]: # ( )
[//]: # ( ## Template forms )
[//]: # ( )
[//]: # ( )
[//]: # ( ### QUESTION ❓ :question: )
[//]: # ( )
[//]: # ( Usage questions should be asked at http://stackoverflow.com/. )
[//]: # ( However, not all questions are appropriate for StackOverflow. )
[//]: # ( See http://stackoverflow.com/tour for what kinds of questions )
[//]: # ( are appropriate for StackOverflow. Use the `jali` tag for questions )
[//]: # ( about Jali. Other questions should be asked in this repo by creating )
[//]: # ( an issue using the Question form. )
[//]: # ( )
[//]: # ( Instructions: )
[//]: # ( * Title )
[//]: # ( - Use a short interrogative sentance (i.e. a question) that )
[//]: # ( should be under 120 characters in length. )
[//]: # ( - End with the emoji sequence: `❓` `<commit-type-emoji>` `🎁` )
[//]: # ( * Type )
[//]: # ( - Use the commit types most closely related to your question. )
[//]: # ( * Question details )
[//]: # ( - Feel free to add formatting. For log dumps and other large )
[//]: # ( data, attach documents. )
[//]: # ( <!-- markdownlint-disable first-line-h1 --> )
[//]: # ( <!-- markdownlint-disable no-duplicate-header --> )
[//]: # ( )
[//]: # (Keep lines to 72 characters to leave room for the preview )
[//]: # (pane. )
[//]: # (Note: Comment format explained by: )
[//]: # (http://stackoverflow.com/a/32190021 )

> Important: Following the [ISSUE-TEMPLATE-INSTRUCTIONS.md](https://github.com/latticework/jali/blob/master/ISSUE-TEMPLATE-INSTRUCTIONS.md),
> choose the appropriate template form, `Question`, `Idea`, `Bug`,
> `Enhancement`, or `Epic`. Delete the other forms, and fill out the
> remaining form according to the instructions.
[//]: # ( ############################################################ )
[//]: # ( # FORM: Question )
# Question: `<commit-type-name>`

## Details

[//]: # ( )
[//]: # ( )
[//]: # ( ### IDEA πŸ’‘ :bulb: )
[//]: # ( )
[//]: # ( An Idea is a suggested change to the system. If you intend to submit )
[//]: # ( a GitHub pull request, you should submit an idea first, then )
[//]: # ( reference the Idea from the PR. )
[//]: # ( )
[//]: # ( Instructions: )
[//]: # ( * Title )
[//]: # ( - Use a short imperative verb phrase. It should be under 120 )
[//]: # ( characters in length. )
[//]: # ( - End with the emoji sequence: `πŸ’‘` `<commit-type-emoji>` `🎁` )
[//]: # ( * Type )
[//]: # ( - Use the commit types most closely related to your question. )
[//]: # ( * Idea details )
[//]: # ( - Feel free to add formatting. For log dumps and other large )
[//]: # ( data, attach documents. If you have created a PR or are a )
[//]: # ( non-core contributor, keep the **Idea** header but include the )
[//]: # ( the enhancement form body. )

[//]: # ( ############################################################ )
[//]: # ( # FORM: Idea )
# Idea: `<commit-type-name>`

## Details

[//]: # ( )
[//]: # ( )
[//]: # ( ### BUG 🐞 :beetle: )
[//]: # ( )
[//]: # ( The Bug form should only be used by core members; others should use )
[//]: # ( the Idea form. A Bug is a defect of the intended function of the )
[//]: # ( product. If you are formally suggesting a change to the behavior of )
[//]: # ( the product, use the Enhancement form; otherwise, use the Idea form. )
[//]: # ( Bugs are formal issues. Please fill the form out completely. )
[//]: # ( )
[//]: # ( Instructions: )
[//]: # ( * Title )
[//]: # ( - Use a short declarative sentence that explaint the defective )
[//]: # ( behavior. It should be under 120 characters in length. )
[//]: # ( - End with the emoji sequence: `🐞` `<commit-type-emoji>` `🎁` )
[//]: # ( * Type )
[//]: # ( - Use the commit types most closely related to your question. For )
[//]: # ( bugs the commit type is usually `fix`. )
[//]: # ( * Defect version )
[//]: # ( - Specify the semver version of the project that is exhibiting the )
[//]: # ( incorrect behavior. )
[//]: # ( * Severity )
[//]: # ( - Use one of: )
[//]: # ( - 0 Corrupts Data )
[//]: # ( - 1 Crashes Product )
[//]: # ( - 2 Blocks Functionality )
[//]: # ( - 3 Incorrect Behavior )
[//]: # ( - 4 Incorrect Display )
[//]: # ( - 5 Documentation Error )
[//]: # ( - 6 Cosmetic Defect )
[//]: # ( * Bug description )
[//]: # ( - Feel free to add formatting. For log dumps and other large )
[//]: # ( data, attach documents. )
[//]: # ( * Steps to reproduce )
[//]: # ( - Provide a repeatable sequence of steps that reproduce the )
[//]: # ( defect. At the end describe how the tester can verify that the )
[//]: # ( bug has been reproduced. If you can't reproduce the bug )
[//]: # ( reliably, submit an Idea instead using the bug form details. )
[//]: # ( * Desired behavior )
[//]: # ( - Explain how you think the product ought to operate. )

[//]: # ( ############################################################ )
[//]: # ( # FORM: Bug )
# Bug `<commit-type-name>`

## Details

| Version | Severity |
| Version | Severity |
|:-|:-|
| | |
| | |

## Description


## Steps to reproduce
## Steps to Reproduce

1. First, ...
1. Next, ...

### Defective behavior

## Desired behavior

[//]: # ( )
[//]: # ( )
[//]: # ( ### ENHANCEMENT ▢️️ :arrow_forward: )
[//]: # ( )
[//]: # ( The Enhancement form should only be used by core members; others )
[//]: # ( should use the Idea form. An Enhancement represents a change to the )
[//]: # ( product. Every change must be formally introduced as an Enhancement )
[//]: # ( issue before a pull request can be submitted. )
[//]: # ( )
[//]: # ( Instructions: )
[//]: # ( * Title )
[//]: # ( - Use a very short imperative verb phrase since the title is )
[//]: # ( used in the feature branch for the issue. )
[//]: # ( - End with the emoji sequence: `▢️️` `<commit-type-emoji>` `🎁` )
[//]: # ( * Definition )
[//]: # ( - Use "In order to, As a, I want to" format for new features. For )
[//]: # ( changes to existing features, include the "Whereas" clause. If )
[//]: # ( the format is too cumbersome, Start with "In order to" but )
[//]: # ( include a different subsequent clause that somehow includes a )
[//]: # ( Jali product role an an action performed. )
[//]: # ( * Tasks )
[//]: # ( - Use a markdown task list to itemize the development tasks that )
[//]: # ( contribute toward completion of the Enhancement. )
[//]: # ( * Acceptance criteria )
[//]: # ( - Include a task list of detailed tests that will be performed to )
[//]: # ( verify that the Enhancement works. )
## Defective Behavior


## Desired Behavior


[//]: # ( ############################################################ )
[//]: # ( # FORM: Enhancement )
# Enhancement `<commit-type-name>`

## Definition
Expand All @@ -180,14 +62,19 @@ As a ...,
I want to ...(,

Whereas currently ...).
[//]: # ( )

## Tasks

- [ ] Task 1.
- [ ] Task 2.

## Acceptance Criteria

- [ ] Criterion 1.
- [ ] Criterion 2.

[jali]: https://github.
[//]: # ( ############################################################ )
[//]: # ( # FORM: Epic )
# Epic `epic-type-name`

## Description
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,13 @@ build/Release
node_modules
jspm_packages
# (Angular CLI)
typings
# typings

# TypeScript
.Trash*

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history
.node_repl_history
19 changes: 19 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"default": true,
"header-style": { "style": "atx" },
"ul-style": { "style": "dash" },
"ul-indent": { "indent": 2 },
"line-length": {
"code_blocks": false,
"line_length": 72,
"tables": false
},
"ol-prefix": { "style": "one" },
"list-marker-space": {
"ol_multi": 1,
"ol_single": 1,
"ul_multi": 1,
"ul_single": 1
},
"hr-style":{ "style": "---"}
}
Loading

0 comments on commit 53ac8ab

Please sign in to comment.