This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { task, series, logger } = require('just-task') | |
const { CLIEngine } = require('eslint') | |
const rollup = require('rollup') | |
const typescript = require('rollup-plugin-typescript2') | |
const prepack = require('rollup-plugin-prepack-up') | |
const uglify = require('uglify-js') | |
const fs = require('fs') | |
const lint = options => { | |
const eslint = new CLIEngine() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"build": "yarn lint && yarn bundle && yarn minify && yarn minify-dev", | |
"lint": "eslint 'src/**'", | |
"bundle": "rollup -c", | |
"minify": "uglifyjs dist/toast.js -o dist/toast.min.js", | |
"minify-dev": "uglifyjs dist/toast.js -o tests/lib/toast.min.js --source-map filename=toast.js,url=inline && rm tests/lib/toast.min.js.map", | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { CLIEngine } = require('eslint') | |
const rollup = require('rollup') | |
const typescript = require('rollup-plugin-typescript2') | |
const prepack = require('rollup-plugin-prepack-up') | |
const uglify = require('uglify-js') | |
const fs = require('fs') | |
const chalk = require('chalk') | |
const info = message => { | |
console.info(chalk.yellow(' * ') + chalk.green(message)) |
NewerOlder