Skip to content

Commit

Permalink
✨ add next bin
Browse files Browse the repository at this point in the history
  • Loading branch information
Yago committed Aug 12, 2020
1 parent b2688d6 commit 93ca4d2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
File renamed without changes.
15 changes: 15 additions & 0 deletions .bin/next.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env node

const fs = require('fs-extra');
const path = require('path');
const { exec } = require("child_process");

const srcd = path.join(path.dirname(__filename), '..');
const cwd = process.cwd();

console.log('Copying file...');
fs.copySync(`${srcd}/playground/*`, `${cwd}`);
exec('yarn', () => {
console.log('✅ Achieved with success!');
});

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "antistatique-frontend",
"version": "1.0.1",
"version": "1.0.2",
"description": "Antistatique opinionated frontend development configuration (linters, tests,...)",
"main": ".bin/index.js",
"main": ".bin/init.js",
"bin": {
"antistatique-frontend": ".bin/index.js"
"antistatique-frontend": ".bin/init.js",
"antistatique-next": ".bin/next.js"
},
"repository": "https://github.com/antistatique/frontend-development-configuration",
"author": "Antistatique",
Expand Down

0 comments on commit 93ca4d2

Please sign in to comment.