Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6554a31

Browse files
Updates to test and webpack build
Also removed some typescript related files from the typescript PoC branch
1 parent 51d6471 commit 6554a31

33 files changed

+1241
-1154
lines changed

‎.babelrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"presets": [
3-
["es2015", { "modules": false }]
4-
]
3+
[ "es2015" ]
4+
],
5+
"plugins": [ "transform-flow-strip-types" ]
56
}

‎.mocha

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
--require ts-node/register
2-
--reporter dot
3-
--watch-extensions ts
4-
src/app/*.spec.ts
1+
--compilers js:babel-register
2+
--require babel-polyfill
3+
--reporter spec
4+
--watch-extensions js
5+
src/lib/*.spec.js

‎.mocha.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"reporterEnabled": "spec, markdown",
3+
"markdownReporterOptions": {
4+
"output": "test.md",
5+
"mochaFile": "test.md"
6+
}
7+
}

‎.mocha.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
--compilers js:babel-register
2+
--require babel-polyfill
3+
--recursive
4+
--reporter markdown
5+
--watch-extensions js
6+
src/lib/*.spec.js

‎README.md

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,53 @@
11
# json-schema-form-core
22
Core library for working with JSON-Schema with a UI-Schema (Form) definition that doesn't depend on a framework.
33

4-
Work-In-Progress!
5-
64
This library, through the use of its merge module, combines the schema and ui-schema
75
into a canonical schema for use by its services and external libraries.
86

7+
## Work-In-Progress!
8+
There is [test output](docs/test.md) that forms some super basic documentation
9+
and I intend to expand them much further to the point of almost being
10+
useful before I create a proper API and document that.
11+
12+
## Keeping Track
13+
After changing to Webpack 2, this library now includes a detailed version
14+
header which is passed through into `Angular Schema Form` and also the `Bootstrap` decorator bundle
15+
16+
```javascript
17+
/*!
18+
* json-schema-form-core
19+
* @version 1.0.0-alpha.5
20+
* @date 2017年1月14日 08:08:15 GMT
21+
* @link https://github.com/json-schema-form/json-schema-form-core
22+
* @license MIT
23+
* Copyright (c) 2014-2017 JSON Schema Form
24+
*/
25+
```
26+
27+
## Contributing / Plans
28+
The main contributions we need to the core at the moment are related to both the migration
29+
of `Angular Schema Form` features to the core (like templates/builders) and the addition
30+
of an API for use by ASF (Angular) and RSF (React) libraries.
31+
32+
Please contact @Anthropic via our [Gitter](https://gitter.im/json-schema-form/angular-schema-form) if you wish to get involved.
33+
934
## Testing it
1035

36+
### With Angular Schema Form
1137
There is a branch in angular-schema-form called `feature/webpack-babel` that integrates the core.
1238
To use it roughly follow these steps:
1339

14-
* Get angular-schema-form and switch to branch `feature/webpack-babel`
15-
* `npm install` to install dependencies, this will install json-schema-form-core as well
40+
* Clone angular-schema-form to a **sibling** directory and switch to branch `feature/webpack-babel`
41+
* `npm install` to install dependencies
1642
* `npm run build` to build with the core.
17-
* Use dist/schema-form.js, now with core. *No need to also load ObjectPath since it is already included*
43+
* Use dist/angular-schema-form.js, now with the core from this folder. *No need to also load ObjectPath since it is already included*
1844

19-
##Tests
45+
### With Mocha tests
2046
Tests are written in mocha + chai and run trough `npm test`.
2147

48+
When the command `npm run testdoc` is run instead, the tests will also generate a readable
49+
`markdown` file [test.md](docs/test.md) to document elements of the library.
50+
2251
## Notes
2352
* ObjectPath is bundled with json-schema-form-core
2453
* angular-schema-form bundles json-schema-form-core so the user doesn't have to include it as an dependency.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /