Skip to content

Commit

Permalink
Revert 708400d and separate field-scripts pkg.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaehring committed Aug 31, 2023
1 parent 5feb16a commit 3a99f98
Show file tree
Hide file tree
Showing 16 changed files with 235 additions and 129 deletions.
303 changes: 184 additions & 119 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"packages/create-field-module",
"packages/field-components",
"packages/field-kit",
"packages/field-module-tasks"
"packages/field-module-tasks",
"packages/field-scripts"
],
"keywords": [
"farmOS",
Expand Down
1 change: 1 addition & 0 deletions packages/create-field-module/bin/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
],
"devDependencies": {
"@farmos.org/field-kit": "2.0.0-alpha.8",
"@farmos.org/field-scripts": "2.0.0-alpha.3",
"@originjs/vite-plugin-commonjs": "^1.0.3",
"@vitejs/plugin-vue": "^4.2.3",
"js-yaml": "^4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-field-module/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@farmos.org/create-field-module",
"version": "2.0.0-alpha.2",
"version": "2.0.0-alpha.3",
"description": "Scaffold a Field Module for development with farmOS Field Kit.",
"bin": "bin/run.js",
"main": "bin/run.js",
Expand Down
3 changes: 3 additions & 0 deletions packages/field-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
"storybook": "^7.0.23",
"vite": "^4.3.9"
},
"peerDependencies": {
"@farmos.org/field-kit": "2.0.0-alpha.8"
},
"repository": {
"type": "git",
"url": "git+https://github.com/farmOS/field-kit.git"
Expand Down
4 changes: 1 addition & 3 deletions packages/field-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"private": false,
"main": "main.js",
"type": "module",
"bin": {
"field-scripts": "bin/field-scripts/index.js"
},
"scripts": {
"start": "npm run dev",
"BROKEN-test": "mocha --require test-setup.js 'src/**/*.test.js' --watch",
Expand All @@ -32,6 +29,7 @@
"wellknown": "^0.5.0"
},
"devDependencies": {
"@farmos.org/field-scripts": "2.0.0-alpha.3",
"@originjs/vite-plugin-commonjs": "^1.0.3",
"@vitejs/plugin-vue": "^4.2.3",
"@vue/runtime-dom": "^3.2.26",
Expand Down
8 changes: 7 additions & 1 deletion packages/field-module-tasks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@
"author": "Jamie Gaehring <gaehj457@gmail.com> (https://jgaehring.com)",
"license": "GPL-3.0-or-later",
"devDependencies": {
"@farmos.org/field-kit": "2.0.0-alpha.8"
"@farmos.org/field-kit": "2.0.0-alpha.8",
"@farmos.org/field-scripts": "2.0.0-alpha.3",
"@originjs/vite-plugin-commonjs": "^1.0.3",
"@vitejs/plugin-vue": "^4.2.3",
"js-yaml": "^4.1.0",
"minimist": "^1.2.8",
"vite": "^4.3.9"
},
"repository": {
"type": "git",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { build } from 'vite';
import createVuePlugin from '@vitejs/plugin-vue';
import { viteCommonjs } from '@originjs/vite-plugin-commonjs';
import jsYaml from 'js-yaml';
import { snake } from '../../../namespaces/index.js';
import { snake } from '@farmos.org/field-kit/namespaces/index.js';
import fieldModulePlugin from './rollup-plugin-field-module.js';

const writeYaml = (filepath, data) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import process from 'node:process';
import { createServer } from 'vite';
import createVuePlugin from '@vitejs/plugin-vue';
import { viteCommonjs } from '@originjs/vite-plugin-commonjs';
import { FM_API_ENDPOINT, FM_SCRIPT_DIR, snake } from '../../../namespaces/index.js';
import { FM_API_ENDPOINT, FM_SCRIPT_DIR, snake } from '@farmos.org/field-kit/namespaces/index.js';
import createMockServer from './mock-server.js';

// The current working directory of the downstream application, which will call
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import http from 'http';
import { FM_API_ENDPOINT, resolveModulePathname } from '../../../namespaces/index.js';
import { FM_API_ENDPOINT, resolveModulePathname } from '@farmos.org/field-kit/namespaces/index.js';
import { fmtScript, fmtJsonApi } from '../format.js';

const trimPath = p => (typeof p === 'string' ? p : '').replaceAll(/^\/|\/$/g, '');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'path';
import { snake } from '../../namespaces/index.js';
import { snake } from '@farmos.org/field-kit/namespaces/index.js';

const fmtImport = (name, value) =>
(value ? `import ${name} from '${value}';` : '');
Expand Down
File renamed without changes.
32 changes: 32 additions & 0 deletions packages/field-scripts/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "@farmos.org/field-scripts",
"version": "2.0.0-alpha.3",
"description": "Node scripts for farmOS Field Kit and Field Modules.",
"bin": "bin/index.js",
"main": "bin/index.js",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"farmOS"
],
"author": "Jamie Gaehring <gaehj457@gmail.com> (https://jgaehring.com)",
"license": "GPL-3.0-or-later",
"peerDependencies": {
"@farmos.org/field-kit": "^2.0.0-alpha.8",
"@originjs/vite-plugin-commonjs": "^1.0.3",
"@vitejs/plugin-vue": "^4.2.3",
"js-yaml": "^4.1.0",
"minimist": "^1.2.8",
"vite": "^4.3.9"
},
"repository": {
"type": "git",
"url": "git+https://github.com/farmOS/field-kit.git"
},
"bugs": {
"url": "https://github.com/farmOS/field-kit/issues"
},
"homepage": "https://farmos.org"
}

0 comments on commit 3a99f98

Please sign in to comment.