Skip to content

Commit

Permalink
dx(typescript): package and tests are two projects
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Jun 14, 2020
1 parent b34e9a9 commit 8a71211
Show file tree
Hide file tree
Showing 39 changed files with 310 additions and 307 deletions.
7 changes: 6 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
module.exports = {
extends: 'standard-with-typescript',
parserOptions: { project: ['./tsconfig.json'] },
parserOptions: {
project: [
'./src/package/tsconfig.json',
'./src/test/tsconfig.json',
]
},
rules: {
'import/newline-after-import': 'error',
'max-statements-per-line': 'error',
Expand Down
165 changes: 78 additions & 87 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,92 +6,83 @@
/node_modules/

# Package artifacts
/es/helpers/attachto.d.ts
/es/helpers/attachto.js
/es/helpers/attachto.js.map
/es/modules/attributes.d.ts
/es/modules/attributes.js
/es/modules/attributes.js.map
/es/modules/class.d.ts
/es/modules/class.js
/es/modules/class.js.map
/es/modules/dataset.d.ts
/es/modules/dataset.js
/es/modules/dataset.js.map
/es/modules/eventlisteners.d.ts
/es/modules/eventlisteners.js
/es/modules/eventlisteners.js.map
/es/modules/hero.d.ts
/es/modules/hero.js
/es/modules/hero.js.map
/es/modules/module.d.ts
/es/modules/module.js
/es/modules/module.js.map
/es/modules/props.d.ts
/es/modules/props.js
/es/modules/props.js.map
/es/modules/style.d.ts
/es/modules/style.js
/es/modules/style.js.map
/es/h.d.ts
/es/h.js
/es/h.js.map
/es/hooks.d.ts
/es/hooks.js
/es/hooks.js.map
/es/htmldomapi.d.ts
/es/htmldomapi.js
/es/htmldomapi.js.map
/es/is.d.ts
/es/is.js
/es/is.js.map
/es/jsx-global.d.ts
/es/jsx-global.js
/es/jsx-global.js.map
/es/jsx.d.ts
/es/jsx.js
/es/jsx.js.map
/es/snabbdom.d.ts
/es/snabbdom.js
/es/snabbdom.js.map
/es/thunk.d.ts
/es/thunk.js
/es/thunk.js.map
/es/tovnode.d.ts
/es/tovnode.js
/es/tovnode.js.map
/es/vnode.d.ts
/es/vnode.js
/es/vnode.js.map
/build/package/tsconfig.tsbuildinfo
/build/package/helpers/attachto.d.ts
/build/package/helpers/attachto.js
/build/package/helpers/attachto.js.map
/build/package/modules/attributes.d.ts
/build/package/modules/attributes.js
/build/package/modules/attributes.js.map
/build/package/modules/class.d.ts
/build/package/modules/class.js
/build/package/modules/class.js.map
/build/package/modules/dataset.d.ts
/build/package/modules/dataset.js
/build/package/modules/dataset.js.map
/build/package/modules/eventlisteners.d.ts
/build/package/modules/eventlisteners.js
/build/package/modules/eventlisteners.js.map
/build/package/modules/hero.d.ts
/build/package/modules/hero.js
/build/package/modules/hero.js.map
/build/package/modules/module.d.ts
/build/package/modules/module.js
/build/package/modules/module.js.map
/build/package/modules/props.d.ts
/build/package/modules/props.js
/build/package/modules/props.js.map
/build/package/modules/style.d.ts
/build/package/modules/style.js
/build/package/modules/style.js.map
/build/package/h.d.ts
/build/package/h.js
/build/package/h.js.map
/build/package/hooks.d.ts
/build/package/hooks.js
/build/package/hooks.js.map
/build/package/htmldomapi.d.ts
/build/package/htmldomapi.js
/build/package/htmldomapi.js.map
/build/package/is.d.ts
/build/package/is.js
/build/package/is.js.map
/build/package/jsx-global.d.ts
/build/package/jsx-global.js
/build/package/jsx-global.js.map
/build/package/jsx.d.ts
/build/package/jsx.js
/build/package/jsx.js.map
/build/package/snabbdom.d.ts
/build/package/snabbdom.js
/build/package/snabbdom.js.map
/build/package/thunk.d.ts
/build/package/thunk.js
/build/package/thunk.js.map
/build/package/tovnode.d.ts
/build/package/tovnode.js
/build/package/tovnode.js.map
/build/package/vnode.d.ts
/build/package/vnode.js
/build/package/vnode.js.map

# Test artifacts
/es/benchmark/core.d.ts
/es/benchmark/core.js
/es/benchmark/core.js.map
/es/test/attachto.d.ts
/es/test/attachto.js
/es/test/attachto.js.map
/es/test/attributes.d.ts
/es/test/attributes.js
/es/test/attributes.js.map
/es/test/core.d.ts
/es/test/core.js
/es/test/core.js.map
/es/test/dataset.d.ts
/es/test/dataset.js
/es/test/dataset.js.map
/es/test/eventlisteners.d.ts
/es/test/eventlisteners.js
/es/test/eventlisteners.js.map
/es/test/htmldomapi.d.ts
/es/test/htmldomapi.js
/es/test/htmldomapi.js.map
/es/test/jsx.d.ts
/es/test/jsx.js
/es/test/jsx.js.map
/es/test/style.d.ts
/es/test/style.js
/es/test/style.js.map
/es/test/thunk.d.ts
/es/test/thunk.js
/es/test/thunk.js.map
/build/test/benchmark/core.js
/build/test/benchmark/core.js.map
/build/test/unit/attachto.js
/build/test/unit/attachto.js.map
/build/test/unit/attributes.js
/build/test/unit/attributes.js.map
/build/test/unit/core.js
/build/test/unit/core.js.map
/build/test/unit/dataset.js
/build/test/unit/dataset.js.map
/build/test/unit/eventlisteners.js
/build/test/unit/eventlisteners.js.map
/build/test/unit/htmldomapi.js
/build/test/unit/htmldomapi.js.map
/build/test/unit/jsx.js
/build/test/unit/jsx.js.map
/build/test/unit/style.js
/build/test/unit/style.js.map
/build/test/unit/thunk.js
/build/test/unit/thunk.js.map
10 changes: 5 additions & 5 deletions examples/carousel-svg/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { init } from '../../es/snabbdom.js'
import attrs from '../../es/modules/attributes.js'
import style from '../../es/modules/style.js'
import listeners from '../../es/modules/eventlisteners.js'
import h from '../../es/h.js'
import { init } from '../../build/package/snabbdom.js'
import attrs from '../../build/package/modules/attributes.js'
import style from '../../build/package/modules/style.js'
import listeners from '../../build/package/modules/eventlisteners.js'
import h from '../../build/package/h.js'

var patch = init([attrs, style, listeners])

Expand Down
12 changes: 6 additions & 6 deletions examples/hero/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* jshint esnext: true */
import { init } from '../../es/snabbdom.js'
import clazz from '../../es/modules/class.js'
import hero from '../../es/modules/hero.js'
import style from '../../es/modules/style.js'
import listeners from '../../es/modules/eventlisteners.js'
import h from '../../es/h.js'
import { init } from '../../build/package/snabbdom.js'
import clazz from '../../build/package/modules/class.js'
import hero from '../../build/package/modules/hero.js'
import style from '../../build/package/modules/style.js'
import listeners from '../../build/package/modules/eventlisteners.js'
import h from '../../build/package/h.js'

var patch = init([clazz, hero, style, listeners])

Expand Down
12 changes: 6 additions & 6 deletions examples/reorder-animation/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { init } from '../../es/snabbdom.js'
import clazz from '../../es/modules/class.js'
import props from '../../es/modules/props.js'
import style from '../../es/modules/style.js'
import listeners from '../../es/modules/eventlisteners.js'
import h from '../../es/h.js'
import { init } from '../../build/package/snabbdom.js'
import clazz from '../../build/package/modules/class.js'
import props from '../../build/package/modules/props.js'
import style from '../../build/package/modules/style.js'
import listeners from '../../build/package/modules/eventlisteners.js'
import h from '../../build/package/h.js'

var patch = init([clazz, props, style, listeners])

Expand Down
6 changes: 3 additions & 3 deletions examples/svg/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { init } from '../../es/snabbdom.js'
import attrs from '../../es/modules/attributes.js'
import h from '../../es/h.js'
import { init } from '../../build/package/snabbdom.js'
import attrs from '../../build/package/modules/attributes.js'
import h from '../../build/package/h.js'

var patch = init([attrs])

Expand Down
Loading

0 comments on commit 8a71211

Please sign in to comment.