Ryan Chandler 5 anni fa
parent
commit
cb5e7ccd65
7 ha cambiato i file con 973 aggiunte e 10 eliminazioni
  1. 13 0
      babel.config.js
  2. 0 0
      dist/spruce.js.map
  3. 0 0
      dist/spruce.module.js.map
  4. 0 0
      dist/spruce.umd.js.map
  5. 9 1
      package.json
  6. 0 1
      src/index.js
  7. 951 8
      yarn.lock

+ 13 - 0
babel.config.js

@@ -0,0 +1,13 @@
+module.exports = {
+    presets: [
+        [
+            '@babel/preset-env',
+            {
+                targets: {
+                    node: 'current',
+                    edge: '18'
+                },
+            },
+        ],
+    ],
+};

File diff suppressed because it is too large
+ 0 - 0
dist/spruce.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/spruce.module.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/spruce.umd.js.map


+ 9 - 1
package.json

@@ -14,9 +14,17 @@
     "module": "dist/foo.module.js",
     "scripts": {
         "build": "microbundle",
-        "watch": "microbundle watch"
+        "watch": "microbundle watch",
+        "test": "npx jest"
     },
     "devDependencies": {
+        "@babel/preset-env": "^7.9.5",
+        "@testing-library/dom": "^7.2.2",
+        "@testing-library/jest-dom": "^5.5.0",
+        "alpinejs": "^2.3.1",
+        "ava": "^3.7.1",
+        "jest": "^25.4.0",
+        "jsdom-simulant": "^1.1.2",
         "microbundle": "^0.11.0",
         "observable-membrane": "^0.26.1"
     }

+ 0 - 1
src/index.js

@@ -2,7 +2,6 @@ import { domReady, buildInitExpression } from './utils'
 import { createObservable } from './observable'
 
 const Spruce = {
-
     stores: {},
 
     subscribers: [],

File diff suppressed because it is too large
+ 951 - 8
yarn.lock


Some files were not shown because too many files changed in this diff