chore: components workflow
This commit is contained in:
@@ -15,21 +15,21 @@
|
||||
"scripts": {
|
||||
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||
"start": "react-app-rewired start",
|
||||
"compile": "react-app-rewired build",
|
||||
"prepublishOnly": "npm run build",
|
||||
"clean-deploy-cache": "rm -rf node_modules/.cache/gh-pages",
|
||||
"predeploy": "yarn run pretty && yarn run build && yarn clean-deploy-cache",
|
||||
"deploy-build": "yarn run predeploy && gh-pages -b build -d build",
|
||||
"deploy-dev": "yarn run predeploy && gh-pages -b dev -d build",
|
||||
"deploy-stable": "yarn run predeploy && gh-pages -b gh-pages -d build",
|
||||
"custom:test": "react-app-rewired test --watchAll=false",
|
||||
"test:coverage": "npm run test -- --coverage --watchAll",
|
||||
"eject": "react-scripts eject",
|
||||
"serve": "serve -s -p 3000 build",
|
||||
"server-public": "http-server -p 3000 --cors",
|
||||
"server-root": "http-server ./ -p 3000 --cors",
|
||||
"server": "http-server ./build -p 3000 --cors",
|
||||
"compile:lint": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md"
|
||||
"components:compile": "react-app-rewired build",
|
||||
"components:test": "react-app-rewired test --watchAll=false",
|
||||
"components:lint": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
},
|
||||
"scripts": {
|
||||
"start": "webpack serve --config webpack.dev.js --progress --hot",
|
||||
"compile": "webpack --config webpack.prod.js",
|
||||
"custom:lint": "eslint src --ext .js",
|
||||
"custom:lint:fix": "yarn lint --fix"
|
||||
"components:compile": "webpack --config webpack.prod.js",
|
||||
"components:lint": "eslint src --ext .js",
|
||||
"components:lint:fix": "yarn lint --fix"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.13.10",
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
"version": "1.3.5",
|
||||
"main": "dist/dist.js",
|
||||
"scripts": {
|
||||
"custom:lint": "eslint app/ --ext .js",
|
||||
"custom:lint:fix": "yarn lint --fix",
|
||||
"compile": "webpack --config webpack.prod.js",
|
||||
"components:lint": "eslint app/ --ext .js",
|
||||
"components:lint:fix": "yarn lint --fix",
|
||||
"components:compile": "webpack --config webpack.prod.js",
|
||||
"start": "webpack serve --config webpack.dev.js --progress --hot"
|
||||
},
|
||||
"sn": {
|
||||
|
||||
@@ -8,9 +8,10 @@
|
||||
"license": "AGPL-3.0",
|
||||
"scripts": {
|
||||
"start": "http-server . --cors -p8001 & webpack --progress --config webpack.dev.js",
|
||||
"compile": "webpack --config webpack.prod.js",
|
||||
"custom:lint": "eslint src --ext .js",
|
||||
"custom:lint:fix": "yarn lint --fix"
|
||||
"components:compile": "webpack --config webpack.prod.js",
|
||||
"components:lint": "eslint src --ext .js",
|
||||
"components:lint:fix": "yarn lint --fix",
|
||||
"components:clean": "rm -rf ./vendor"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.12.10",
|
||||
@@ -23,7 +24,6 @@
|
||||
"eslint": "*",
|
||||
"http-server": "^0.12.3",
|
||||
"mini-css-extract-plugin": "^1.3.5",
|
||||
"remove-files-webpack-plugin": "^1.4.4",
|
||||
"sass": "*",
|
||||
"sass-loader": "^10.1.1",
|
||||
"sn-stylekit": "^2.1.1",
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
const path = require('path')
|
||||
const CopyPlugin = require('copy-webpack-plugin')
|
||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
||||
const RemovePlugin = require('remove-files-webpack-plugin')
|
||||
|
||||
module.exports = {
|
||||
entry: [path.resolve(__dirname, 'src', 'main.js'), path.resolve(__dirname, 'src', 'main.scss')],
|
||||
@@ -49,14 +48,5 @@ module.exports = {
|
||||
filename: '[name].css',
|
||||
chunkFilename: '[id].css',
|
||||
}),
|
||||
new RemovePlugin({
|
||||
/**
|
||||
* Before compilation, remove existing `./vendor` folder.
|
||||
* It will be re-created later by the CopyPlugin.
|
||||
*/
|
||||
before: {
|
||||
include: ['./vendor'],
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"compile": "grunt"
|
||||
"components:compile": "grunt"
|
||||
},
|
||||
"author": "Standard Notes",
|
||||
"devDependencies": {
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
"scripts": {
|
||||
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||
"start": "react-app-rewired start",
|
||||
"compile": "react-app-rewired build",
|
||||
"components:compile": "react-app-rewired build",
|
||||
"eject": "react-scripts eject",
|
||||
"compile:lint": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md"
|
||||
"components:lint": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@codemirror/lang-markdown": "^0.19.6",
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"main": "dist/dist.js",
|
||||
"author": "Standard Notes <hello@standardnotes.org>",
|
||||
"scripts": {
|
||||
"compile": "grunt"
|
||||
"components:compile": "grunt"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.11.1",
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
"main": "dist/dist.js",
|
||||
"author": "Standard Notes <hello@standardnotes.com>",
|
||||
"scripts": {
|
||||
"custom:lint": "eslint --ext .js .",
|
||||
"compile": "webpack --config webpack.prod.js",
|
||||
"components:lint": "eslint --ext .js .",
|
||||
"components:compile": "webpack --config webpack.prod.js",
|
||||
"start": "webpack serve --config webpack.dev.js --progress --hot"
|
||||
},
|
||||
"sn": {
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
"version": "1.4.2",
|
||||
"main": "dist/dist.js",
|
||||
"scripts": {
|
||||
"custom:lint": "eslint --cache --ext .jsx,.js --format=node_modules/eslint-formatter-pretty .",
|
||||
"compile": "webpack",
|
||||
"components:lint": "eslint --cache --ext .jsx,.js --format=node_modules/eslint-formatter-pretty .",
|
||||
"components:compile": "webpack",
|
||||
"start": "webpack-dev-server --devtool eval --progress --port 8001 --hot --content-base app",
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1"
|
||||
},
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
"version": "1.3.10",
|
||||
"main": "dist/dist.js",
|
||||
"scripts": {
|
||||
"compile": "webpack --config webpack.prod.js",
|
||||
"components:compile": "webpack --config webpack.prod.js",
|
||||
"start": "webpack serve --config webpack.dev.js --progress --hot",
|
||||
"custom:lint": "eslint app/ --ext .js",
|
||||
"custom:lint:fix": "yarn lint --fix"
|
||||
"components:lint": "eslint app/ --ext .js",
|
||||
"components:lint:fix": "yarn lint --fix"
|
||||
},
|
||||
"sn": {
|
||||
"main": "dist/index.html"
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
"version": "1.4.4",
|
||||
"main": "dist/dist.js",
|
||||
"scripts": {
|
||||
"custom:lint": "eslint app/ --ext .js",
|
||||
"custom:lint:fix": "npm run lint -- --fix",
|
||||
"compile": "webpack --config webpack.prod.js",
|
||||
"components:lint": "eslint app/ --ext .js",
|
||||
"components:lint:fix": "npm run lint -- --fix",
|
||||
"components:compile": "webpack --config webpack.prod.js",
|
||||
"start": "webpack serve --config webpack.dev.js --progress --hot",
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1"
|
||||
},
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
"main": "dist/dist.css"
|
||||
},
|
||||
"scripts": {
|
||||
"compile": "webpack --entry ./src/main.scss --config ./../../theme.webpack.config.js"
|
||||
"components:compile": "webpack --entry ./src/main.scss --config ./../../theme.webpack.config.js"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
"main": "dist/dist.css"
|
||||
},
|
||||
"scripts": {
|
||||
"compile": "webpack --entry ./src/main.scss --config ./../../theme.webpack.config.js"
|
||||
"components:compile": "webpack --entry ./src/main.scss --config ./../../theme.webpack.config.js"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
"main": "dist/dist.css"
|
||||
},
|
||||
"scripts": {
|
||||
"compile": "webpack --entry ./src/main.scss --config ./../../theme.webpack.config.js"
|
||||
"components:compile": "webpack --entry ./src/main.scss --config ./../../theme.webpack.config.js"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
"main": "dist/dist.css"
|
||||
},
|
||||
"scripts": {
|
||||
"compile": "webpack --entry ./src/main.scss --config ./../../theme.webpack.config.js"
|
||||
"components:compile": "webpack --entry ./src/main.scss --config ./../../theme.webpack.config.js"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
"main": "dist/dist.css"
|
||||
},
|
||||
"scripts": {
|
||||
"compile": "webpack --entry ./src/main.scss --config ./../../theme.webpack.config.js"
|
||||
"components:compile": "webpack --entry ./src/main.scss --config ./../../theme.webpack.config.js"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
"main": "dist/dist.css"
|
||||
},
|
||||
"scripts": {
|
||||
"compile": "webpack --entry ./src/main.scss --config ./../../theme.webpack.config.js"
|
||||
"components:compile": "webpack --entry ./src/main.scss --config ./../../theme.webpack.config.js"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
"main": "dist/dist.css"
|
||||
},
|
||||
"scripts": {
|
||||
"compile": "webpack --entry ./src/main.scss --config ./../../theme.webpack.config.js"
|
||||
"components:compile": "webpack --entry ./src/main.scss --config ./../../theme.webpack.config.js"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
"version": "2.0.10",
|
||||
"main": "dist/dist.js",
|
||||
"scripts": {
|
||||
"compile": "webpack --config webpack.prod.js",
|
||||
"components:compile": "webpack --config webpack.prod.js",
|
||||
"start": "webpack serve --config webpack.dev.js --progress --hot",
|
||||
"custom:lint": "eslint app/ --ext .js",
|
||||
"custom:lint:fix": "yarn lint --fix"
|
||||
"components:lint": "eslint app/ --ext .js",
|
||||
"components:lint:fix": "yarn lint --fix"
|
||||
},
|
||||
"sn": {
|
||||
"main": "dist/index.html"
|
||||
|
||||
Reference in New Issue
Block a user