diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml deleted file mode 100644 index 2cd97cf..0000000 --- a/.github/workflows/build.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: build - -on: - push: - branches: - - master - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 23 - - name: Install dependencies - env: - CI: true - run: npm install - - name: Build - run: npm run build diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index fa66221..fa76736 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -28,9 +28,3 @@ jobs: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: npx semantic-release - - name: Deploy - https://draggable.github.io/formeo/ - if: success() - env: - GH_PAT: ${{ secrets.GH_TOKEN }} - BUILD_DIR: dist/demo/ - uses: maxheld83/ghpages@v0.2.1 diff --git a/README.md b/README.md index 4b78deb..91b0c3d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# mi18n [![Build Status](https://travis-ci.org/Draggable/mi18n.svg?branch=master)](https://travis-ci.org/Draggable/mi18n) [![npm version](https://badge.fury.io/js/mi18n.svg)](https://badge.fury.io/js/mi18n) [![Gitter chat](https://img.shields.io/badge/gitter-chat-ff69b4.svg)](https://gitter.im/Draggable/mi18n) +# mi18n [![npm version](https://badge.fury.io/js/mi18n.svg)](https://badge.fury.io/js/mi18n) Add multi-lingual support to any JavaScript app or module with this light-weight package. diff --git a/demo/index.html b/demo/index.html deleted file mode 100644 index fc363ef..0000000 --- a/demo/index.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - A simple but robust option for i18n in isomorphic web apps. - - - -
- Details to come. -
- - - diff --git a/now.json b/now.json deleted file mode 100644 index 012d4df..0000000 --- a/now.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "mi18n", - "alias": "mi18n", - "type": "static", - "files": [ - "demo" - ] -} diff --git a/webpack.config.js b/webpack.config.js deleted file mode 100644 index fa07b50..0000000 --- a/webpack.config.js +++ /dev/null @@ -1,59 +0,0 @@ -const pkg = require('./package.json') -const { resolve } = require('path') -const { BannerPlugin } = require('webpack') -const CompressionPlugin = require('compression-webpack-plugin') -const UglifyJsPlugin = require('uglifyjs-webpack-plugin') - -const bannerTemplate = [`${pkg.name} - ${pkg.homepage}`, `Version: ${pkg.version}`, `Author: ${pkg.author}`].join('\n') - -const plugins = [ - new UglifyJsPlugin(), - new BannerPlugin(bannerTemplate), - new CompressionPlugin({ - asset: '[path].gz[query]', - algorithm: 'gzip', - test: /\.(js)$/, - threshold: 10240, - minRatio: 0.8, - }), -] - -const webpackConfig = env => ({ - mode: env.production ? 'production' : 'development', - context: resolve(__dirname), - entry: { - mi18n: './src/mi18n.js', - }, - output: { - path: resolve(__dirname, 'dist'), - libraryTarget: 'commonjs2', - filename: '[name].min.js', - }, - module: { - rules: [ - { - enforce: 'pre', - test: /\.js$/, - exclude: /node_modules/, - loader: 'eslint-loader', - }, - { - test: /\.js$/, - loader: 'babel-loader', - }, - ], - }, - devtool: env.production && 'inline-source-map', - plugins, - resolve: { - modules: [resolve(__dirname, 'src'), 'node_modules'], - extensions: ['.js', '.json'], - }, - devServer: { - inline: true, - contentBase: 'demo/', - noInfo: true, - }, -}) - -module.exports = webpackConfig