diff --git a/config/package/package.json b/config/package/package.json index 79ff4b7..ed34f55 100644 --- a/config/package/package.json +++ b/config/package/package.json @@ -1,15 +1,12 @@ { - "name": "@humus/package", "version": "1.0.0", "main": "index.js", - "author": "cha0s", - "license": "MIT", "scripts": { - "build": "NODE_PATH=./node_modules webpack --mode production", - "clean": "rm -rf yarn.lock node_modules $(node -e \"process.stdout.write(require('./package.json').files.filter((file) => {const parts = file.split('/'); return 1 === parts.length || 'test' !== parts[0];}).join(' '));\") && yarn", - "forcepub": "npm unpublish --force $(node -e 'const {name, version} = require(`./package.json`); process.stdout.write(`${name}@${version}`)') && npm publish", - "lint": "NODE_PATH=./node_modules eslint --format codeframe --ext mjs,js .", - "test": "yarn --silent run build --display none && mocha --colors test.js" + "build": "latus-build", + "clean": "latus-build clean", + "fp": "latus-build forcepublish", + "lint": "latus-build lint", + "test": "latus-build test" }, "files": [ "index.js", @@ -17,24 +14,8 @@ "test.js", "test.js.map" ], - "dependencies": { - "debug": "4.3.1" - }, + "dependencies": {}, "devDependencies": { - "@neutrinojs/airbnb": "^9.4.0", - "@neutrinojs/banner": "^9.4.0", - "@neutrinojs/copy": "^9.4.0", - "@neutrinojs/mocha": "^9.4.0", - "@neutrinojs/react": "^9.4.0", - "autoprefixer": "^9.8.6", - "chai": "4.2.0", - "eslint": "^7", - "eslint-import-resolver-webpack": "0.13.0", - "glob": "7.1.6", - "mocha": "^8", - "neutrino": "^9.4.0", - "source-map-support": "0.5.19", - "webpack": "^4", - "webpack-cli": "^3" + "@latus/build": "1.x" } } diff --git a/config/package/test/exists.js b/config/package/test/exists.js index de4b693..1ce8043 100644 --- a/config/package/test/exists.js +++ b/config/package/test/exists.js @@ -1,9 +1,5 @@ import {expect} from 'chai'; -const {name} = require('../package.json'); - -describe(name, () => { - it('exists', () => { - expect(true).to.be.true; - }) +it('exists', () => { + expect(true).to.be.true; }); diff --git a/package.js b/package.js index fd93968..576030a 100644 --- a/package.js +++ b/package.js @@ -21,8 +21,8 @@ fs.copySync( path, ); const json = { - ...require(join(path, 'package.json')), name, + ...require(join(path, 'package.json')), }; fs.writeFileSync( join(path, 'package.json'),