@burger-editor/frozen-patty 0.7.3 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,39 +1,49 @@
1
1
  {
2
- "name": "@burger-editor/frozen-patty",
3
- "version": "0.7.3",
4
- "description": "Pure HTML to JSON converter that not use template engine.",
5
- "main": "lib/index.js",
6
- "types": "lib/index.d.ts",
7
- "author": "Yusuke Hirao",
8
- "license": "MIT",
9
- "private": false,
10
- "repository": {
11
- "url": "git@github.com:YusukeHirao/frozen-patty.git"
12
- },
13
- "scripts": {
14
- "start": "node ./",
15
- "build": "gulp",
16
- "dev": "gulp watch",
17
- "test": "nyc ava && nyc report --reporter=html",
18
- "coveralls": "nyc ava && nyc report --reporter=text-lcov | coveralls"
19
- },
20
- "ava": {
21
- "require": [
22
- "./helper/setup-browser-env.js"
23
- ]
24
- },
25
- "devDependencies": {
26
- "ava": "^0.25.0",
27
- "browser-env": "^3.2.5",
28
- "coveralls": "^3.0.1",
29
- "del": "^3.0.0",
30
- "eslint": "^4.19.1",
31
- "gulp": "^3.9.1",
32
- "gulp-ava": "^0.19.0",
33
- "gulp-typescript": "^4.0.2",
34
- "nyc": "^11.8.0",
35
- "run-sequence": "^2.2.1",
36
- "tslint": "^5.10.0",
37
- "typescript": "^2.8.3"
38
- }
2
+ "name": "@burger-editor/frozen-patty",
3
+ "version": "0.10.0",
4
+ "description": "Pure HTML to JSON converter that not use template engine.",
5
+ "main": "lib/index.js",
6
+ "types": "lib/index.d.ts",
7
+ "author": "Yusuke Hirao",
8
+ "license": "MIT",
9
+ "private": false,
10
+ "files": [
11
+ "lib",
12
+ "!lib/*.test.*"
13
+ ],
14
+ "repository": {
15
+ "url": "git@github.com:YusukeHirao/frozen-patty.git"
16
+ },
17
+ "scripts": {
18
+ "build": "tsc --build",
19
+ "dev": "tsc --watch",
20
+ "test": "jest --coverage",
21
+ "coveralls": "jest --useStderr --coverage && cat ./coverage/lcov.info | coveralls",
22
+ "lint": "eslint --fix ./src/**/*"
23
+ },
24
+ "jest": {
25
+ "roots": [
26
+ "<rootDir>/src/"
27
+ ],
28
+ "preset": "ts-jest",
29
+ "testEnvironment": "jsdom",
30
+ "testEnvironmentOptions": {
31
+ "url": "https://www.d-zero.co.jp"
32
+ },
33
+ "collectCoverageFrom": [
34
+ "src/**/*.ts"
35
+ ]
36
+ },
37
+ "devDependencies": {
38
+ "@types/jest": "^28.1.1",
39
+ "@typescript-eslint/eslint-plugin": "^5.27.1",
40
+ "@typescript-eslint/parser": "^5.27.1",
41
+ "coveralls": "^3.1.1",
42
+ "eslint": "^8.17.0",
43
+ "jest": "^28.1.1",
44
+ "jest-environment-jsdom": "^28.1.1",
45
+ "prettier": "^2.6.2",
46
+ "ts-jest": "^28.0.4",
47
+ "typescript": "^4.7.3"
48
+ }
39
49
  }
package/.coveralls.yml DELETED
@@ -1 +0,0 @@
1
- repo_token:RC2ZH1hkySxJ8cO75ssXWlcXT6eOpXZ2b
package/.eslintrc DELETED
@@ -1,58 +0,0 @@
1
- {
2
- "extends": "eslint:recommended",
3
- "env": {
4
- "node": true,
5
- "browser": true,
6
- "jquery": true,
7
- "es6": true,
8
- "commonjs": true
9
- },
10
- "parserOptions": {
11
- "sourceType": "module"
12
- },
13
- "plugins": [],
14
- "rules": {
15
- "strict": 2,
16
- "semi": 2,
17
- "indent": [2, "tab", {"SwitchCase": 1}],
18
- "quotes": [2, "single", "avoid-escape"],
19
- "comma-style": [2, "last"],
20
- "arrow-body-style": 0,
21
- "arrow-parens": 2,
22
- "arrow-spacing": 2,
23
- "generator-star-spacing": 2,
24
- "no-useless-constructor": 2,
25
- "no-var": 0,
26
- "object-shorthand": 2,
27
- "prefer-arrow-callback": 0,
28
- "prefer-const": 2,
29
- "prefer-reflect": 0,
30
- "prefer-rest-params": 2,
31
- "prefer-spread": 2,
32
- "prefer-template": 0,
33
- "require-yield": 2,
34
- "template-curly-spacing": 2,
35
- "yield-star-spacing": 2,
36
- "semi-spacing": [2, {"before": false, "after": true}],
37
- "block-spacing": [2, "always"],
38
- "comma-spacing": [2, {"before": false, "after": true}],
39
- "space-in-parens": [2, "never"],
40
- "keyword-spacing": [2, {"before": true, "after": true, "overrides": {}}],
41
- "space-infix-ops": [2, {"int32Hint": false}],
42
- "key-spacing": [2, { "beforeColon": false, "afterColon": true }],
43
- "space-before-function-paren": [2, "always"],
44
- "spaced-comment": [2, "always"],
45
- "space-before-blocks": 2,
46
- "brace-style": [2, "1tbs", { "allowSingleLine": true }],
47
- "no-extra-parens": [2, "all", { "conditionalAssign": false }],
48
- "comma-dangle": [2, "always-multiline"],
49
- "no-unused-vars": [2, { "vars": "all", "args" : "after-used" }],
50
- "no-array-constructor": 2,
51
- "no-new-object": 2,
52
- "no-new-wrappers": 2,
53
- "no-console": "warn",
54
- "eol-last": 2,
55
- "consistent-this": 2,
56
- "require-jsdoc": 1
57
- }
58
- }
package/gulpfile.js DELETED
@@ -1,23 +0,0 @@
1
- const gulp = require('gulp');
2
- const ts = require('gulp-typescript');
3
- const tsc = require('typescript');
4
- const runSequence = require('run-sequence');
5
- const del = require('del');
6
- const ava = require('gulp-ava');
7
-
8
- const project = ts.createProject('./tsconfig.json', {typescript: tsc});
9
-
10
- gulp.task('ts', () => project.src().pipe(project()).pipe(gulp.dest('./lib/')));
11
-
12
- gulp.task('test', () => gulp.src('src/**/*.test.js').pipe(ava()));
13
-
14
- gulp.task('watch', () => {
15
- gulp.watch('src/**/*.ts', ['ts']);
16
- gulp.watch(['src/**/*.test.js', 'lib/**/*.js'], ['test']);
17
- });
18
-
19
- gulp.task('clean', (cb) => del(['lib/**/*'], cb));
20
-
21
- gulp.task('build', (cb) => runSequence('clean', 'ts', cb));
22
-
23
- gulp.task('default', ['build']);