refactor(@embark/embark-scaffolding): introduce new embark-scaffolding package

This commit is contained in:
Pascal Precht 2019-04-26 11:14:30 +02:00 committed by Pascal Precht
parent c9e335ea21
commit 69ced6d894
18 changed files with 90 additions and 4 deletions

View File

@ -0,0 +1,5 @@
engine-strict = true
package-lock = false
save-exact = true
scripts-prepend-node-path = true

View File

@ -0,0 +1,7 @@
# `embark-scaffolding
Provides scaffolding utilities.
Visit [embark.status.im](https://embark.status.im/) to get started with
[Embark](https://github.com/embark-framework/embark).

View File

@ -0,0 +1,65 @@
{
"name": "embark-scaffolding",
"version": "4.1.0-beta.0",
"author": "Iuri Matias <iuri.matias@gmail.com>",
"contributors": [],
"description": "Provides scaffolding utilities",
"homepage": "https://github.com/embark-framework/embark/tree/master/packages/embark-scaffolding#readme",
"bugs": "https://github.com/embark-framework/embark/issues",
"keywords": [
"blockchain",
"dapps",
"ethereum",
"ipfs",
"serverless",
"solc",
"solidity"
],
"files": [
"dist"
],
"license": "MIT",
"repository": {
"directory": "packages/embark-scaffolding",
"type": "git",
"url": "https://github.com/embark-framework/embark.git"
},
"main": "./dist/index.js",
"scripts": {
"build": "cross-env BABEL_ENV=node babel src --extensions \".js,.ts\" --out-dir dist --root-mode upward --source-maps --copy-files",
"ci": "npm run qa",
"clean": "npm run reset",
"copy:templates": "cp -rf src/**/*.hbs dist/",
"lint": "npm-run-all lint:*",
"lint:ts": "tslint -c tslint.json \"src/**/*.ts\"",
"package": "npm pack",
"// qa": "npm-run-all lint typecheck build package",
"qa": "npm-run-all lint build package",
"reset": "npx rimraf dist embark-*.tgz package",
"start": "npm run watch",
"// typecheck": "tsc",
"watch": "run-p watch:*",
"watch:build": "npm run build -- --verbose --watch",
"// watch:typecheck": "npm run typecheck -- --preserveWatchOutput --watch"
},
"dependencies": {
"@babel/runtime-corejs2": "7.3.1",
"embark-utils": "^4.1.0-beta.0"
},
"devDependencies": {
"@babel/cli": "7.2.3",
"@babel/core": "7.2.2",
"cross-env": "5.2.0",
"eslint": "5.7.0",
"npm-run-all": "4.1.5",
"rimraf": "2.6.3",
"tslint": "5.11.0",
"typescript": "3.3.1"
},
"engines": {
"node": ">=8.12.0",
"npm": ">=6.4.1",
"yarn": ">=1.12.3"
}
}

View File

@ -7,7 +7,7 @@ import { Builder } from "../../builder";
import { CommandOptions } from "../../commandOptions";
import { SmartContractsRecipe } from "../../smartContractsRecipe";
const utils = require("../../../../utils/utils");
const utils = require("embark-utils");
require("../../handlebarHelpers");
interface ABIDefinitionDecorated extends ABIDefinition {

View File

@ -2,8 +2,7 @@ import Ajv from "ajv";
import { Logger } from "embark";
import {__} from "i18n";
import { schema } from "./schema";
const fs = require("../../core/fs");
const fs = require("fs");
const ajv = new Ajv();
const scaffoldingSchema = ajv.compile(schema);

View File

@ -0,0 +1,5 @@
{
"extends": "../../tsconfig.json",
"include": ["src/**/*"]
}

View File

@ -0,0 +1,4 @@
{
"extends": "../../tslint.json"
}

View File

@ -91,6 +91,7 @@
"embark-profiler": "^4.1.0-beta.0",
"embark-reset": "^4.1.0-beta.0",
"embark-specialconfigs": "^4.1.0-beta.0",
"embark-scaffolding": "^4.1.0-beta.0",
"embark-ui": "^4.1.0-beta.0",
"embark-transaction-tracker": "^4.1.0-beta.0",
"embark-utils": "^4.1.0-beta.0",

View File

@ -137,7 +137,7 @@ class Engine {
}
scaffoldingService(_options) {
this.registerModule('scaffolding', {plugins: this.plugins});
this.registerModulePackage('embark-scaffolding', {plugins: this.plugins});
}
pipelineService(_options) {