Skip to content

25.10.2018

Frank Lemanschik edited this page Oct 25, 2018 · 1 revision

News

  • CanJS => CanES
  • JS-DATA-* => Stealify Model

Articels to write

  • NO TEST RUNNERS!
    • All Test Runners are useless !
    • show how to write tests in plain JavaScript!
  • How to code a Modular ESM Module that runs Cross Environment (Browser/node/worker/...)
    • How to code a Test
  • Repository Managment!
    • Meta Hybrid Repos via input transform export

Inspiring Hacks

use a gist via a single package.json that postinstall transfers into the project

{
  "scripts": {
    "postinstall": "cp node_modules/blingdotjs/bling.js assets/js/vendor"
  },
  "dependencies": {
    "blingdotjs": "gist:7d867cda127e64d38f28"
  }
}

Cross ES=>CJS Package.json

  "main": "index",
  "files": [
    "index.*"
  ],
  "scripts": {
    "lint": "eslint index*.mjs",
    "prepare": "babel index.mjs --out-file index.js && babel index.js --minified --no-comments --source-maps -o index.min.js",
    "test": "jest"
},
  "devDependencies": {
    "babel-cli": "^6",
    "babel-plugin-transform-es2015-modules-commonjs": "^6",
    "eslint": "^5",
    "eslint-config-airbnb-base": "^13",
    "eslint-plugin-import": "^2",
    "eslint-plugin-jest": "^21"
}
Clone this wiki locally