Skip to content

Commit

Permalink
refactor: Many changes from coding sesh last night.
Browse files Browse the repository at this point in the history
Switch to Preact as default renderer, thus removing all vdom wrapper code and old vdom code. Minor
refactors. Switch to NWB for build. Rename test files.

BREAKING CHANGE: move from IncrementalDOM to Preact.
  • Loading branch information
treshugart committed Mar 6, 2017
1 parent 3a821d5 commit 4120815
Show file tree
Hide file tree
Showing 61 changed files with 2,486 additions and 3,934 deletions.
7 changes: 0 additions & 7 deletions .babelrc

This file was deleted.

44 changes: 8 additions & 36 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,36 +1,8 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules

# Other
.DS_Store
.idea
.tmp
dist
_book
.vscode/
ts-output
/coverage
/demo/dist
/es
/lib
/node_modules
/umd
npm-debug.log*
/_book
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Trey Shugart
Copyright (c) 2017 Trey Shugart

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
92 changes: 0 additions & 92 deletions karma.conf.js

This file was deleted.

23 changes: 23 additions & 0 deletions nwb.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const browsers = require('./test/browsers');

module.exports = {
type: 'web-module',
npm: {
esModules: true,
umd: true
},
karma: process.argv.indexOf('--ci') === -1 ? {
browsers: [require('karma-chrome-launcher')]
} : {
sauceLabs: {},
customLaunchers: browsers,
browsers: Object.keys(browsers),
retryLimit: 3,
reporters: ['dots', 'saucelabs'],
autoWatch: false,
concurrency: 4,
browserDisconnectTimeout: 10000,
browserDisconnectTolerance: 5,
captureTimeout: 120000
}
};
66 changes: 19 additions & 47 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
{
"global": "skate",
"externals": {
"incremental-dom": {
"amd": "incremental-dom",
"commonjs": "incremental-dom",
"commonjs2": "incremental-dom",
"root": "IncrementalDOM"
}
},
"name": "skatejs",
"description": "Skate is a library built on top of the W3C web component specs that enables you to write functional and performant web components with a very small footprint.",
"license": "MIT",
Expand All @@ -16,76 +7,57 @@
"type": "git",
"url": "https://github.com/skatejs/skatejs"
},
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"main": "lib/index.js",
"module": "es/index.js",
"types": "src/index.d.ts",
"keywords": [
"components",
"custom",
"custom-elements",
"dom",
"elements",
"web",
"web-components"
"components",
"vdom",
"virtual"
],
"files": [
"dist",
"src"
"es",
"lib",
"umd"
],
"dependencies": {
"incremental-dom": "0.4.1"
},
"dependencies": {},
"devDependencies": {
"@webpack-blocks/babel6": "^0.3.0",
"@webpack-blocks/webpack2": "^0.3.1",
"babel-eslint": "^7.1.1",
"babel-loader": "^6.2.10",
"babel-preset-es2015": "6.22.0",
"babel-preset-react": "^6.5.0",
"babel-preset-stage-0": "^6.16.0",
"birdpoo": "0.x",
"bore": "^1.1.0",
"commitizen": "^2.8.2",
"cz-conventional-changelog": "2.0.0",
"gitbook-cli": "^2.3.0",
"karma": "1.5.0",
"karma-chai-plugins": "0.8.0",
"karma-chrome-launcher": "2.0.0",
"karma-firefox-launcher": "1.0.0",
"karma-mocha": "1.3.0",
"karma-opera-launcher": "1.0.0",
"karma-safari-launcher": "1.0.0",
"karma-sauce-launcher": "^1.0.0",
"karma-saucelabs-launcher": "0.0.0",
"karma-sourcemap-loader": "0.3.7",
"karma-webpack": "2.0.2",
"mocha": "3.2.0",
"react": "15.4.2",
"react-dom": "15.4.2",
"nwb": "^0.15.6",
"preact": "^7.2.0",
"semantic-release": "^6.3.2",
"semistandard": "^9.0.0",
"skatejs-web-components": "5.2.1",
"typescript": "^2.1.4",
"typescript-formatter": "^5.0.0",
"webpack": "2.2.1"
"typescript-formatter": "^5.0.0"
},
"peerDependencies": {
"preact": "^7.2.0"
},
"scripts": {
"docs:build": "gitbook install && gitbook build",
"docs:watch": "gitbook install && gitbook serve",
"prepublish": "rm -rf dist && webpack && webpack -p && webpack --config webpack.config.bundle.js && webpack -p --config webpack.config.bundle.js",
"prepublish": "nwb build",
"release": "semantic-release pre && npm publish && semantic-release post",
"test": "npm run prepublish && node dist/ && semistandard && karma start --single-run --ci && npm run test:ts",
"test": "npm run prepublish && node dist/ && semistandard && npm run test:ts && nwb test",
"test:ts": "tsfmt -r && tsc -p ./",
"test:watch": "karma start"
"test:watch": "nwb test --server"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"semistandard": {
"ignore": [
"/src/polyfills/object-is.js"
],
"parser": "babel-eslint"
}
}
Loading

0 comments on commit 4120815

Please sign in to comment.