7.0.167 • Published 7 months ago

kompiler v7.0.167

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

kompiler

A framework agnostic compiler/transpiler. For personal use and for friends. Forever work in progress.

Options

In package.json at the key kompiler you may use the following options

// pacakge.json

{
  "kompiler": {
    // restart the whole thing when something changes, for babel plugins that change
    "watch": [],
    // enviroment
    "env": {
      "NODE_ENV": "development/production",
    },
    // an array of "node scripts" to run, watch, and automatically restart
    "node": [
      {
        // the dirname of "input" is automatically watched for restarting the node script
        "input": "socket/index.js",

        // in case you have a folder or file you want to watch that is outside "input" folder to restart the script. Useful for developing npm packages using "npm link"
        "watch": [],
      },
    ],
    // for all builds:
    "map": [
      // for mapping paths served by the static server for all builds
      ["S:/www/aa/client/npm/package/", "S:/www/npm/package/"],
    ],
    // babel config for all builds
    "babel": {
      "presets": ["solid"],
    },
    // similar to node property is for running rollup, as many as you want
    "builds": [
      {
        // input file to process, a "static file server" is fired on this folder
        "input": ["client/index.js"],
        // where to put the output, if the output is a folder is will use multi-entry
        // file will be client/dist/multi-entry.js instead when folder a folder is used here
        "output": "client/dist/index.m.js",
        // if output should be minified and treeshaked
        "minified": false,
        // useful for when testing video that chrome does 206 requests, express is slow the compiler use a faster server but doesnt support 206
        "express": false,
        // server document root, set to `false` to not start a static file server
        "root": "./",

        // for opening a special page when loading the server
        "page": "index.html",
        "hostname": "localhost",
        // babel config
        "babel": {
          "presets": ["solid"],
        },
        // in case you have a folder or file you want to watch that is outside "input" folder. Useful for developing npm packages using "npm link". It will trigger a rebuild and possible an update on the browser if anything changes
        "watch": [],
        // for mapping paths served by the static server
        "map": [["S:/www/aa/client/npm/package/", "S:/www/npm/package/"]],
        // rollup options, if any
        "rollup": {},
      },
    ],
    // legacy stuff, if you need a file from the web and you want to automatically update it this will do it. It checks at most 1 time per day and only if the compiler is running
    "autoupdates": [["https://www.example.net/jquery@3", "client/js/jquery.js"]],
  },
}
7.0.162

7 months ago

7.0.163

7 months ago

7.0.164

7 months ago

7.0.165

7 months ago

7.0.166

7 months ago

7.0.167

7 months ago

7.0.158

9 months ago

7.0.160

9 months ago

7.0.161

9 months ago

7.0.159

9 months ago

7.0.155

1 year ago

7.0.156

1 year ago

7.0.157

10 months ago

7.0.153

1 year ago

7.0.154

1 year ago

7.0.152

1 year ago

7.0.151

1 year ago

7.0.150

1 year ago

7.0.149

1 year ago

7.0.148

1 year ago

7.0.147

1 year ago

7.0.146

2 years ago

7.0.145

2 years ago

7.0.144

2 years ago

7.0.135

2 years ago

7.0.136

2 years ago

7.0.140

2 years ago

7.0.141

2 years ago

7.0.143

2 years ago

7.0.137

2 years ago

7.0.138

2 years ago

7.0.139

2 years ago

7.0.134

2 years ago

7.0.133

2 years ago

7.0.130

2 years ago

7.0.131

2 years ago

7.0.132

2 years ago

7.0.110

2 years ago

7.0.111

2 years ago

7.0.112

2 years ago

7.0.113

2 years ago

7.0.114

2 years ago

7.0.107

2 years ago

7.0.108

2 years ago

7.0.109

2 years ago

7.0.121

2 years ago

7.0.122

2 years ago

7.0.123

2 years ago

7.0.124

2 years ago

7.0.125

2 years ago

7.0.115

2 years ago

7.0.116

2 years ago

7.0.117

2 years ago

7.0.118

2 years ago

7.0.119

2 years ago

6.0.105

2 years ago

6.0.106

2 years ago

7.0.126

2 years ago

7.0.127

2 years ago

7.0.128

2 years ago

7.0.129

2 years ago

6.0.85

3 years ago

6.0.84

3 years ago

6.0.83

3 years ago

6.0.82

3 years ago

6.0.89

3 years ago

6.0.88

3 years ago

6.0.87

3 years ago

6.0.86

3 years ago

6.0.81

3 years ago

6.0.80

3 years ago

6.0.79

3 years ago

6.0.78

3 years ago

6.0.77

3 years ago

6.0.76

3 years ago

6.0.75

3 years ago

6.0.101

3 years ago

6.0.102

3 years ago

6.0.96

3 years ago

6.0.95

3 years ago

6.0.94

3 years ago

6.0.93

3 years ago

6.0.99

3 years ago

6.0.98

3 years ago

6.0.97

3 years ago

6.0.92

3 years ago

6.0.91

3 years ago

6.0.90

3 years ago

6.0.74

3 years ago

6.0.73

3 years ago

6.0.72

3 years ago

6.0.71

3 years ago

6.0.70

3 years ago

6.0.69

3 years ago

6.0.68

3 years ago

6.0.67

3 years ago

6.0.66

3 years ago

6.0.65

3 years ago

6.0.64

3 years ago

6.0.63

3 years ago

6.0.62

3 years ago

6.0.61

3 years ago

6.0.60

3 years ago

6.0.59

3 years ago

6.0.58

3 years ago

6.0.57

3 years ago

5.56.0

3 years ago

5.55.0

3 years ago

5.54.0

3 years ago

5.53.0

3 years ago