chore: tidy
This commit is contained in:
parent
b88020f42a
commit
f7d960db76
|
@ -1,15 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "@humus/package",
|
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"author": "cha0s",
|
|
||||||
"license": "MIT",
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "NODE_PATH=./node_modules webpack --mode production",
|
"build": "latus-build",
|
||||||
"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",
|
"clean": "latus-build clean",
|
||||||
"forcepub": "npm unpublish --force $(node -e 'const {name, version} = require(`./package.json`); process.stdout.write(`${name}@${version}`)') && npm publish",
|
"fp": "latus-build forcepublish",
|
||||||
"lint": "NODE_PATH=./node_modules eslint --format codeframe --ext mjs,js .",
|
"lint": "latus-build lint",
|
||||||
"test": "yarn --silent run build --display none && mocha --colors test.js"
|
"test": "latus-build test"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"index.js",
|
"index.js",
|
||||||
|
@ -17,24 +14,8 @@
|
||||||
"test.js",
|
"test.js",
|
||||||
"test.js.map"
|
"test.js.map"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {},
|
||||||
"debug": "4.3.1"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@neutrinojs/airbnb": "^9.4.0",
|
"@latus/build": "1.x"
|
||||||
"@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"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
import {expect} from 'chai';
|
import {expect} from 'chai';
|
||||||
|
|
||||||
const {name} = require('../package.json');
|
it('exists', () => {
|
||||||
|
expect(true).to.be.true;
|
||||||
describe(name, () => {
|
|
||||||
it('exists', () => {
|
|
||||||
expect(true).to.be.true;
|
|
||||||
})
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -21,8 +21,8 @@ fs.copySync(
|
||||||
path,
|
path,
|
||||||
);
|
);
|
||||||
const json = {
|
const json = {
|
||||||
...require(join(path, 'package.json')),
|
|
||||||
name,
|
name,
|
||||||
|
...require(join(path, 'package.json')),
|
||||||
};
|
};
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
join(path, 'package.json'),
|
join(path, 'package.json'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user