Skip to content

Commit

Permalink
Add manager
Browse files Browse the repository at this point in the history
  • Loading branch information
jblandry committed May 27, 2019
1 parent 9316e93 commit 1b981e2
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ test
.gitignore
.travis.yml
index.js
manager.js
webpack.config.js
19 changes: 19 additions & 0 deletions manager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//--------------------------------------------------------
//-- Manager
//--------------------------------------------------------
'use strict';

const manager = require('@absolunet/manager');


manager.singleScriptsRunner({
tasks: {
build: {
// eslint-disable-next-line require-await
postRun: async ({ terminal }) => {
terminal.print('Run Library builder');
terminal.run('node node_modules/@absolunet/library-builder/bin/build.js');
}
}
}
});
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,21 @@
"url": "https://github.com/absolunet/pinki/issues"
},
"engines": {
"node": ">= 11.13.0"
"node": ">= 12.1.0"
},
"main": "dist/node.js",
"browser": "dist/browser.js",
"scripts": {
"build": "node node_modules/@absolunet/library-builder/bin/build.js",
"test": "ava test"
"test": "ava test",
"installer": "node manager.js --task=installer",
"outdated": "node manager.js --task=outdated",
"build": "node manager.js --task=build",
"deploy": "node manager.js --task=deploy"
},
"devDependencies": {
"@absolunet/library-builder": "1.2.0",
"@absolunet/tester": "2.6.3"
"@absolunet/manager": "1.1.0",
"@absolunet/tester": "2.6.8"
},
"dependencies": {
"pubsub-js": "^1.7.0",
Expand Down

0 comments on commit 1b981e2

Please sign in to comment.