Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"reporter": "spec",
"spec": "test/specs/*.js",
"ui": "bdd"
}
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
language: node_js
sudo: false
node_js:
- 6
- 8
- 10
- 12
- stable
before_install:
Expand Down
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:14

WORKDIR /code

COPY package*.json ./

RUN npm install
7 changes: 7 additions & 0 deletions configs/rollup.esm.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import base from './rollup.dev.js'
import stripCode from 'rollup-plugin-strip-code'

export default Object.assign({}, base, {
format: 'es',
plugins: [
stripCode({
start_comment: 'dev-code',
end_comment: 'end-dev-code',
}),
].concat(base.plugins),
dest: 'dist/kefir.esm.js',
})
8 changes: 7 additions & 1 deletion configs/rollup.prod.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import base from './rollup.dev.js'
import uglify from 'rollup-plugin-uglify'
import stripCode from 'rollup-plugin-strip-code'

export default Object.assign({}, base, {
plugins: base.plugins.concat([uglify({output: {comments: /\!\s\w/}})]),
plugins: [
stripCode({
start_comment: 'dev-code',
end_comment: 'end-dev-code',
}),
].concat(base.plugins.concat([uglify({output: {comments: /\!\s\w/}})])),
dest: 'dist/kefir.min.js',
})
Loading